1 #ifndef __CPEXTENSIONS__INTERACTION__IMAGEINTERACTORSTYLE__H__
2 #define __CPEXTENSIONS__INTERACTION__IMAGEINTERACTORSTYLE__H__
4 #include <cpExtensions/Interaction/BaseInteractorStyle.h>
8 #include <vtkSmartPointer.h>
9 #include <vtkPropPicker.h>
11 // Forward definitions
14 namespace cpExtensions
20 class cpExtensions_EXPORT ImageInteractorStyle
21 : public BaseInteractorStyle
24 typedef ImageInteractorStyle Self;
25 vtkTypeMacro( ImageInteractorStyle, BaseInteractorStyle );
28 typedef Superclass::TMouseCommand TMouseCommand;
29 typedef Superclass::TMouseWheelCommand TMouseWheelCommand;
30 typedef Superclass::TKeyCommand TKeyCommand;
31 typedef Superclass::TVoidCommand TVoidCommand;
32 typedef Superclass::TMouseMoveCommand TMouseMoveCommand;
33 typedef Superclass::TMouseClickCommand TMouseClickCommand;
34 typedef Superclass::TMouseDoubleClickCommand TMouseDoubleClickCommand;
35 typedef Superclass::TExposeCommand TExposeCommand;
36 typedef Superclass::TConfigureCommand TConfigureCommand;
37 typedef Superclass::TEnterCommand TEnterCommand;
38 typedef Superclass::TLeaveCommand TLeaveCommand;
43 // Data for local picker
44 virtual void AssociateImageActor( vtkImageActor* actor );
47 ImageInteractorStyle( );
48 virtual ~ImageInteractorStyle( );
50 virtual bool _PickPosition( int idx[ 2 ], double pos[ 3 ] );
53 // Purposely not implemented
54 ImageInteractorStyle( const Self& );
55 Self& operator=( const Self& );
58 vtkSmartPointer< vtkPropPicker > m_PropPicker;
65 #endif // __CPEXTENSIONS__INTERACTION__IMAGEINTERACTORSTYLE__H__