X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FImageMPR%2FImageMPR.h;h=e11ec5ddc71ca6261548cbbd880f423f8c926bb5;hb=31e4cf1f3580efa059d3ffad14ba6a15d2372f5c;hp=c4d43e33d37b8aee02f8a092812ec7f78ea5e238;hpb=a02d2e4b730e0a8c7709856c9c47eb7ad19edda0;p=cpPlugins.git diff --git a/appli/ImageMPR/ImageMPR.h b/appli/ImageMPR/ImageMPR.h index c4d43e3..e11ec5d 100644 --- a/appli/ImageMPR/ImageMPR.h +++ b/appli/ImageMPR/ImageMPR.h @@ -13,7 +13,10 @@ #include // Plugins interface +#include #include +#include +#include // ------------------------------------------------------------------------- namespace Ui @@ -105,11 +108,9 @@ namespace Ui // ------------------------------------------------------------------------- /** */ - - - class ImageMPR - : public QMainWindow + : public QMainWindow, + public cpPlugins::Interface::BaseApplication { Q_OBJECT; @@ -119,6 +120,8 @@ public: typedef cpExtensions::Visualization::MPRObjects TMPRObjects; typedef cpPlugins::Interface::Plugins TPlugins; + typedef cpPlugins::Interface::Image TImage; + typedef cpPlugins::Interface::Mesh TMesh; // Plugins types /* @@ -137,20 +140,25 @@ public: explicit ImageMPR( QWidget* parent = 0 ); virtual ~ImageMPR( ); -protected: - inline void _Block( ) - { - QApplication::setOverrideCursor( Qt::WaitCursor ); - this->setEnabled( false ); - } - inline void _Unblock( ) - { - QApplication::restoreOverrideCursor( ); - this->setEnabled( true ); - } + virtual void UpdateActualFilter( ); + /* TODO + protected: + inline void _Block( ) + { + QApplication::setOverrideCursor( Qt::WaitCursor ); + this->setEnabled( false ); + } + inline void _Unblock( ) + { + QApplication::restoreOverrideCursor( ); + this->setEnabled( true ); + } + */ + +protected: + void _AssociatePluginsToMenu( ); /* - protected: bool _LoadPlugins( const std::string& filename ); std::string _LoadImage( TPluginImage::Pointer& image ); std::string _ConfigureMeshActors( ); @@ -173,12 +181,18 @@ private slots: private: Ui::ImageMPR* m_UI; - TPlugins* m_Plugins; + TPlugins m_Plugins; + std::string m_ActiveFilterMainInput; // Objects - typedef std::pair< std::string, TPlugins::TDataObject::Pointer > TTreeNode; - typedef std::map< std::string, TTreeNode > TTree; - TTree m_Objects; + /* + typedef std::pair< std::string, TPlugins::TDataObject::Pointer > TTreeNode; + typedef std::map< std::string, TTreeNode > TTree; + TTree m_Objects; + + // Active filter (for modal configuration) + TPlugins::TProcessObject::Pointer m_ActiveFilter; + */ // Plugins objects /*