X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaVtk%2FcreaVtkPlaneWidget.h;h=043132e302edc7b5436a7a654c4e2cff69344a61;hb=970a183246a4df7f29e583846745086c5b9f7090;hp=2e87e48d9c6c82a6fcd6d3b0010175ff0997b199;hpb=d4f6c5cb7ede3153395f46a4dbfd9e741672b3f4;p=creaVtk.git diff --git a/lib/creaVtk/creaVtkPlaneWidget.h b/lib/creaVtk/creaVtkPlaneWidget.h index 2e87e48..043132e 100644 --- a/lib/creaVtk/creaVtkPlaneWidget.h +++ b/lib/creaVtk/creaVtkPlaneWidget.h @@ -83,6 +83,8 @@ public : std::vector GetCenter(); std::vector GetNormal(); + void SetOrigin( std::vector 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 _origin; vtkPlaneWidget *_vPlaneWidget; vtkPlaneSource *_vPlaneSource;