public void addTrItem(TrackSegment tr) { if (tr != null) { trItems.Add(tr); } }
public void DefineAsInterface(TrackSegment segment) { typeWidget = (int)TypeWidget.STATION_INTERFACE; if (stationConnector == null) { stationConnector = new StationConnector(segment); } stationConnector.Init(segment); setLineSnap(); setEditable(); }
public StationConnector(TrackSegment segment) { File.AppendAllText(@"F:\temp\AE.txt", "StationConnector\n"); parentSegment = segment; allowedDirections = new List <string>(); allowedDirections.Add(" "); allowedDirections.Add("In"); allowedDirections.Add("Out"); allowedDirections.Add("Both"); dirConnector = AllowedDir.NONE; configured = false; }
public void AddSegment(TrackSegment line) { PointF lineA = line.A.ConvertToPointF(); PointF lineB = line.B.ConvertToPointF(); if (lineA == lineB) { return; } foreach (var segment in segments) { PointF segmentA = segment.A.ConvertToPointF(); PointF segmentB = segment.B.ConvertToPointF(); if (lineA == segmentA && lineB == segmentB) { return; } if (lineA == segmentB && lineB == segmentA) { return; } } segments.Add(line); }
public void Init(TrackSegment info) { segment = info; idxMaster = info.SectionIdxA; idxSecond = info.SectionIdxB; }
public override void Update(MSTSCoord coord, TrackSegment segment) { base.configCoord(coord); }
public virtual void Update(MSTSCoord coord, TrackSegment segment) { }