X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsVtkGUIEditorGraphic%2FGBlackBoxController.cxx;h=64092751ea809949e320afba7f9b0528253ba2b0;hb=be7230c59a3a7d7aa5bfee591b35d31e5e7a93b3;hp=b8d884e12b7e8b3664e32ba3780f03594ff667d9;hpb=062ee1e352a911991a120c5bf95ba836a6b0871b;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GBlackBoxController.cxx b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GBlackBoxController.cxx index b8d884e..6409275 100644 --- a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GBlackBoxController.cxx +++ b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GBlackBoxController.cxx @@ -134,7 +134,18 @@ namespace bbtk bool GBlackBoxController::OnLeftDClick() { - + int X,Y; + wxVTKRenderWindowInteractor *wxVTKiren; + wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk3DBaseView()->GetWxVTKRenderWindowInteractor(); + wxVTKiren->GetEventPosition(X,Y); + + int state = _view->getState(); + + //Evaluate new state + if(_view->isPointInside(X,Y)) + { + _model->notifyObservers(getId(),EDIT_BLACKBOX); + } return true; }