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;
62 int GetSliceNumberMinValue( const int& axis ) const;
63 int GetSliceNumberMaxValue( const int& axis ) const;
64 int GetSlice( const int& axis ) const;
65 void SetSlice( const int& axis, const int& slice );
66 void SetSlice( const int& axis, const double& slice );
71 virtual ~MPRActors( );
73 void _CreateBoundingBox( );
75 static void _SlicesCommand( double* pos, int axis, void* data );
76 static void _WindowLevelCommand(
77 double window, double level, void* data
79 static void _RenderCommand( void* data );
82 // Purposely not implemented
83 MPRActors( const Self& );
84 Self& operator=( const Self& );
87 vtkSmartPointer< vtkActor > ImageOutlineActor;
88 vtkSmartPointer< ImageSliceActors > Slices[ 2 ][ 3 ];
95 #endif // __CPEXTENSIONS__VISUALIZATION__MPRACTORS__H__