]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Interaction/SphereWidget.h
sphere widget done, finally
[cpPlugins.git] / lib / cpExtensions / Interaction / SphereWidget.h
index b1a11bdf485c4dfbd629780f2282e8318f1c8976..9afae7c894be0b89f454a7efeef73b84d9f027cb 100644 (file)
@@ -27,8 +27,9 @@ namespace cpExtensions
 
       virtual void SetInteractor( vtkRenderWindowInteractor* rwi );
       void SetCenter(double* center);
-      
-
+      void SetAxis(int axis);
+      int GetAxis();
+      double * GetPosition();
     protected:
       SphereWidget( );
       virtual ~SphereWidget( );
@@ -50,7 +51,12 @@ namespace cpExtensions
        
       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& );