X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsVtkGUIEditorGraphic%2FGObjectController.h;h=519248c57b26288721802c8288fb1aed6757a4d1;hb=6bb706f241008994b08baa2e44fe414f2277c5ab;hp=664ad9afe6666c37302622d48c64c854072a78f3;hpb=50851761f4216d932217db8e8fe56dd5aac6b0fb;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.h b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.h index 664ad9a..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__ @@ -69,12 +70,20 @@ namespace bbtk //Public methods 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: @@ -87,16 +96,20 @@ namespace bbtk protected: //Protected Attributes + GObjectModel* _model; vtkGObjectView* _view; - int _id; + bool _isLeftClickDown; //Protected Methods + + // Methods from InteractorStyleMaracas virtual bool OnMouseMove(); virtual bool OnLeftButtonDown(); virtual bool OnLeftButtonUp(); virtual bool OnLeftDClick(); + virtual bool OnMiddleButtonDown(); virtual void moveObject(int X,int Y);