]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/QT/MPR3DWidget.h
Architecture updated.
[cpPlugins.git] / lib / cpExtensions / QT / MPR3DWidget.h
1 #ifndef __cpExtensions__QT__MPR3DWidget__h__
2 #define __cpExtensions__QT__MPR3DWidget__h__
3
4 #include <cpExtensions/QT/RendererWidget.h>
5
6 #ifdef cpExtensions_QT4
7
8 // -------------------------------------------------------------------------
9 class vtkDataSet;
10
11 // -------------------------------------------------------------------------
12 namespace cpExtensions
13 {
14   namespace Visualization { class MPR3DActors; }
15
16   namespace QT
17   {
18     /**
19      */
20     class cpExtensions_EXPORT MPR3DWidget
21       : public cpExtensions::QT::RendererWidget
22     {
23       Q_OBJECT;
24
25     public:
26       typedef MPR3DWidget                      Self;
27       typedef cpExtensions::QT::RendererWidget Superclass;
28
29     public:
30       explicit MPR3DWidget( QWidget* parent = NULL, Qt::WindowFlags f = 0 );
31       virtual ~MPR3DWidget( );
32
33       void SetImage( vtkImageData* image, const std::string& name );
34       void Add( vtkDataSet* data, const std::string& name );
35
36       void SetSliceNumber( int orientation, int slice );
37       void SetSlicesNumbers( int x, int y, int z );
38
39       void SetScalarRange( double r[ 2 ] );
40       void SetWindowLevel( double wl[ 2 ] );
41       void SetImageOpacity( double o );
42       void SetImageInterpolation( unsigned char i );
43
44     protected:
45       vtkSmartPointer< cpExtensions::Visualization::MPR3DActors > m_Actors;
46       std::string m_ImageName;
47     };
48
49   } // ecapseman
50
51 } // ecapseman
52
53 #endif // cpExtensions_QT4
54
55 #endif // __cpExtensions__QT__MPR3DWidget__h__
56
57 // eof - $RCSfile$