]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.cxx
Implemented deleting of boxes from the scene....
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / GObjectController.cxx
index 3ba353c6b689e72607f8ded1ef13d5c424fa9826..645997b25ed8c7d07df31afb2a71a25d523e5b96 100644 (file)
@@ -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