X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsVtkGUIEditorGraphic%2FGObjectController.cxx;h=645997b25ed8c7d07df31afb2a71a25d523e5b96;hb=a6d479881eeb637cd06afa3b2177e430fa05571e;hp=3ba353c6b689e72607f8ded1ef13d5c424fa9826;hpb=8fda22926665e75ccf2d7c8231e854ff3fc7c12c;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.cxx b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.cxx index 3ba353c..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; } @@ -163,14 +162,14 @@ namespace bbtk int GObjectController::getId() { - return _id; + return _model->getObjectId(); } //========================================================================= void GObjectController::setId(int id) { - _id = id; + _model->setObjectId(id); } //========================================================================= @@ -182,6 +181,13 @@ namespace bbtk //========================================================================= + void GObjectController::removeFromScene() + { + _view->removeFromScene(); + } + + //========================================================================= + } // EO namespace bbtk // EOF