X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FImageMPR%2FImageMPR.h;h=cf3e5c1b5f3695955396cb7ad45331a8f1fec5a6;hb=c3c3da5217b6eb255db9c0424f22d4e01250901e;hp=959daf1fc2a62195bbe3ce2031b4c5c379c4cd78;hpb=9015cf98c60cf4ab304a639990004ee783a8bec0;p=cpPlugins.git diff --git a/appli/ImageMPR/ImageMPR.h b/appli/ImageMPR/ImageMPR.h index 959daf1..cf3e5c1 100644 --- a/appli/ImageMPR/ImageMPR.h +++ b/appli/ImageMPR/ImageMPR.h @@ -1,22 +1,20 @@ #ifndef __IMAGEMPR__H__ #define __IMAGEMPR__H__ -// Standard stuff -#include -#include +#include // Qt stuff #include // vtk stuff #include +#include // Plugins interface #include #include #include #include -#include // ------------------------------------------------------------------------- namespace Ui @@ -42,8 +40,7 @@ public: typedef cpPlugins::Interface::ProcessObject TPluginFilter; typedef cpPlugins::Interface::Parameters TParameters; - typedef std::map< std::string, std::string > TStringMap; - typedef cpPlugins::Extensions::Visualization::MPRWithDifferentWindows TMPR; + typedef cpExtensions::Visualization::MPRObjects TMPRObjects; public: explicit ImageMPR( QWidget* parent = 0 ); @@ -51,11 +48,17 @@ public: protected: bool _LoadPlugins( const std::string& filename ); + std::string _LoadImage( + TPluginImage::Pointer& image, const QStringList& names + ); private slots: void _triggered_actionOpenPlugins( ); void _triggered_actionOpenInputImage( ); + void _triggered_actionOpenSegmentation( ); void _triggered_actionOpenInputPolyData( ); + void _triggered_actionImageToImage( ); + void _triggered_actionImageToMesh( ); private: Ui::ImageMPR* m_UI; @@ -64,16 +67,18 @@ private: TPluginsInterface m_Plugins; // Needed object from plugins - TStringMap m_BaseClasses; + std::string m_ImageReaderClass; + std::string m_ImageWriterClass; + std::string m_MeshReaderClass; + std::string m_MeshWriterClass; // Real data TPluginImage::Pointer m_InputImage; + TPluginImage::Pointer m_InputSegmentation; TPluginMesh::Pointer m_InputMesh; // Visualization stuff - TMPR* m_MPR; - vtkSmartPointer< vtkPolyDataMapper > m_InputMeshMapper; - vtkSmartPointer< vtkActor > m_InputMeshActor; + vtkSmartPointer< TMPRObjects > m_MPRObjects; /* TODO vtkSmartPointer< vtkOrientationMarkerWidget > m_3DOrientationWidget;