]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/Interaction/SeedWidget.h
...
[cpPlugins.git] / lib / cpExtensions / Interaction / SeedWidget.h
1 #ifndef __cpExtensions__Interaction__SeedWidget__h__
2 #define __cpExtensions__Interaction__SeedWidget__h__
3
4 #include <cpExtensions/Config.h>
5 #include <cpExtensions/Interaction/BaseStyle.h>
6 #include <vtkSeedWidget.h>
7
8 namespace cpExtensions
9 {
10   namespace Interaction
11   {
12     /**
13      */
14     class cpExtensions_EXPORT SeedWidget
15       : public vtkSeedWidget
16     {
17     public:
18       typedef SeedWidget Self;
19       vtkTypeMacro( SeedWidget, vtkSeedWidget );
20
21       typedef cpExtensions::Interaction::BaseStyle TBaseStyle;
22
23     public:
24       static Self* New( );
25
26       virtual void SetInteractor(
27         vtkRenderWindowInteractor* rwi
28         ) cpExtensions_OVERRIDE;
29
30     protected:
31       SeedWidget( );
32       virtual ~SeedWidget( );
33
34       static void _AddPointAction( vtkAbstractWidget* wdg );
35       static void _CompletedAction( vtkAbstractWidget* wdg );
36       static void _MoveAction( vtkAbstractWidget* wdg );
37       static void _EndSelectAction( vtkAbstractWidget* wdg );
38       static void _DeleteAction( vtkAbstractWidget* wdg );
39
40       /* TODO
41          static void _Click(
42          void* data, const TBaseStyle::ButtonID& button,
43          int* idx, double* pos, bool alt, bool ctr, bool sft
44          );
45          static void _DoubleClick(
46          void* data, const TBaseStyle::ButtonID& button,
47          int* idx, double* pos, bool alt, bool ctr, bool sft
48          );
49       */
50
51     private:
52       // Purposely not implemented
53       SeedWidget( const Self& );
54       Self& operator=( const Self& );
55     };
56
57   } // ecapseman
58
59 } // ecapseman
60
61 #endif // __cpExtensions__Interaction__SeedWidget__h__
62
63 // eof - $RCSfile$