]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GConnectorModel.cxx
More actions added. Delete is now well done and the connection has to be created...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GConnectorModel.cxx
index 95f1b15e8d0bc96e3cef9cce381f4e8ee66f9f48..4b722db4889a55ad029ef170183d0e97deced97a 100644 (file)
@@ -135,6 +135,23 @@ namespace bbtk
                point->SetPoint(xCenter,yport,zCenter);
        }
 
+       //=========================================================================
+
+       void GConnectorModel::disconnectConnection()
+       {
+               if(_startPort!=NULL)
+               {
+                       _startPort->setConnected(false);                        
+               }
+
+               if(_endPort!=NULL)
+               {
+                       _endPort->setConnected(false);
+               }
+       }
+
+       //=========================================================================
+
 }  // EO namespace bbtk
 
 // EOF