CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_navigation.h>
Public Member Functions | |
void | Clear () |
void | SetTurn (double aInDir, double aOutDir, int32_t aChoices, int32_t aLeftAlternatives, int32_t aRightAlternatives, bool aIsFork, bool aTurnOff) |
void | SetTurn (double aTurnAngle) |
void | WriteAsXml (MOutputStream &aOutput) const |
Public Attributes | |
TTurnType | iTurnType = TTurnType::None |
bool | iContinue = true |
TRoundaboutState | iRoundaboutState = TRoundaboutState::None |
double | iTurnAngle = 0 |
double | iInDirection = 0 |
double | iOutDirection = 0 |
int32_t | iExitNumber = 0 |
int32_t | iChoices = 0 |
int32_t | iLeftAlternatives = 0 |
int32_t | iRightAlternatives = 0 |
bool | iIsFork = false |
bool | iTurnOff = false |
CString | iJunctionName |
CString | iJunctionRef |
A turn: a choice of route through a node.
|
inline |
Sets the TTurn object to its just-constructed state.
|
inline |
Sets the TTurn object using inward and outward direction in degrees (anticlockwise from map east), left and right alternative choices, and fork and turn-off flags.
|
inline |
Sets the TTurn object's turn angle and turn type from an angle in degrees. Leaves other date members unchanged.
void CartoType::TTurn::WriteAsXml | ( | MOutputStream & | aOutput | ) | const |
Writes the TTurn object in XML format as a turn element.
int32_t CartoType::TTurn::iChoices = 0 |
The number of choices at this turning if known; 0 if not known.
bool CartoType::TTurn::iContinue = true |
True if this turn is a continuation of the current road and no notification is needed.
int32_t CartoType::TTurn::iExitNumber = 0 |
The junction to take, counting the current junction as 0, if this junction is part of a roundabout.
double CartoType::TTurn::iInDirection = 0 |
The incoming direction in degrees relative to map east, going anticlockwise.
bool CartoType::TTurn::iIsFork = false |
True if this turn is a fork: that is, there is an alternative within 22.5 degrees of the turn actually taken.
CString CartoType::TTurn::iJunctionName |
The name of the junction.
CString CartoType::TTurn::iJunctionRef |
The reference code of the junction.
int32_t CartoType::TTurn::iLeftAlternatives = 0 |
The number of choices to the left of the turn actually taken; if iChoices is zero, this data is not known.
double CartoType::TTurn::iOutDirection = 0 |
The outgoing direction in degrees relative to map east, going anticlockwise.
int32_t CartoType::TTurn::iRightAlternatives = 0 |
The number of choices to the right of the turn actually taken; if iChoices is zero, this data is not known.
TRoundaboutState CartoType::TTurn::iRoundaboutState = TRoundaboutState::None |
The roundabout state.
double CartoType::TTurn::iTurnAngle = 0 |
The turn angle in degrees: 0 = straight ahead; negative = left, positive = right.
bool CartoType::TTurn::iTurnOff = false |
True if this choice is a turn off, defined as a turn on to a lower-status road.
TTurnType CartoType::TTurn::iTurnType = TTurnType::None |
The turn type: ahead, left, right, etc.