1 #ifndef __CPPLUGINS__EXTENSIONS__VISUALIZATION__MPRACTORS__H__
2 #define __CPPLUGINS__EXTENSIONS__VISUALIZATION__MPRACTORS__H__
4 #include <cpPlugins/Extensions/cpPlugins_Extensions_Export.h>
5 #include <cpPlugins/Extensions/Visualization/ImageSliceActors.h>
8 #include <vtkImageMapToColors.h>
9 #include <vtkImageMapToWindowLevelColors.h>
17 namespace Visualization
21 class cpPlugins_Extensions_EXPORT MPRActors
22 : public vtkPropCollection
25 typedef MPRActors Self;
28 vtkTypeMacro( MPRActors, vtkPropCollection );
30 cpPlugins_ImageSliceActors( ImageOutline, vtkImageActor );
34 static MPRActors* New( );
36 ImageSliceActors* GetSliceActors( const int& i ) const;
37 void SetInputData( vtkImageData* image );
38 void SetSegmentationData( vtkImageData* segmentation );
54 double GetMinWindow( ) const;
55 double GetMaxWindow( ) const;
56 double GetMinLevel( ) const;
57 double GetMaxLevel( ) const;
58 double GetWindow( ) const;
59 double GetLevel( ) const;
60 void SetWindow( const double& w );
61 void SetLevel( const double& l );
62 void SetWindowLevel( const double& w, const double& l );
63 void ResetWindowLevel( );
66 vtkPlane* GetSlicePlane( const int& axis ) const;
67 int GetSliceNumberMinValue( const int& axis ) const;
68 int GetSliceNumberMaxValue( const int& axis ) const;
69 int GetSlice( const int& axis ) const;
70 void SetSlice( const int& axis, const int& slice );
71 void SetSlice( const int& axis, const double& slice );
75 void GetImageBounds( double bounds[ 6 ] ) const;
79 virtual ~MPRActors( );
82 // Purposely not implemented
83 MPRActors( const Self& );
84 Self& operator=( const Self& );
88 vtkImageData* Segmentation;
90 vtkSmartPointer< vtkImageMapToWindowLevelColors > ImageToWindowLevel;
91 vtkSmartPointer< vtkImageMapToColors > SegmentationToColors;
93 vtkSmartPointer< vtkActor > ImageOutlineActor;
95 typedef cpPlugins::Extensions::Visualization::ImageSliceActors TSlice;
96 vtkSmartPointer< TSlice > Slices[ 3 ];
98 unsigned int ImageOutlineActorIndex;
107 #endif // __CPPLUGINS__EXTENSIONS__VISUALIZATION__MPRACTORS__H__