]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/Interaction/ImageInteractorStyle.h
More widgets added
[cpPlugins.git] / lib / cpExtensions / Interaction / ImageInteractorStyle.h
1 #ifndef __CPEXTENSIONS__INTERACTION__IMAGEINTERACTORSTYLE__H__
2 #define __CPEXTENSIONS__INTERACTION__IMAGEINTERACTORSTYLE__H__
3
4 #include <cpExtensions/Interaction/BaseInteractorStyle.h>
5
6 #include <vector>
7
8 #include <vtkSmartPointer.h>
9 #include <vtkPropPicker.h>
10
11 // Forward definitions
12 class vtkImageActor;
13
14 namespace cpExtensions
15 {
16   namespace Interaction
17   {
18     /**
19      */
20     class cpExtensions_EXPORT ImageInteractorStyle
21       : public BaseInteractorStyle
22     {
23     public:
24       typedef ImageInteractorStyle Self;
25       vtkTypeMacro( ImageInteractorStyle, BaseInteractorStyle );
26
27     public:
28       static Self* New( );
29
30       // Data for local picker
31       virtual void AssociateImageActor( vtkImageActor* actor );
32
33     protected:
34       ImageInteractorStyle( );
35       virtual ~ImageInteractorStyle( );
36
37       virtual bool _PickPosition( int idx[ 2 ], double pos[ 3 ] );
38
39     private:
40       // Purposely not implemented
41       ImageInteractorStyle( const Self& );
42       Self& operator=( const Self& );
43
44     protected:
45       vtkSmartPointer< vtkPropPicker > m_PropPicker;
46     };
47
48   } // ecapseman
49
50 } // ecapseman
51
52 #endif // __CPEXTENSIONS__INTERACTION__IMAGEINTERACTORSTYLE__H__
53
54 // eof - $RCSfile$