]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GBlackBoxController.cxx
The creation of a panel which enables the user to set in a basic way the values of...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / GBlackBoxController.cxx
index b8d884e12b7e8b3664e32ba3780f03594ff667d9..64092751ea809949e320afba7f9b0528253ba2b0 100644 (file)
@@ -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;
        }