]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/QT/ImageWidget.h
Spline widget added.
[cpPlugins.git] / lib / cpExtensions / QT / ImageWidget.h
index eeb65d08f8a1a75f7bb18d1a6d10e4631aff3bc0..c27855768d3ca8af6c8b339e5380909ae26559ae 100644 (file)
@@ -11,8 +11,9 @@ namespace cpExtensions
 {
   namespace Visualization
   {
-    class ImageOutlineActor;
+    class OutlineSource;
     class WindowLevelImageActor;
+    class MeshActor;
     /* TODO
        class ImageSliceActors;
        class ImageViewerActors;
@@ -33,7 +34,8 @@ namespace cpExtensions
       typedef ImageWidget    Self;
       typedef RendererWidget Superclass;
 
-      typedef cpExtensions::Visualization::ImageOutlineActor     TOLActor;
+      typedef cpExtensions::Visualization::OutlineSource         TOutline;
+      typedef cpExtensions::Visualization::MeshActor             TActor;
       typedef cpExtensions::Visualization::WindowLevelImageActor TWLActor;
       typedef cpExtensions::Interaction::ImageSliceStyle         TStyle;
 
@@ -45,6 +47,10 @@ namespace cpExtensions
       void SetImage(
         vtkImageData* image, int orientation, const std::string& name
         );
+      virtual void ResetCamera( ) cpExtensions_OVERRIDE;
+
+      TWLActor* GetImageActor( );
+      const TWLActor* GetImageActor( ) const;
 
       /* TODO
          void SetImage(
@@ -56,7 +62,6 @@ namespace cpExtensions
          int GetOrientation( ) const;
          void SetSliceNumber( int slice );
 
-         virtual void ResetCamera( ) cpExtensions_OVERRIDE;
 
          void GetScalarRange( double r[ 2 ] ) const;
          void GetWindowLevel( double wl[ 2 ] ) const;
@@ -76,7 +81,8 @@ namespace cpExtensions
       std::string m_ImageName;
 
       vtkSmartPointer< TWLActor > m_WLActor;
-      vtkSmartPointer< TOLActor > m_OLActor;
+      vtkSmartPointer< TOutline > m_Outline;
+      TActor* m_OutlineActor;
 
       vtkSmartPointer< TStyle > m_Style;