]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GConnectorModel.cxx
Updated Version with the moving of the objects updated and the background doesn't...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GConnectorModel.cxx
index 58f601bd1baabaff5b15955351e85b73eeb876b8..f4ba5f4e1ceb9f46fb5a036002b6d3da3ecb5041 100644 (file)
@@ -82,7 +82,6 @@ namespace bbtk
 
                manualPoint* point = _model->GetManualPoint(_model->GetSizeLstPoints()-1);
                point->SetPoint(xCenter,yIport,zCenter);
-               cout<<"RaC GConnectorModel::setEndPort size:"<<_model->GetSizeLstPoints()<<endl;
        }
 
        //=========================================================================
@@ -115,6 +114,25 @@ namespace bbtk
 
        //=========================================================================
 
+       void GConnectorModel::updateStartEndPoints()
+       {
+               //Start Point
+               double xCenter,yCenter,zCenter;         
+               _startPort->getCenter(xCenter,yCenter,zCenter);
+               double xIport,yIport,zIport;
+               _startPort->getInicPoint(xIport,yIport,zIport);
+
+               manualPoint* point = _model->GetManualPoint(0);
+               point->SetPoint(xCenter,yIport,zCenter);
+
+               //End Point     
+               _endPort->getCenter(xCenter,yCenter,zCenter);
+               _endPort->getInicPoint(xIport,yIport,zIport);
+
+               point = _model->GetManualPoint(_model->GetSizeLstPoints()-1);
+               point->SetPoint(xCenter,yIport,zCenter);
+       }
+
 }  // EO namespace bbtk
 
 // EOF