]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Visualization/ImageSliceActors.h
Segmentation and WindowLevel interaction updated
[cpPlugins.git] / lib / cpExtensions / Visualization / ImageSliceActors.h
index 0e1fdae463622b857a0c655b4da8ca9ee0919df8..90b9ff018f4ed2d75a0ced687465dd42ad20a9a8 100644 (file)
@@ -50,6 +50,10 @@ namespace cpExtensions
       vtkActor* GetPlaneActor( );
       const vtkActor* GetPlaneActor( ) const;
 
+      void SetInterpolate( bool v );
+      void InterpolateOn( );
+      void InterpolateOff( );
+
       double* GetDisplayBounds( ) const;
       void GetDisplayBounds( double bounds[ 6 ] ) const;
 
@@ -59,11 +63,14 @@ namespace cpExtensions
       int GetSliceNumberMaxValue( ) const;
       void SetSliceNumber( const int& slice );
       void UpdateText( );
+      void UpdateText( const double& w, const double& l );
 
     protected:
       ImageSliceActors( );
       virtual ~ImageSliceActors( );
 
+      void _ConfigureNewInput( int axis );
+
     private:
       // Purposely not implemented
       ImageSliceActors( const Self& );
@@ -73,6 +80,7 @@ namespace cpExtensions
       // Multiple actors
       std::vector< vtkSmartPointer< vtkImageSliceMapper > > SliceMappers;
       std::vector< vtkSmartPointer< vtkImageActor > >       ImageActors;
+      bool Interpolate;
 
       // Unique objects
       vtkSmartPointer< vtkPolyData >       PlaneSource;