예제 #1
0
파일: KdzLink.cs 프로젝트: dot-bm/lacznik
 public KdzLink(int id, int p1Id, int p2Id, MckNodes nodes, byte type, decimal length)
 {
     Id     = id;
     P1     = nodes[p1Id];
     P2     = nodes[p2Id];
     Type   = type;
     Length = length;
 }
예제 #2
0
 public KdzInfraLink(SqlDataReader inprec, MckNodes nodes) : base(inprec.GetIntNumber(0),
                                                                  inprec.GetIntNumber(1), inprec.GetIntNumber(2), nodes, (byte)(inprec.GetIntNumberOrDefault(3) ?? 0),
                                                                  inprec.GetFixNumber(6) / 1000m)
 {
     if (inprec.GetIntNumber(4) > 0)
     {
         var gp = new GeoPolyLine(inprec.GetString(5), Length);
         MidPoints = gp.MidPoints().ToList();
     }
 }
예제 #3
0
 //LX4220, Point1, Point2, LX40T0, LX003, LShape, LShape.STLength()
 public KdzCarLink(SqlDataReader inprec, MckNodes nodes) : base(inprec, nodes)
 {
 }
예제 #4
0
 public KdzCouplingLink(IDataRecord inprec, MckNodes nodes, TSysList tsyses) : base(inprec.GetIntNumber(0),
                                                                                    inprec.GetIntNumber(1), inprec.GetIntNumber(2), nodes, (byte)inprec.GetIntNumber(3),
                                                                                    inprec.GetFixNumber(4) / 1000m)
 {
     TSysSet = new TSysSet(tsyses.Pedestran());
 }
예제 #5
0
 public KdzInfraLink(int id, int p1Id, int p2Id, MckNodes nodes, byte type, decimal length) : base(id, p1Id,
                                                                                                   p2Id, nodes, type, length)
 {
 }