1 #ifndef __CPEXTENSIONS__INTERACTION__SphereWidget__H__
2 #define __CPEXTENSIONS__INTERACTION__SphereWidget__H__
4 #include <cpExtensions/cpExtensions_Export.h>
5 #include <cpExtensions/Interaction/BaseInteractorStyle.h>
6 #include <vtkSphereWidget.h>
14 class cpExtensions_EXPORT SphereWidget
15 : public vtkSphereWidget
18 typedef SphereWidget Self;
19 vtkTypeMacro( SphereWidget, vtkSphereWidget );
21 typedef cpExtensions::Interaction::BaseInteractorStyle TBaseStyle;
22 typedef TBaseStyle::TMouseCommand TMouseCommand;
23 typedef TBaseStyle::TKeyCommand TKeyCommand;
28 virtual void SetInteractor( vtkRenderWindowInteractor* rwi );
29 void SetCenter(double* center);
34 virtual ~SphereWidget( );
37 void* data, const TBaseStyle::ButtonID& button,
38 int* idx, double* pos, bool alt, bool ctr, bool sft
40 static void _DoubleClick(
41 void* data, const TBaseStyle::ButtonID& button,
42 int* idx, double* pos, bool alt, bool ctr, bool sft
44 static void _MouseMove(
45 void* data, const TBaseStyle::ButtonID& button,
46 int* idx, double* pos, bool alt, bool ctr, bool sft
49 static void _KeyPress(void* data, const char& key);
51 static void SetCenter(void* data, double* center);
54 // Purposely not implemented
55 SphereWidget( const Self& );
56 Self& operator=( const Self& );
63 #endif // __CPEXTENSIONS__INTERACTION__SphereWidget__H__