X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsVtkGUIEditorGraphic%2FvtkGObjectView.h;h=5c42d0e7e791a7c9491538f2fbb7a1c3829a0b3b;hb=66d85963bdb3dea88f7d8e8931855d092629b37c;hp=e15232f4bf16368250bd8bfc4af2361eef00a51f;hpb=5df5effdcd9f09c81c68fd63b1f0359593a823bd;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.h b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.h index e15232f..5c42d0e 100644 --- a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.h +++ b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.h @@ -50,6 +50,7 @@ Version: $Revision$ //Includes creaMaracasVisu #include +#include //Includes vtk #include @@ -82,8 +83,14 @@ namespace bbtk virtual bool isPointInside(int X,int Y); virtual void moveObject(int X, int Y); - virtual void update(int command); - void isStartDragging(bool param); + virtual void update(int idController,int command); + void setStartDragging(bool param); + + void setState(int state); + int getState(); + void setRefreshWaiting(); + + virtual void removeFromScene(); private: @@ -100,11 +107,18 @@ namespace bbtk //Protected Attributes wxVtkBaseView *_baseView; GObjectModel *_model; - vtkActor *_objectActor; + vtkActor *_borderObjectActor; + vtkActor *_fillObjectActor; + vtkPolyDataMapper* _fillPolyMapper; + vtkPolyDataMapper* _borderPolyMapper; + vtkPoints *_pts; + int _state; //Protected Methods virtual void createVtkObjects(); virtual void addVtkActors(); + virtual void removeVtkActors(); + virtual void updateColors(); };