]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Interaction/SeedWidget.h
yet another refactoring
[cpPlugins.git] / lib / cpExtensions / Interaction / SeedWidget.h
diff --git a/lib/cpExtensions/Interaction/SeedWidget.h b/lib/cpExtensions/Interaction/SeedWidget.h
new file mode 100644 (file)
index 0000000..858218b
--- /dev/null
@@ -0,0 +1,63 @@
+#ifndef __cpExtensions__Interaction__SeedWidget__h__
+#define __cpExtensions__Interaction__SeedWidget__h__
+
+#include <cpExtensions/Config.h>
+#include <cpExtensions/Interaction/BaseStyle.h>
+#include <vtkSeedWidget.h>
+
+namespace cpExtensions
+{
+  namespace Interaction
+  {
+    /**
+     */
+    class cpExtensions_EXPORT SeedWidget
+      : public vtkSeedWidget
+    {
+    public:
+      typedef SeedWidget Self;
+      vtkTypeMacro( SeedWidget, vtkSeedWidget );
+
+      typedef cpExtensions::Interaction::BaseStyle TBaseStyle;
+
+    public:
+      static Self* New( );
+
+      virtual void SetInteractor(
+        vtkRenderWindowInteractor* rwi
+        ) cpExtensions_OVERRIDE;
+
+    protected:
+      SeedWidget( );
+      virtual ~SeedWidget( );
+
+      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
+      SeedWidget( const Self& );
+      Self& operator=( const Self& );
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __cpExtensions__Interaction__SeedWidget__h__
+
+// eof - $RCSfile$