coastline 0.0.4
Loading...
Searching...
No Matches
TrackSection Struct Reference

A section of the route. More...

#include <track.h>

Collaboration diagram for TrackSection:

Public Attributes

struct TrackSection * child
struct TrackSection * next
struct TrackSection * parent
struct TrackSection * reverseNext
u8 gridMinX
u8 gridMinY
u8 gridMaxX
u8 gridMaxY
u16 pointCount
u16 flags
TrackPoint previousPoint
TrackPoint points []

Detailed Description

A section of the route.

Its fields join this structure as they are reconstructed.

Member Data Documentation

◆ child

struct TrackSection* TrackSection::child

The first section that branches from this one, or NULL.

◆ next

struct TrackSection* TrackSection::next

The next branch of the same parent, or NULL.

◆ parent

struct TrackSection* TrackSection::parent

The first preceding section, linked through reverseNext.

◆ reverseNext

struct TrackSection* TrackSection::reverseNext

The next section in a list of preceding sections.

◆ gridMinX

u8 TrackSection::gridMinX

The first column of the 32-unit grid of the track the section covers.

◆ gridMinY

u8 TrackSection::gridMinY

The first row of the grid the section covers.

◆ gridMaxX

u8 TrackSection::gridMaxX

The last column of the grid the section covers, inclusive.

◆ gridMaxY

u8 TrackSection::gridMaxY

The last row of the grid the section covers, inclusive.

◆ pointCount

u16 TrackSection::pointCount

The number of points, without the point at the end of the last.

◆ flags

u16 TrackSection::flags

The TRACK_SECTION_ flags.

◆ previousPoint

TrackPoint TrackSection::previousPoint

The route point preceding the first point of the section.

◆ points

TrackPoint TrackSection::points[]

The points, and the point at the end of the last.


The documentation for this struct was generated from the following file: