X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=lib%2FEditorGraphicBBS%2FbbsVtkGUIEditorGraphic%2FGObjectController.h;h=519248c57b26288721802c8288fb1aed6757a4d1;hb=6bb706f241008994b08baa2e44fe414f2277c5ab;hp=9c5403b4c4e979a75d3ad59049ed46b62f45b87f;hpb=522d684c97b10743148e2fbf2371cd02ff1fa42e;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.h b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.h index 9c5403b..519248c 100644 --- a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.h +++ b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.h @@ -35,10 +35,11 @@ Version: $Revision$ * \brief Class bbtk::GObjectController : */ -/** -* \class bbtk::GObjectController -* \brief -*/ +/**** +* Design and Developpement of BBTK GEditor +* Ricardo A Corredor J +* RaC - 2010 +****/ #ifndef __GObjectController_h__ #define __GObjectController_h__ @@ -70,11 +71,24 @@ namespace bbtk void setModelAndView(GObjectModel* model, vtkGObjectView* view); + // Same type of the saved in the model of the graphical objects + int getGObjectType(); + + GObjectModel* getModel(); + vtkGObjectView* getView(); + + std::string getStatusText(); + + // Same ObjectID from the model + int getId(); + void setId(int id); + + virtual void removeFromScene(); + private: //Attributes - GObjectModel* _model; - vtkGObjectView* _view; + //Private Methods @@ -83,16 +97,21 @@ namespace bbtk //Protected Attributes + GObjectModel* _model; + vtkGObjectView* _view; + + bool _isLeftClickDown; //Protected Methods + + // Methods from InteractorStyleMaracas virtual bool OnMouseMove(); virtual bool OnLeftButtonDown(); virtual bool OnLeftButtonUp(); virtual bool OnLeftDClick(); virtual bool OnMiddleButtonDown(); - virtual bool OnMiddleButtonUp(); - virtual bool OnRightButtonDown(); - virtual bool OnRightButtonUp(); + + virtual void moveObject(int X,int Y); };