]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Interaction/SeedWidget.h
Cast image filter added. ROI filter modified.
[cpPlugins.git] / lib / cpExtensions / Interaction / SeedWidget.h
index 526ac7eaca6ff25f9683c1642fa1bc5200d9ef4d..858218b2657b306cc72624d3f46c0ead0061e47a 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __CPEXTENSIONS__INTERACTION__SEEDWIDGET__H__
-#define __CPEXTENSIONS__INTERACTION__SEEDWIDGET__H__
+#ifndef __cpExtensions__Interaction__SeedWidget__h__
+#define __cpExtensions__Interaction__SeedWidget__h__
 
-#include <cpExtensions/cpExtensions_Export.h>
-#include <cpExtensions/Interaction/BaseInteractorStyle.h>
+#include <cpExtensions/Config.h>
+#include <cpExtensions/Interaction/BaseStyle.h>
 #include <vtkSeedWidget.h>
 
 namespace cpExtensions
@@ -18,26 +18,35 @@ namespace cpExtensions
       typedef SeedWidget Self;
       vtkTypeMacro( SeedWidget, vtkSeedWidget );
 
-      typedef cpExtensions::Interaction::BaseInteractorStyle TBaseStyle;
-      typedef TBaseStyle::TMouseCommand TMouseCommand;
+      typedef cpExtensions::Interaction::BaseStyle TBaseStyle;
 
     public:
       static Self* New( );
 
-      virtual void SetInteractor( vtkRenderWindowInteractor* rwi );
+      virtual void SetInteractor(
+        vtkRenderWindowInteractor* rwi
+        ) cpExtensions_OVERRIDE;
 
     protected:
       SeedWidget( );
       virtual ~SeedWidget( );
 
-      static void _Click(
-        void* data, const TBaseStyle::ButtonID& button,
-        int* idx, double* pos, bool alt, bool ctr, bool sft
-        );
-      static void _DoubleClick(
-        void* data, const TBaseStyle::ButtonID& button,
-        int* idx, double* pos, bool alt, bool ctr, bool sft
-        );
+      static void _AddPointAction( vtkAbstractWidget* wdg );
+      static void _CompletedAction( vtkAbstractWidget* wdg );
+      static void _MoveAction( vtkAbstractWidget* wdg );
+      static void _EndSelectAction( vtkAbstractWidget* wdg );
+      static void _DeleteAction( vtkAbstractWidget* wdg );
+
+      /* TODO
+         static void _Click(
+         void* data, const TBaseStyle::ButtonID& button,
+         int* idx, double* pos, bool alt, bool ctr, bool sft
+         );
+         static void _DoubleClick(
+         void* data, const TBaseStyle::ButtonID& button,
+         int* idx, double* pos, bool alt, bool ctr, bool sft
+         );
+      */
 
     private:
       // Purposely not implemented
@@ -49,6 +58,6 @@ namespace cpExtensions
 
 } // ecapseman
 
-#endif // __CPEXTENSIONS__INTERACTION__SEEDWIDGET__H__
+#endif // __cpExtensions__Interaction__SeedWidget__h__
 
 // eof - $RCSfile$