public LoadedGpxFileTourInfo(LoadedGpxFile file, GpxRoute rawRouteData) { this.File = file; this.RawRouteData = rawRouteData; this.RawTrackOrRoute = rawRouteData; rawRouteData.Extensions ??= new GpxExtensions(); this.RawTourExtensionData = rawRouteData.Extensions.GetOrCreateExtension <RouteExtension>(); this.Segments = new List <LoadedGpxFileTourSegmentInfo>(1); this.Segments.Add(new LoadedGpxFileTourSegmentInfo(rawRouteData)); this.Waypoints = file.Waypoints; this.CalculateTourMetrics(); }
public LoadedGpxFileTourInfo(LoadedGpxFile file, GpxTrack rawTrackData) { this.File = file; this.RawTrackData = rawTrackData; this.RawTrackOrRoute = rawTrackData; rawTrackData.Extensions ??= new GpxExtensions(); this.RawTourExtensionData = rawTrackData.Extensions.GetOrCreateExtension <TrackExtension>(); this.Segments = new List <LoadedGpxFileTourSegmentInfo>(rawTrackData.Segments.Count); foreach (var actSegment in rawTrackData.Segments) { this.Segments.Add(new LoadedGpxFileTourSegmentInfo(actSegment)); } this.Waypoints = file.Waypoints; this.CalculateTourMetrics(); }
public LoadedGpxFileWaypointInfo(LoadedGpxFile gpxFile, GpxWaypoint rawWaypoint) { this.File = gpxFile; this.RawWaypointData = rawWaypoint; }
public GpxFileRepositoryNodeTour(LoadedGpxFile parentFile, LoadedGpxFileTourInfo tour) { _parentFile = parentFile; _tour = tour; }