Esempio n. 1
0
    public void EdgeObjectQuickAdd(string tName)
    {
        EdgeObjectMaker EOM = AddEdgeObject();

        EOM.LoadFromLibrary(tName, true);
        EOM.SetDefaultTimes(bIsEndPoint, tTime, NextTime, idOnSpline, GSDSpline.distance);
        EOM.tNode = this;
        EOM.Setup();
    }
Esempio n. 2
0
    public EdgeObjectMaker AddEdgeObject()
    {
        EdgeObjectMaker EOM = new EdgeObjectMaker();

        EOM.tNode = this;
        EOM.SetDefaultTimes(bIsEndPoint, tTime, NextTime, idOnSpline, GSDSpline.distance);
        EOM.StartPos = GSDSpline.GetSplineValue(EOM.StartTime);
        EOM.EndPos   = GSDSpline.GetSplineValue(EOM.EndTime);
        EdgeObjects.Add(EOM);
        return(EOM);
    }
Esempio n. 3
0
    public void EdgeObjectLoadFromLibrary(int i, string tName)
    {
        if (EdgeObjects == null)
        {
            EdgeObjects = new List <EdgeObjectMaker>();
        }
        int eCount = EdgeObjects.Count;

        if (i > -1 && i < eCount)
        {
            EdgeObjectMaker EOM = EdgeObjects[i];
            EOM.LoadFromLibrary(tName);
            EOM.SetDefaultTimes(bIsEndPoint, tTime, NextTime, idOnSpline, GSDSpline.distance);
            EOM.tNode = this;
            EOM.Setup();
        }
    }