]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GPortController.cxx
Updated Version with the moving of the objects updated and the background doesn't...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / GPortController.cxx
index e2203ce8fd09136b278347d8de868a9f7244496b..e7d1ce7c1c218db4d8dcc18d8e7d3cae969d18d1 100644 (file)
@@ -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;
        }