]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/BaseObjects/Widget.h
Cast image filter added. ROI filter modified.
[cpPlugins.git] / lib / cpPlugins / BaseObjects / Widget.h
index 17132cc4479572b2fb3708c78f1d4702a02dbb72..8cfec87e115af6a477f0dfc18005962ff355c41c 100644 (file)
@@ -2,6 +2,7 @@
 #define __cpPlugins__BaseObjects__Widget__h__
 
 #include <cpPlugins/BaseObjects/ProcessObject.h>
+#include <vtkRenderWindowInteractor.h>
 
 // -------------------------------------------------------------------------
 namespace cpPlugins
@@ -24,6 +25,7 @@ namespace cpPlugins
       cpPlugins_Id_Macro( Widget, Object );
 
     public:
+      virtual void AddInteractor( vtkRenderWindowInteractor* i ) cpPlugins_OVERRIDE;
       virtual bool IsInteractive( ) cpPlugins_OVERRIDE;
 
       virtual void EnabledOn( );
@@ -40,6 +42,18 @@ namespace cpPlugins
       // Purposely not implemented
       Widget( const Self& );
       Self& operator=( const Self& );
+
+    protected:
+      typedef vtkSmartPointer< vtkRenderWindowInteractor > _TInteractor;
+      struct _TInteractorCmp
+      {
+        bool operator()(
+          const _TInteractor& a, const _TInteractor& b
+          ) const
+          { return( a.GetPointer( ) < b.GetPointer( ) ); }
+      };
+      std::set< _TInteractor, _TInteractorCmp > m_Interactors;
+
     };
 
   } // ecapseman