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
16 class ImageOutlineActor;
18 class WindowLevelImageActor;
25 class cpExtensions_EXPORT MPR3DWidget
26 : public cpExtensions::QT::RendererWidget
31 typedef MPR3DWidget Self;
32 typedef cpExtensions::QT::RendererWidget Superclass;
34 typedef cpExtensions::Visualization::MeshActor TActor;
35 typedef cpExtensions::Visualization::ImageOutlineActor TOLActor;
36 typedef cpExtensions::Visualization::WindowLevelImageActor TWLActor;
39 explicit MPR3DWidget( QWidget* parent = NULL, Qt::WindowFlags f = 0 );
40 virtual ~MPR3DWidget( );
43 void SetImage( vtkImageData* image, const std::string& name );
44 void Add( vtkDataSet* data, const std::string& name );
46 TWLActor* GetImageActor( int o );
47 const TWLActor* GetImageActor( int o ) const;
49 void SetSliceNumber( int orientation, int slice );
50 void SetSlicesNumbers( int x, int y, int z );
53 std::string m_ImageName;
55 vtkSmartPointer< TWLActor > m_WLActors[ 3 ];
56 vtkSmartPointer< TOLActor > m_OLActors[ 3 ];
57 std::vector< TActor* > m_Actors;
64 #endif // cpExtensions_QT4
66 #endif // __cpExtensions__QT__MPR3DWidget__h__