]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Visualization/ImageSliceActors.h
Minor refactoring and errors solved
[cpPlugins.git] / lib / cpExtensions / Visualization / ImageSliceActors.h
index 21eef1e3d5f30a701ee2b4568dcdc29c9e12297e..96d4550c52039613aaf8b96109d6afce535e75a8 100644 (file)
@@ -46,23 +46,18 @@ namespace cpExtensions
     public:
       vtkTypeMacro( ImageSliceActors, vtkPropCollection );
 
-      vtkGetMacro( MinWindow, double );
-      vtkGetMacro( MaxWindow, double );
-      vtkGetMacro( MinLevel, double );
-      vtkGetMacro( MaxLevel, double );
-
     public:
       // Creation
       static ImageSliceActors* New( );
 
-      void AddCursorCommand( TCursorCommand command, void* data );
+      void AddSlicesCommand( TCursorCommand command, void* data );
+      void AddSeedCommand( TCursorCommand command, void* data );
 
       void AddInputConnection( vtkAlgorithmOutput* aout, int axis = 2 );
       void AddInputData( vtkImageData* data, int axis = 2 );
       void Clear( );
 
       void AssociateSlice( Self* other );
-      void SetSlicesCommand( TCursorCommand cmd, void* data );
 
       vtkInteractorStyle* GetStyle( );
       const vtkInteractorStyle* GetStyle( ) const;
@@ -95,6 +90,10 @@ namespace cpExtensions
       vtkImageMapToColors* GetImageMap( unsigned int id );
       const vtkImageMapToColors* GetImageMap( unsigned int id ) const;
 
+      double GetMinWindow( ) const;
+      double GetMaxWindow( ) const;
+      double GetMinLevel( ) const;
+      double GetMaxLevel( ) const;
       double GetWindow( ) const;
       double GetLevel( ) const;
       void SetWindow( double w );
@@ -172,7 +171,8 @@ namespace cpExtensions
       std::vector< vtkSmartPointer< Self > > m_AssociatedSlices;
 
       // Associated commands
-      std::vector< std::pair< TCursorCommand, void* > > m_CursorCommands;
+      std::vector< std::pair< TCursorCommand, void* > > m_SlicesCommands;
+      std::vector< std::pair< TCursorCommand, void* > > m_SeedCommands;
 
       // Other associated actors
       typedef std::pair< vtkAlgorithm*, vtkActor* > TAssociatedActor;