1 #ifndef __CPEXTENSIONS__VISUALIZATION__MPRACTORS__H__
2 #define __CPEXTENSIONS__VISUALIZATION__MPRACTORS__H__
4 #include <cpExtensions/cpExtensions_Export.h>
5 #include <cpExtensions/Visualization/ImageSliceActors.h>
9 namespace Visualization
13 class cpExtensions_EXPORT MPRActors
14 : public vtkPropCollection
17 typedef MPRActors Self;
19 typedef ImageSliceActors::TStyle TStyle;
20 typedef ImageSliceActors::TMouseCommand TMouseCommand;
21 typedef ImageSliceActors::TMouseWheelCommand TMouseWheelCommand;
22 typedef ImageSliceActors::TKeyCommand TKeyCommand;
23 typedef ImageSliceActors::TVoidCommand TVoidCommand;
24 typedef ImageSliceActors::TMouseMoveCommand TMouseMoveCommand;
25 typedef ImageSliceActors::TMouseClickCommand TMouseClickCommand;
26 typedef ImageSliceActors::TMouseDoubleClickCommand TMouseDoubleClickCommand;
27 typedef ImageSliceActors::TExposeCommand TExposeCommand;
28 typedef ImageSliceActors::TConfigureCommand TConfigureCommand;
29 typedef ImageSliceActors::TEnterCommand TEnterCommand;
30 typedef ImageSliceActors::TLeaveCommand TLeaveCommand;
33 vtkTypeMacro( MPRActors, vtkPropCollection );
37 static MPRActors* New( );
39 ImageSliceActors* GetSliceActors( const int& i ) const;
41 int AddInputConnection( vtkAlgorithmOutput* aout );
42 int AddInputData( vtkImageData* new_image );
43 unsigned int GetNumberOfImages( ) const;
59 void SetLookupTableAsColor(
60 unsigned int i, double r, double g, double b
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 );
76 virtual ~MPRActors( );
78 static void _SlicesCommand( double* pos, int axis, void* data );
79 static void _WindowLevelCommand(
80 double window, double level, void* data
82 static void _RenderCommand( void* data );
85 // Purposely not implemented
86 MPRActors( const Self& );
87 Self& operator=( const Self& );
90 vtkSmartPointer< vtkActor > ImageOutlineActor;
91 vtkSmartPointer< ImageSliceActors > Slices[ 2 ][ 3 ];
98 #endif // __CPEXTENSIONS__VISUALIZATION__MPRACTORS__H__