1 #ifndef __CPEXTENSIONS__VISUALIZATION__MPROBJECTS__H__
2 #define __CPEXTENSIONS__VISUALIZATION__MPROBJECTS__H__
4 #include <cpExtensions/cpExtensions_Export.h>
5 #include <cpExtensions/Visualization/MPRActors.h>
8 #include <vtkRenderer.h>
9 #include <vtkRenderWindow.h>
11 namespace cpExtensions
13 namespace Visualization
17 class cpExtensions_EXPORT MPRObjects
21 typedef MPRObjects Self;
23 typedef MPRActors::TStyle TStyle;
24 typedef MPRActors::TMouseCommand TMouseCommand;
25 typedef MPRActors::TMouseWheelCommand TMouseWheelCommand;
26 typedef MPRActors::TKeyCommand TKeyCommand;
27 typedef MPRActors::TVoidCommand TVoidCommand;
28 typedef MPRActors::TMouseMoveCommand TMouseMoveCommand;
29 typedef MPRActors::TMouseClickCommand TMouseClickCommand;
30 typedef MPRActors::TMouseDoubleClickCommand TMouseDoubleClickCommand;
31 typedef MPRActors::TExposeCommand TExposeCommand;
32 typedef MPRActors::TConfigureCommand TConfigureCommand;
33 typedef MPRActors::TEnterCommand TEnterCommand;
34 typedef MPRActors::TLeaveCommand TLeaveCommand;
37 vtkTypeMacro( MPRObjects, vtkObject );
41 static MPRObjects* New( );
43 void SetRenderWindows(
44 vtkRenderWindow* wx, vtkRenderWindow* wy,
45 vtkRenderWindow* wz, vtkRenderWindow* w3D
47 void AddImage( vtkImageData* image );
48 unsigned int GetNumberOfImages( ) const;
51 void ResetCamera( const int& id );
53 void Render( const int& id, const double& t );
54 void RenderAll( const double& t );
55 vtkRenderer* GetXRenderer( );
56 vtkRenderer* GetYRenderer( );
57 vtkRenderer* GetZRenderer( );
58 vtkRenderer* Get3DRenderer( );
59 const vtkRenderer* GetXRenderer( ) const;
60 const vtkRenderer* GetYRenderer( ) const;
61 const vtkRenderer* GetZRenderer( ) const;
62 const vtkRenderer* Get3DRenderer( ) const;
64 MPRActors* GetMPRActors( );
65 const MPRActors* GetMPRActors( ) const;
67 double GetWindow( ) const;
68 double GetLevel( ) const;
72 virtual ~MPRObjects( );
75 // Purposely not implemented
76 MPRObjects( const Self& );
77 Self& operator=( const Self& );
81 vtkSmartPointer< vtkRenderWindow > m_Windows[ 4 ];
84 vtkSmartPointer< MPRActors > m_MPRActors;
85 vtkSmartPointer< vtkRenderer > m_Renderers[ 4 ];
92 #endif // __CPEXTENSIONS__VISUALIZATION__MPROBJECTS__H__