]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GConnectorController.cxx
More actions added. Delete is now well done and the connection has to be created...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / GConnectorController.cxx
index 3f97b7c2a4433fee6af03b7b5833c1018e670664..30468e790f1772abddcc34c8b95e33cf04b5e560 100644 (file)
@@ -140,7 +140,7 @@ namespace bbtk
                        wxVTKiren->GetEventPosition(X, Y);
                        
                        _controller->MouseClickRight(X,Y);
-                       
+                                       
                }
                return true;
        }
@@ -188,6 +188,17 @@ namespace bbtk
        }
 
        //=========================================================================
+       
+       void GConnectorController::removeFromScene()
+       {
+               GConnectorModel *conMod = (GConnectorModel*)_model;
+               conMod->disconnectConnection();
+
+               _controller->SetEditable(true);
+               _controller->DeleteContour();
+       }
+
+       //=========================================================================
 
 }  // EO namespace bbtk