1 #ifndef __cpExtensions__QT__MPR3DWidget__h__
2 #define __cpExtensions__QT__MPR3DWidget__h__
4 #include <cpExtensions/QT/RendererWidget.h>
6 #ifdef cpExtensions_QT4
8 // -------------------------------------------------------------------------
11 // -------------------------------------------------------------------------
12 namespace cpExtensions
14 namespace Visualization { class MPR3DActors; }
20 class cpExtensions_EXPORT MPR3DWidget
21 : public cpExtensions::QT::RendererWidget
26 typedef MPR3DWidget Self;
27 typedef cpExtensions::QT::RendererWidget Superclass;
30 explicit MPR3DWidget( QWidget* parent = NULL, Qt::WindowFlags f = 0 );
31 virtual ~MPR3DWidget( );
33 void SetImage( vtkImageData* image, const std::string& name );
34 void Add( vtkDataSet* data, const std::string& name );
36 void SetSliceNumber( int orientation, int slice );
37 void SetSlicesNumbers( int x, int y, int z );
39 void SetScalarRange( double r[ 2 ] );
40 void SetWindowLevel( double wl[ 2 ] );
41 void SetImageOpacity( double o );
42 void SetImageInterpolation( unsigned char i );
45 vtkSmartPointer< cpExtensions::Visualization::MPR3DActors > m_Actors;
46 std::string m_ImageName;
53 #endif // cpExtensions_QT4
55 #endif // __cpExtensions__QT__MPR3DWidget__h__