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