]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/ProcessObject.h
...
[cpPlugins.git] / lib / cpPlugins / Interface / ProcessObject.h
index c48d61f3e36ab0f201c30aeac8a8f71b89640473..ddd1c21aa150ad2cd38987e82ad1bfb4f76d3677 100644 (file)
@@ -23,8 +23,10 @@ namespace cpPlugins
     // Some forward declarations
 #ifdef cpPlugins_Interface_QT4
     class ParametersQtDialog;
+    class SimpleMPRWidget;
 #else
     typedef char ParametersQtDialog;
+    typedef char SimpleMPRWidget;
 #endif // cpPlugins_Interface_QT4
 
     /**
@@ -64,8 +66,13 @@ namespace cpPlugins
       virtual std::string Update( );
       virtual void DisconnectOutputs( );
 
-      virtual const TInteractors& GetInteractors( ) const;
-      virtual void AddInteractor( vtkRenderWindowInteractor* interactor );
+      // Widgets management
+      vtkRenderWindowInteractor* GetSingleInteractor( );
+      const vtkRenderWindowInteractor* GetSingleInteractor( ) const;
+      void SetSingleInteractor( vtkRenderWindowInteractor* interactor );
+      SimpleMPRWidget* GetMPRViewer( );
+      const SimpleMPRWidget* GetMPRViewer( ) const;
+      void SetMPRViewer( SimpleMPRWidget* wdg );
       virtual bool ExecConfigurationDialog( QWidget* parent );
 
       template< class T >
@@ -106,8 +113,9 @@ namespace cpPlugins
       Parameters::Pointer m_Parameters;
       ParametersQtDialog* m_ParametersDialog;
 
-      TInteractors m_Interactors;
-      bool         m_Interactive;
+      vtkSmartPointer< vtkRenderWindowInteractor > m_SingleInteractor;
+      SimpleMPRWidget*                             m_MPRViewer;
+      bool                                         m_Interactive;
 
       typedef std::map< std::string, DataObject::Pointer > _TDataContainer;
       _TDataContainer m_Inputs;