X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsVtkGUIEditorGraphic%2FGPortController.cxx;h=e7d1ce7c1c218db4d8dcc18d8e7d3cae969d18d1;hb=50851761f4216d932217db8e8fe56dd5aac6b0fb;hp=e2203ce8fd09136b278347d8de868a9f7244496b;hpb=eaf825847b9ac4bd762deafa59a7df1c2ceba433;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GPortController.cxx b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GPortController.cxx index e2203ce..e7d1ce7 100644 --- a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GPortController.cxx +++ b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GPortController.cxx @@ -55,21 +55,12 @@ namespace bbtk bool GPortController::OnLeftButtonDown() { - if ( _vtkInteractorStyleBaseView!=NULL ) - { - int X,Y; - wxVTKRenderWindowInteractor *wxVTKiren; - wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk3DBaseView()->GetWxVTKRenderWindowInteractor(); - wxVTKiren->GetEventPosition(X,Y); - - int state = _view->getState(); + int state = _view->getState(); - //Evaluate new state - if(state == HIGHLIGHTED) - { - _isLeftClickDown=true; - } - + //Evaluate new state + if(state == HIGHLIGHTED) + { + _isLeftClickDown=true; } return true; }