# HG changeset patch # User Sebastien Jodogne # Date 1541780912 -3600 # Node ID 3e6e10a5a6c80e6c55fcdece9df6fdd3110a3f79 # Parent 20f149669c1f872830a2d5ccb7374c4fb2498067 cont diff -r 20f149669c1f -r 3e6e10a5a6c8 Applications/Commands/BaseCommands.yml --- a/Applications/Commands/BaseCommands.yml Fri Nov 09 17:26:39 2018 +0100 +++ b/Applications/Commands/BaseCommands.yml Fri Nov 09 17:28:32 2018 +0100 @@ -3,8 +3,8 @@ toolName: string comment: Selects the current application tool DownloadDicom: - target: LayerWidget - comment: Downloads the slice currently displayed in the LayerWidget + target: SliceViewerWidget + comment: Downloads the slice currently displayed in the SliceViewerWidget Export: target: IWidget comment: Export the content of the widget \ No newline at end of file diff -r 20f149669c1f -r 3e6e10a5a6c8 Applications/Samples/SingleVolumeApplication.h --- a/Applications/Samples/SingleVolumeApplication.h Fri Nov 09 17:26:39 2018 +0100 +++ b/Applications/Samples/SingleVolumeApplication.h Fri Nov 09 17:28:32 2018 +0100 @@ -44,7 +44,7 @@ class Interactor : public VolumeImageInteractor { private: - LayerWidget& widget_; + SliceViewerWidget& widget_; size_t layer_; protected: @@ -70,14 +70,14 @@ double y, IStatusBar* statusBar) { - const LayerWidget& w = dynamic_cast(widget); + const SliceViewerWidget& w = dynamic_cast(widget); Vector p = w.GetSlice().MapSliceToWorldCoordinates(x, y); printf("%f %f %f\n", p[0], p[1], p[2]); } public: Interactor(OrthancVolumeImage& volume, - LayerWidget& widget, + SliceViewerWidget& widget, VolumeProjection projection, size_t layer) : VolumeImageInteractor(volume, widget, projection), @@ -171,7 +171,7 @@ throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); } - std::auto_ptr widget(new LayerWidget); + std::auto_ptr widget(new SliceViewerWidget); #if 1 std::auto_ptr volume(new OrthancVolumeImage(context.GetWebService(), true)); diff -r 20f149669c1f -r 3e6e10a5a6c8 Framework/Toolbox/Slice.h --- a/Framework/Toolbox/Slice.h Fri Nov 09 17:26:39 2018 +0100 +++ b/Framework/Toolbox/Slice.h Fri Nov 09 17:28:32 2018 +0100 @@ -75,7 +75,7 @@ } // TODO Is this constructor the best way to go to tackle missing - // layers within LayerWidget? + // layers within SliceViewerWidget? Slice(const CoordinateSystem3D& plane, double thickness) : type_(Type_Standalone), diff -r 20f149669c1f -r 3e6e10a5a6c8 Platforms/Wasm/Defaults.cpp --- a/Platforms/Wasm/Defaults.cpp Fri Nov 09 17:26:39 2018 +0100 +++ b/Platforms/Wasm/Defaults.cpp Fri Nov 09 17:28:32 2018 +0100 @@ -4,7 +4,6 @@ #include #include "Framework/Widgets/TestCairoWidget.h" #include -#include #include #include "Applications/Wasm/StartupParametersBuilder.h" #include "Platforms/Wasm/WasmPlatformApplicationAdapter.h" diff -r 20f149669c1f -r 3e6e10a5a6c8 Platforms/Wasm/Defaults.h --- a/Platforms/Wasm/Defaults.h Fri Nov 09 17:26:39 2018 +0100 +++ b/Platforms/Wasm/Defaults.h Fri Nov 09 17:28:32 2018 +0100 @@ -4,7 +4,6 @@ #include #include -#include #include #include #include