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;
22 typedef cpExtensions::Visualization::MPRActors TMPRActors;
25 vtkTypeMacro( MPRObjects, vtkObject );
29 static MPRObjects* New( );
31 void SetRenderWindows(
32 vtkRenderWindow* wx, vtkRenderWindow* wy,
33 vtkRenderWindow* wz, vtkRenderWindow* w3D
35 void SetImage( vtkImageData* image );
36 void AddAuxiliaryImage( vtkImageData* image );
37 void ActivateInteractors( );
39 void ResetCamera( const int& id );
41 void Render( const int& id );
43 vtkRenderer* GetXRenderer( );
44 vtkRenderer* GetYRenderer( );
45 vtkRenderer* GetZRenderer( );
46 vtkRenderer* Get3DRenderer( );
47 const vtkRenderer* GetXRenderer( ) const;
48 const vtkRenderer* GetYRenderer( ) const;
49 const vtkRenderer* GetZRenderer( ) const;
50 const vtkRenderer* Get3DRenderer( ) const;
52 TMPRActors* GetMPRActors( );
53 const TMPRActors* GetMPRActors( ) const;
57 virtual ~MPRObjects( );
60 // Purposely not implemented
61 MPRObjects( const Self& );
62 Self& operator=( const Self& );
66 vtkSmartPointer< vtkRenderWindow > m_Windows[ 4 ];
69 vtkSmartPointer< TMPRActors > m_MPRActors;
70 vtkSmartPointer< vtkRenderer > m_Renderers[ 4 ];
77 #endif // __CPEXTENSIONS__VISUALIZATION__MPROBJECTS__H__