]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GPortController.cxx
Implemented deleting of boxes from the scene....
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / GPortController.cxx
index e2203ce8fd09136b278347d8de868a9f7244496b..c15a276efc67696d6fc55d0fed343ae5f1a939a9 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;
        }
@@ -86,11 +77,11 @@ namespace bbtk
                                //Evaluate new state
                                if(portType==GOUTPUTPORT)
                                {
-                                       _model->notifyObservers(_id,INIT_CREATION_CONTOUR);
+                                       _model->notifyObservers(getId(),INIT_CREATION_CONTOUR);
                                }
                                else if (portType==GINPUTPORT)
                                {
-                                       _model->notifyObservers(_id,FIN_CREATION_CONTOUR);
+                                       _model->notifyObservers(getId(),FIN_CREATION_CONTOUR);
                                }
                        }
                        else