X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FInteraction%2FSphereWidget.h;fp=lib%2FcpExtensions%2FInteraction%2FSphereWidget.h;h=0000000000000000000000000000000000000000;hb=aa77db36cc1d87ba014c982a235239c3c87224f3;hp=9afae7c894be0b89f454a7efeef73b84d9f027cb;hpb=733108d258a27799df875ceda2d84c3cafea64d3;p=cpPlugins.git diff --git a/lib/cpExtensions/Interaction/SphereWidget.h b/lib/cpExtensions/Interaction/SphereWidget.h deleted file mode 100644 index 9afae7c..0000000 --- a/lib/cpExtensions/Interaction/SphereWidget.h +++ /dev/null @@ -1,71 +0,0 @@ -#ifndef __CPEXTENSIONS__INTERACTION__SphereWidget__H__ -#define __CPEXTENSIONS__INTERACTION__SphereWidget__H__ - -#include -#include -#include - -namespace cpExtensions -{ - namespace Interaction - { - /** - */ - class cpExtensions_EXPORT SphereWidget - : public vtkSphereWidget - { - public: - typedef SphereWidget Self; - vtkTypeMacro( SphereWidget, vtkSphereWidget ); - - typedef cpExtensions::Interaction::BaseInteractorStyle TBaseStyle; - typedef TBaseStyle::TMouseCommand TMouseCommand; - typedef TBaseStyle::TKeyCommand TKeyCommand; - - public: - static Self* New( ); - - virtual void SetInteractor( vtkRenderWindowInteractor* rwi ); - void SetCenter(double* center); - void SetAxis(int axis); - int GetAxis(); - double * GetPosition(); - protected: - SphereWidget( ); - virtual ~SphereWidget( ); - - static void _Click( - void* data, const TBaseStyle::ButtonID& button, - int* idx, double* pos, bool alt, bool ctr, bool sft - ); - static void _DoubleClick( - void* data, const TBaseStyle::ButtonID& button, - int* idx, double* pos, bool alt, bool ctr, bool sft - ); - static void _MouseMove( - void* data, const TBaseStyle::ButtonID& button, - int* idx, double* pos, bool alt, bool ctr, bool sft - ); - - static void _KeyPress(void* data, const char& key); - - static void SetCenter(void* data, double* center); - - static void SetAxis(void* data, int axis); - static int GetAxis(void* data); - static double * GetPosition(void* data); - private: - int m_axis; - - // Purposely not implemented - SphereWidget( const Self& ); - Self& operator=( const Self& ); - }; - - } // ecapseman - -} // ecapseman - -#endif // __CPEXTENSIONS__INTERACTION__SphereWidget__H__ - -// eof - $RCSfile$