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 <vtkSphereWidget2.h>
14 class cpExtensions_EXPORT SphereWidget
15 : public vtkSphereWidget2
18 typedef SphereWidget Self;
19 vtkTypeMacro( SphereWidget, vtkSphereWidget2 );
21 typedef cpExtensions::Interaction::BaseInteractorStyle TBaseStyle;
22 typedef TBaseStyle::TMouseCommand TMouseCommand;
23 typedef TBaseStyle::TKeyCommand TKeyCommand;
28 virtual void SetInteractor( vtkRenderWindowInteractor* rwi );
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 _KeyPress(void* data, const char& key);
47 // Purposely not implemented
48 SphereWidget( const Self& );
49 Self& operator=( const Self& );
56 #endif // __CPEXTENSIONS__INTERACTION__SphereWidget__H__