1 #ifndef __CPPLUGINS__INTERFACE__BASEMPRWINDOW__H__
2 #define __CPPLUGINS__INTERFACE__BASEMPRWINDOW__H__
4 #include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
5 #include <cpPlugins/Interface/Config.h>
7 #ifdef cpPlugins_Interface_QT4
9 #include <QApplication>
11 #include <QVTKWidget.h>
13 #include <vtkSmartPointer.h>
14 #include <cpExtensions/QT/QuadSplitter.h>
15 #include <cpExtensions/Visualization/MPRObjects.h>
23 class cpPlugins_Interface_EXPORT BaseMPRWindow
24 : public cpExtensions::QT::QuadSplitter
29 typedef cpExtensions::Visualization::MPRObjects TMPRObjects;
31 typedef TMPRObjects::TBaseStyle TBaseStyle;
32 typedef TMPRObjects::TStyle TStyle;
33 typedef TMPRObjects::TSlicesCommand TSlicesCommand;
34 typedef TMPRObjects::TWindowLevelCommand TWindowLevelCommand;
35 typedef TMPRObjects::TMouseCommand TMouseCommand;
36 typedef TMPRObjects::TMouseWheelCommand TMouseWheelCommand;
37 typedef TMPRObjects::TKeyCommand TKeyCommand;
38 typedef TMPRObjects::TVoidCommand TVoidCommand;
41 explicit BaseMPRWindow( QWidget* parent = 0 );
42 virtual ~BaseMPRWindow( );
44 // Some visualization accessors
45 bool ShowImage( vtkImageData* image );
46 bool ShowImage( vtkImageData* image, double r, double g, double b );
47 bool ShowMesh( vtkPolyData* mesh );
48 double GetWindow( ) const;
49 double GetLevel( ) const;
52 // Some more visualization (3D)
53 void Add3DActor( vtkProp3D* prop );
56 vtkSmartPointer< TMPRObjects > m_MPRObjects;
68 #endif // cpPlugins_Interface_QT4
70 #endif // __CPPLUGINS__INTERFACE__BASEMPRWINDOW__H__