X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsVtkGUIEditorGraphic%2FGConnectorController.cxx;h=c9d8f74885f8781a412685a36860370ef1c46356;hb=5cf9c7b92a97ee411e6a441beca8a06d2bffc8b3;hp=3f97b7c2a4433fee6af03b7b5833c1018e670664;hpb=eaf825847b9ac4bd762deafa59a7df1c2ceba433;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GConnectorController.cxx b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GConnectorController.cxx index 3f97b7c..c9d8f74 100644 --- a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GConnectorController.cxx +++ b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GConnectorController.cxx @@ -104,6 +104,11 @@ namespace bbtk wxVTKiren->GetEventPosition(X, Y); _controller->MouseReleaseLeft(X,Y); + if(_controller->GetManualViewBaseContour()->GetSelected()==true) + { + _view->setState(SELECTED); + _model->notifyObservers(getId(),ADD_TO_SELECTED); + } } return true; @@ -140,7 +145,7 @@ namespace bbtk wxVTKiren->GetEventPosition(X, Y); _controller->MouseClickRight(X,Y); - + } return true; } @@ -188,6 +193,24 @@ namespace bbtk } //========================================================================= + + void GConnectorController::removeFromScene() + { + GConnectorModel *conMod = (GConnectorModel*)_model; + conMod->disconnectConnection(); + + _controller->SetEditable(false); + _controller->DeleteContour(); + } + + //========================================================================= + + void GConnectorController::endContourCreation() + { + _controller->endContourCreation(); + } + + //========================================================================= } // EO namespace bbtk