]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Visualization/MPRActors.h
...
[cpPlugins.git] / lib / cpExtensions / Visualization / MPRActors.h
index 5eb3a202003712441265a4aada24d5990166d98f..91c0b5089d9e19eca6b90ba7a6bda710ae1f0be2 100644 (file)
@@ -38,10 +38,27 @@ namespace cpExtensions
 
       ImageSliceActors* GetSliceActors( const int& i ) const;
 
-      int AddInputConnection( vtkAlgorithmOutput* aout );
-      int AddInputData( vtkImageData* new_image );
+      void SetInputConnection( vtkAlgorithmOutput* aout );
+      void SetInputImage( vtkImageData* data );
+      int AddBinaryConnection(
+        vtkAlgorithmOutput* aout,
+        const double& r, const double& g, const double& b
+        );
+      int AddBinaryImage(
+        vtkImageData* data,
+        const double& r, const double& g, const double& b
+        );
+      void Clear( );
+
+      vtkImageData* GetInputImage( );
+      const vtkImageData* GetInputImage( ) const;
+
       unsigned int GetNumberOfImages( ) const;
 
+      void SetInterpolate( bool v );
+      void InterpolateOn( );
+      void InterpolateOff( );
+
       void PushActorsInto(
         vtkRenderWindow* x,
         vtkRenderWindow* y,
@@ -55,16 +72,30 @@ namespace cpExtensions
         vtkRenderWindow* w
         );
 
+      double GetMinWindow( ) const;
+      double GetMaxWindow( ) const;
+      double GetMinLevel( ) const;
+      double GetMaxLevel( ) const;
       double GetWindow( );
       double GetLevel( );
+      void SetWindow( double w );
+      void SetLevel( double l );
+      void SetWindowLevel( double w, double l );
+      void ResetWindowLevel( );
 
       // Slice access
+      int GetSliceNumber( const int& axis ) const;
       int GetSliceNumberMinValue( const int& axis ) const;
       int GetSliceNumberMaxValue( const int& axis ) const;
-      int GetSlice( const int& axis ) const;
-      void SetSlice( const int& axis, const int& slice );
-      void SetSlice( const int& axis, const double& slice );
-      void ResetSlices( );
+      void SetSliceNumber( const int& axis, const int& slice );
+      void SetSlice( const int& axis, double* pos );
+      void SetAxesCursor( const int& axis, double* pos );
+
+      // Rendering controls
+      void Render( const int& axis );
+      void Render( );
+      void ResetCamera( const int& axis );
+      void ResetCameras( );
 
     protected:
       MPRActors( );