]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Extensions/Visualization/MPRWithDifferentWindows.h
Some bugs
[cpPlugins.git] / lib / cpPlugins / Extensions / Visualization / MPRWithDifferentWindows.h
1 #ifndef __CPPLUGINS__EXTENSIONS__VISUALIZATION__MPRWITHDIFFERENTWINDOWS__H__
2 #define __CPPLUGINS__EXTENSIONS__VISUALIZATION__MPRWITHDIFFERENTWINDOWS__H__
3
4 #include <cpPlugins/Extensions/Visualization/MPRActors.h>
5 #include <cpPlugins/Extensions/Visualization/ImageInteractorStyle.h>
6
7 #include <vtkImageData.h>
8 #include <vtkRenderer.h>
9 #include <vtkRenderWindow.h>
10 #include <vtkSmartPointer.h>
11
12 namespace cpPlugins
13 {
14   namespace Extensions
15   {
16     namespace Visualization
17     {
18       /**
19        */
20       class MPRWithDifferentWindows
21       {
22       public:
23         typedef cpPlugins::Extensions::Visualization::
24         MPRActors TMPRActors;
25         typedef cpPlugins::Extensions::Visualization::
26         ImageInteractorStyle TStyle;
27
28       public:
29         MPRWithDifferentWindows(
30           vtkRenderWindow* xWin = NULL,
31           vtkRenderWindow* yWin = NULL,
32           vtkRenderWindow* zWin = NULL,
33           vtkRenderWindow* auxWin = NULL
34           );
35         virtual ~MPRWithDifferentWindows( );
36
37         void SetImage( vtkImageData* image );
38         void SetSegmentation( vtkImageData* image );
39
40         void ResetCamera( const int& id );
41         void ResetCameras( );
42         void Render( const int& id );
43         void RenderAll( );
44
45       protected:
46         // Inputs
47         vtkRenderWindow* m_Windows[ 4 ];
48
49         // Internal pipelines
50         vtkSmartPointer< TMPRActors >  m_MPRActors;
51         vtkSmartPointer< vtkRenderer > m_Renderers[ 4 ];
52         vtkSmartPointer< TStyle >      m_Styles[ 3 ];
53       };
54
55     } // ecapseman
56
57   } // ecapseman
58
59 } // ecapseman
60
61 #endif // __CPPLUGINS__EXTENSIONS__VISUALIZATION__MPRWITHDIFFERENTWINDOWS__H__
62
63
64 // eof - $RCSfile$