* \brief Class bbtk::GObjectController :
*/
-/**
-* \class bbtk::GObjectController
-* \brief
-*/
+/****
+* Design and Developpement of BBTK GEditor
+* Ricardo A Corredor J <ra.corredor67@uniandes.edu.co>
+* RaC - 2010
+****/
#ifndef __GObjectController_h__
#define __GObjectController_h__
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
//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);
};