X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FImageMPR%2FImageMPR.h;h=cf3e5c1b5f3695955396cb7ad45331a8f1fec5a6;hb=c3c3da5217b6eb255db9c0424f22d4e01250901e;hp=c9bb20f31f71f214bc00d4933519e7c6f5c6f95f;hpb=cb833d2fface96e020fe91584d2206860a8174ee;p=cpPlugins.git diff --git a/appli/ImageMPR/ImageMPR.h b/appli/ImageMPR/ImageMPR.h index c9bb20f..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 +#include // ------------------------------------------------------------------------- namespace Ui @@ -38,19 +36,29 @@ public: typedef cpPlugins::Interface::Object TPluginObject; typedef cpPlugins::Interface::DataObject TPluginData; typedef cpPlugins::Interface::Image TPluginImage; - typedef cpPlugins::Interface::ProcessObject TPlugin; - typedef TPlugin::TParameters TParameters; + typedef cpPlugins::Interface::Mesh TPluginMesh; + 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 ); virtual ~ImageMPR( ); +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; @@ -59,13 +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< TMPRObjects > m_MPRObjects; /* TODO vtkSmartPointer< vtkOrientationMarkerWidget > m_3DOrientationWidget;