X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FEditorGraphicBBS%2FbbsVtkGUIEditorGraphic%2FGObjectController.cxx;h=645997b25ed8c7d07df31afb2a71a25d523e5b96;hb=6bb706f241008994b08baa2e44fe414f2277c5ab;hp=7926e68ca20b4050a064ddd4c2cc3a5c3c02616e;hpb=3babfd57a9b4b3cffba34415e928239592e7d4a1;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.cxx b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.cxx index 7926e68..645997b 100644 --- a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.cxx +++ b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.cxx @@ -86,7 +86,7 @@ namespace bbtk } } - _model->notifyObservers(_id); + _model->notifyObservers(getId()); return true; @@ -103,7 +103,6 @@ namespace bbtk { _isLeftClickDown=true; _view->setState(SELECTED); - //_model->notifyObservers(_id, } return true; } @@ -124,6 +123,13 @@ namespace bbtk return true; } + //========================================================================= + + bool GObjectController::OnMiddleButtonDown()//virtual + { + return true; + } + //========================================================================= void GObjectController::moveObject(int X,int Y) @@ -156,14 +162,14 @@ namespace bbtk int GObjectController::getId() { - return _id; + return _model->getObjectId(); } //========================================================================= void GObjectController::setId(int id) { - _id = id; + _model->setObjectId(id); } //========================================================================= @@ -175,6 +181,13 @@ namespace bbtk //========================================================================= + void GObjectController::removeFromScene() + { + _view->removeFromScene(); + } + + //========================================================================= + } // EO namespace bbtk // EOF