1 #ifndef __IMAGEMPR__H__
2 #define __IMAGEMPR__H__
10 #include <vtkSmartPointer.h>
11 #include <cpExtensions/Visualization/MPRObjects.h>
14 #include <cpPlugins/Interface/Interface.h>
15 #include <cpPlugins/Interface/ProcessObject.h>
16 #include <cpPlugins/Interface/Image.h>
17 #include <cpPlugins/Interface/Mesh.h>
19 // -------------------------------------------------------------------------
25 // -------------------------------------------------------------------------
35 typedef cpPlugins::Interface::Interface TPluginsInterface;
36 typedef cpPlugins::Interface::Object TPluginObject;
37 typedef cpPlugins::Interface::DataObject TPluginData;
38 typedef cpPlugins::Interface::Image TPluginImage;
39 typedef cpPlugins::Interface::Mesh TPluginMesh;
40 typedef cpPlugins::Interface::ProcessObject TPluginFilter;
41 typedef cpPlugins::Interface::Parameters TParameters;
43 typedef cpExtensions::Visualization::MPRObjects TMPRObjects;
46 explicit ImageMPR( QWidget* parent = 0 );
50 bool _LoadPlugins( const std::string& filename );
51 std::string _LoadImage(
52 TPluginImage::Pointer& image, const QStringList& names
56 void _triggered_actionOpenPlugins( );
57 void _triggered_actionOpenInputImage( );
58 void _triggered_actionOpenSegmentation( );
59 void _triggered_actionOpenInputPolyData( );
60 void _triggered_actionImageToImage( );
61 void _triggered_actionImageToMesh( );
67 TPluginsInterface m_Plugins;
69 // Needed object from plugins
70 std::string m_ImageReaderClass;
71 std::string m_ImageWriterClass;
72 std::string m_MeshReaderClass;
73 std::string m_MeshWriterClass;
76 TPluginImage::Pointer m_InputImage;
77 TPluginImage::Pointer m_InputSegmentation;
78 TPluginMesh::Pointer m_InputMesh;
80 // Visualization stuff
81 vtkSmartPointer< TMPRObjects > m_MPRObjects;
84 vtkSmartPointer< vtkOrientationMarkerWidget > m_3DOrientationWidget;
88 #endif // __IMAGEMPR__H__