]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GConnectorModel.cxx
Documentation of the wxLibrary
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GConnectorModel.cxx
index 84cc58d2e669b06db574dbffd9bd9c59306fe8cc..ebdf3715aeb5d46cc7854e77ed81c671fb2ded28 100644 (file)
@@ -82,6 +82,7 @@ namespace bbtk
 
                setFinalPoint(xCenter,yIport,zCenter);
 
+               // Sets the last point of the contour model in the position of the end input port
                manualPoint* point = _model->GetManualPoint(_model->GetSizeLstPoints()-1);
                point->SetPoint(xCenter,yIport,zCenter);
        }
@@ -124,6 +125,7 @@ namespace bbtk
                double xport,yport,zport;
                _startPort->getFinalPoint(xport,yport,zport);
 
+               // Refresh the position of the contourModel first point with the data of the connector model
                manualPoint* point = _model->GetManualPoint(0);
                point->SetPoint(xCenter,yport,zCenter);
 
@@ -131,6 +133,7 @@ namespace bbtk
                _endPort->getCenter(xCenter,yCenter,zCenter);
                _endPort->getInicPoint(xport,yport,zport);
 
+               // Refresh the position of the contourModel last point with the data of the connector model
                point = _model->GetManualPoint(_model->GetSizeLstPoints()-1);
                point->SetPoint(xCenter,yport,zCenter);
        }
@@ -152,13 +155,6 @@ namespace bbtk
 
        //=========================================================================
 
-       bool GConnectorModel::isPointInside(double x,double y, double z)//virtual
-       {
-               return false;
-       }
-
-       //=========================================================================
-
        void GConnectorModel::save(std::string &content)
        {
                content+="CONNECTION\n";