diff Applications/Samples/SingleVolumeApplication.h @ 389:3e6e10a5a6c8

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 09 Nov 2018 17:28:32 +0100
parents 557c8ff1db5c
children 1d9dd542adfe
line wrap: on
line diff
--- 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<const LayerWidget&>(widget);
+          const SliceViewerWidget& w = dynamic_cast<const SliceViewerWidget&>(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<LayerWidget> widget(new LayerWidget);
+        std::auto_ptr<SliceViewerWidget> widget(new SliceViewerWidget);
 
 #if 1
         std::auto_ptr<OrthancVolumeImage> volume(new OrthancVolumeImage(context.GetWebService(), true));