X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsVtkGUIEditorGraphic%2FvtkGObjectView.h;h=691d2ef3290690c5887ebc58badc5272d261222d;hb=3babfd57a9b4b3cffba34415e928239592e7d4a1;hp=d10991ee60ee5e19a4f1e494f41655adb4090050;hpb=098558ac7780900858114a8ae01fe93847d67043;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.h b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.h index d10991e..691d2ef 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 @@ -65,7 +66,7 @@ Version: $Revision$ namespace bbtk { - class vtkGObjectView //: public Observer + class vtkGObjectView : public Observer { public: @@ -79,13 +80,23 @@ namespace bbtk void setBaseView(wxVtkBaseView* baseView); void initVtkObjects(); - bool isPointInside(int X,int Y); + virtual bool isPointInside(int X,int Y); + virtual void moveObject(int X, int Y); - virtual void update(); + virtual void update(int idController,int command); + void setStartDragging(bool param); + + void setState(int state); + int getState(); + void setRefreshWaiting(); private: //Private Attributes + bool _isStartDragging; + double dragDifX; + double dragDifY; + //Private Methods @@ -94,11 +105,17 @@ 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 updateColors(); };