1 #ifndef __IMAGEMPR__H__
2 #define __IMAGEMPR__H__
12 #include <vtkSmartPointer.h>
15 #include <cpPlugins/Interface/Interface.h>
16 #include <cpPlugins/Interface/ProcessObject.h>
17 #include <cpPlugins/Interface/Image.h>
18 #include <cpPlugins/Interface/Mesh.h>
19 #include <cpExtensions/Visualization/MPRWithDifferentWindows.h>
21 // -------------------------------------------------------------------------
27 // -------------------------------------------------------------------------
37 typedef cpPlugins::Interface::Interface TPluginsInterface;
38 typedef cpPlugins::Interface::Object TPluginObject;
39 typedef cpPlugins::Interface::DataObject TPluginData;
40 typedef cpPlugins::Interface::Image TPluginImage;
41 typedef cpPlugins::Interface::Mesh TPluginMesh;
42 typedef cpPlugins::Interface::ProcessObject TPluginFilter;
43 typedef cpPlugins::Interface::Parameters TParameters;
45 typedef std::set< std::string > TStringContainer;
46 typedef cpExtensions::Visualization::MPRWithDifferentWindows TMPR;
49 explicit ImageMPR( QWidget* parent = 0 );
53 bool _LoadPlugins( const std::string& filename );
56 void _triggered_actionOpenPlugins( );
57 void _triggered_actionOpenInputImage( );
58 void _triggered_actionOpenInputPolyData( );
59 void _triggered_actionImageToImage( );
60 void _triggered_actionImageToMesh( );
66 TPluginsInterface m_Plugins;
68 // Needed object from plugins
69 std::string m_ImageReaderClass;
70 std::string m_ImageWriterClass;
71 std::string m_MeshReaderClass;
72 std::string m_MeshWriterClass;
73 TStringContainer m_ImageToImageFilters;
74 TStringContainer m_ImageToMeshFilters;
77 TPluginImage::Pointer m_InputImage;
78 TPluginMesh::Pointer m_InputMesh;
80 // Visualization stuff
82 vtkSmartPointer< vtkPolyDataMapper > m_InputMeshMapper;
83 vtkSmartPointer< vtkActor > m_InputMeshActor;
86 vtkSmartPointer< vtkOrientationMarkerWidget > m_3DOrientationWidget;
90 #endif // __IMAGEMPR__H__