X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FEditorGraphicBBS%2FbbsVtkGUIEditorGraphic%2FGConnectorController.cxx;h=c9d8f74885f8781a412685a36860370ef1c46356;hb=66d85963bdb3dea88f7d8e8931855d092629b37c;hp=30468e790f1772abddcc34c8b95e33cf04b5e560;hpb=638f2cd85948ec10d3b30e1f68805ee0153c8813;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GConnectorController.cxx b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GConnectorController.cxx index 30468e7..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; @@ -194,12 +199,19 @@ namespace bbtk GConnectorModel *conMod = (GConnectorModel*)_model; conMod->disconnectConnection(); - _controller->SetEditable(true); + _controller->SetEditable(false); _controller->DeleteContour(); } //========================================================================= + void GConnectorController::endContourCreation() + { + _controller->endContourCreation(); + } + + //========================================================================= + } // EO namespace bbtk // EOF