X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaVtk%2FcreaVtkPlaneWidget.h;h=043132e302edc7b5436a7a654c4e2cff69344a61;hb=fbbb28f5a7bfb5aa48b76977df6238774c4512cd;hp=8adb38e27a88c6e05c9812190e8f564aaaa76b3b;hpb=41a74698bb0203749248628baa1503144e1f12f7;p=creaVtk.git diff --git a/lib/creaVtk/creaVtkPlaneWidget.h b/lib/creaVtk/creaVtkPlaneWidget.h index 8adb38e..043132e 100644 --- a/lib/creaVtk/creaVtkPlaneWidget.h +++ b/lib/creaVtk/creaVtkPlaneWidget.h @@ -78,6 +78,12 @@ public : vtkPlaneSource* GetPlaneSource(); void SetResolution(int resolution); int GetResolution(); + void SetRepresentation(int represtation); + int GetRepresentation(); + std::vector GetCenter(); + std::vector GetNormal(); + + void SetOrigin( std::vector 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 _origin; vtkPlaneWidget *_vPlaneWidget; vtkPlaneSource *_vPlaneSource;