X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FImageMPR%2FImageMPR.h;h=e11ec5ddc71ca6261548cbbd880f423f8c926bb5;hb=f4ed5b2e93a5c96abf19b77f4a989b6614e238f7;hp=b1d43fff0c560c1a6c20bd270855da25d2536bb2;hpb=a0e1213d4d1fd054dc40a63849c152064b496731;p=cpPlugins.git diff --git a/appli/ImageMPR/ImageMPR.h b/appli/ImageMPR/ImageMPR.h index b1d43ff..e11ec5d 100644 --- a/appli/ImageMPR/ImageMPR.h +++ b/appli/ImageMPR/ImageMPR.h @@ -1,9 +1,11 @@ #ifndef __IMAGEMPR__H__ #define __IMAGEMPR__H__ +#include #include // Qt stuff +#include #include // vtk stuff @@ -11,14 +13,10 @@ #include // Plugins interface -#include -#include +#include +#include #include -#include #include -#include -#include - // ------------------------------------------------------------------------- namespace Ui @@ -110,11 +108,9 @@ namespace Ui // ------------------------------------------------------------------------- /** */ - - - class ImageMPR - : public QMainWindow + : public QMainWindow, + public cpPlugins::Interface::BaseApplication { Q_OBJECT; @@ -123,6 +119,9 @@ public: typedef QMainWindow Superclass; typedef cpExtensions::Visualization::MPRObjects TMPRObjects; + typedef cpPlugins::Interface::Plugins TPlugins; + typedef cpPlugins::Interface::Image TImage; + typedef cpPlugins::Interface::Mesh TMesh; // Plugins types /* @@ -141,8 +140,25 @@ public: explicit ImageMPR( QWidget* parent = 0 ); virtual ~ImageMPR( ); + 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( ); @@ -165,10 +181,18 @@ private slots: private: Ui::ImageMPR* m_UI; + TPlugins m_Plugins; + std::string m_ActiveFilterMainInput; - // Some state flags - std::string m_ImageLoaded; - bool m_Flooding; + // 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 /*