]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Visualization/MPRActors.h
Double click widget integrated with segmentation and deformation filters.
[cpPlugins.git] / lib / cpExtensions / Visualization / MPRActors.h
index f4283f48d408c5ce252a502470a5db3a99b6b0ce..5eb3a202003712441265a4aada24d5990166d98f 100644 (file)
@@ -16,14 +16,18 @@ namespace cpExtensions
     public:
       typedef MPRActors Self;
 
-      typedef ImageSliceActors::TBaseStyle          TBaseStyle;
-      typedef ImageSliceActors::TStyle              TStyle;
-      typedef ImageSliceActors::TSlicesCommand      TSlicesCommand;
-      typedef ImageSliceActors::TWindowLevelCommand TWindowLevelCommand;
-      typedef ImageSliceActors::TMouseCommand       TMouseCommand;
-      typedef ImageSliceActors::TMouseWheelCommand  TMouseWheelCommand;
-      typedef ImageSliceActors::TKeyCommand         TKeyCommand;
-      typedef ImageSliceActors::TVoidCommand        TVoidCommand;
+      typedef ImageSliceActors::TStyle                   TStyle;
+      typedef ImageSliceActors::TMouseCommand            TMouseCommand;
+      typedef ImageSliceActors::TMouseWheelCommand       TMouseWheelCommand;
+      typedef ImageSliceActors::TKeyCommand              TKeyCommand;
+      typedef ImageSliceActors::TVoidCommand             TVoidCommand;
+      typedef ImageSliceActors::TMouseMoveCommand        TMouseMoveCommand;
+      typedef ImageSliceActors::TMouseClickCommand       TMouseClickCommand;
+      typedef ImageSliceActors::TMouseDoubleClickCommand TMouseDoubleClickCommand;
+      typedef ImageSliceActors::TExposeCommand           TExposeCommand;
+      typedef ImageSliceActors::TConfigureCommand        TConfigureCommand;
+      typedef ImageSliceActors::TEnterCommand            TEnterCommand;
+      typedef ImageSliceActors::TLeaveCommand            TLeaveCommand;
 
     public:
       vtkTypeMacro( MPRActors, vtkPropCollection );
@@ -51,11 +55,6 @@ namespace cpExtensions
         vtkRenderWindow* w
         );
 
-      // Color lookup table
-      void SetLookupTableAsColor(
-        unsigned int i, double r, double g, double b
-        );
-
       double GetWindow( );
       double GetLevel( );
 
@@ -71,11 +70,12 @@ namespace cpExtensions
       MPRActors( );
       virtual ~MPRActors( );
 
-      vtkImageData* _Image( unsigned int i ) const;
-      void _Update( unsigned int i );
+      void _CreateBoundingBox( );
 
       static void _SlicesCommand( double* pos, int axis, void* data );
-      static void _WindowLevelCommand( double window, double level, void* data );
+      static void _WindowLevelCommand(
+        double window, double level, void* data
+        );
       static void _RenderCommand( void* data );
 
     private: