]> Creatis software - creaVtk.git/blobdiff - lib/creaVtk/creaVtkPlaneWidget.h
#3474 PlaneWidget Box with representation:Wireframe and resolution
[creaVtk.git] / lib / creaVtk / creaVtkPlaneWidget.h
index 2e87e48d9c6c82a6fcd6d3b0010175ff0997b199..043132e302edc7b5436a7a654c4e2cff69344a61 100644 (file)
@@ -83,6 +83,8 @@ public :
   std::vector<double> GetCenter();
   std::vector<double> GetNormal();
 
+       void SetOrigin( std::vector<double> origin);
+
   void                   Process();
   void                   UpdatePlane();
   virtual void           Execute();
@@ -98,12 +100,13 @@ protected:
 //Methods and attributes only visible by this class
 //---------------------------------------------
 private:
-       bool            _firsttime;
-       bool            _active;
-       vtkImageData    *_image;
-       vtkRenderer     *_renderer;
-       int             _resolution;
-       int             _representation;
+       bool                            _firsttime;
+       bool                            _active;
+       vtkImageData*           _image;
+       vtkRenderer     *               _renderer;
+       int                             _resolution;
+       int                             _representation;
+       std::vector<double> _origin;
 
        vtkPlaneWidget *_vPlaneWidget;
         vtkPlaneSource *_vPlaneSource;