Exemplo n.º 1
0
 public branch AddBranch()
 {
   branch b = new branch("branch");
   _pfsHandle.AddSection(b._pfsHandle);
   this.branchs.Add(b);
   return b;
 }
Exemplo n.º 2
0
        public branch AddBranch()
        {
            branch b = new branch("branch");

            _pfsHandle.AddSection(b._pfsHandle);
            this.branchs.Add(b);
            return(b);
        }
Exemplo n.º 3
0
    internal M11Branch(branch BranchFromPFS, SortedDictionary<int, point> Points)
    {
      _pfsdata = BranchFromPFS;

      //Loop the POINTS
      for (int i=0; i<_pfsdata.points.NumberOfParameters;i++)
      {
        M11Point mp =new M11Point(Points[_pfsdata.points.GetValue(i)]);
        _points.Add(mp);
      }
      
      //Sort by chainage
      _points.Sort(new Comparison<M11Point>((var1,var2) => var1.Chainage.CompareTo(var2.Chainage)));

      //Add to polyline
      Line = new XYPolyline();
      foreach (var mp in _points)
        Line.Points.Add(mp);


      ID = new BranchID { Branchname = Name, StartChainage = ChainageStart };
      CrossSections = new ObservableCollection<CrossSection>();
    }