#ifndef __CPPLUGINS__INTERFACE__BASEMPRWINDOW__H__ #define __CPPLUGINS__INTERFACE__BASEMPRWINDOW__H__ #include #include #ifdef cpPlugins_Interface_QT4 #include #include #include #include #include #include namespace cpPlugins { namespace Interface { /** */ class cpPlugins_Interface_EXPORT BaseMPRWindow : public cpExtensions::QT::QuadSplitter { Q_OBJECT; public: typedef cpExtensions::Visualization::MPRObjects TMPRObjects; typedef TMPRObjects::TBaseStyle TBaseStyle; typedef TMPRObjects::TStyle TStyle; typedef TMPRObjects::TSlicesCommand TSlicesCommand; typedef TMPRObjects::TWindowLevelCommand TWindowLevelCommand; typedef TMPRObjects::TMouseCommand TMouseCommand; typedef TMPRObjects::TMouseWheelCommand TMouseWheelCommand; typedef TMPRObjects::TKeyCommand TKeyCommand; typedef TMPRObjects::TVoidCommand TVoidCommand; public: explicit BaseMPRWindow( QWidget* parent = 0 ); virtual ~BaseMPRWindow( ); // Some visualization accessors bool ShowImage( vtkImageData* image ); bool ShowImage( vtkImageData* image, double r, double g, double b ); bool ShowMesh( vtkPolyData* mesh ); double GetWindow( ) const; double GetLevel( ) const; void ClearAll( ); // Some more visualization (3D) void Add3DActor( vtkProp3D* prop ); protected: vtkSmartPointer< TMPRObjects > m_MPRObjects; QVTKWidget* m_XVTK; QVTKWidget* m_YVTK; QVTKWidget* m_ZVTK; QVTKWidget* m_WVTK; }; } // ecapseman } // ecapseman #endif // cpPlugins_Interface_QT4 #endif // __CPPLUGINS__INTERFACE__BASEMPRWINDOW__H__ // eof - $RCSfile$