コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
 public LoadedGpxFileWaypointInfo(LoadedGpxFile gpxFile, GpxWaypoint rawWaypoint)
 {
     this.File            = gpxFile;
     this.RawWaypointData = rawWaypoint;
 }
コード例 #4
0
 public GpxFileRepositoryNodeTour(LoadedGpxFile parentFile, LoadedGpxFileTourInfo tour)
 {
     _parentFile = parentFile;
     _tour       = tour;
 }