]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Interaction/SphereWidget.h
First dump for version 0.1.0
[cpPlugins.git] / lib / cpExtensions / Interaction / SphereWidget.h
index 11ce916c814bc236c29c3345b67b0fe8b0ff4e04..9afae7c894be0b89f454a7efeef73b84d9f027cb 100644 (file)
@@ -26,9 +26,10 @@ namespace cpExtensions
       static Self* New( );
 
       virtual void SetInteractor( vtkRenderWindowInteractor* rwi );
-
-      
-
+      void SetCenter(double* center);
+      void SetAxis(int axis);
+      int GetAxis();
+      double * GetPosition();
     protected:
       SphereWidget( );
       virtual ~SphereWidget( );
@@ -41,9 +42,21 @@ namespace cpExtensions
         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& );