CartoType C++ API 8.8-7-gb35e4dc71
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 (OutputStream &aOutput) const |
Public Attributes | |
CartoTypeCore::TurnType | TurnType = CartoTypeCore::TurnType::None |
bool | IsContinue = true |
CartoTypeCore::RoundaboutState | RoundaboutState = CartoTypeCore::RoundaboutState::None |
double | TurnAngle = 0 |
double | InDirection = 0 |
double | OutDirection = 0 |
int32_t | ExitNumber = 0 |
int32_t | Choices = 0 |
int32_t | LeftAlternatives = 0 |
int32_t | RightAlternatives = 0 |
bool | IsFork = false |
bool | IsTurnOff = false |
String | JunctionName |
String | JunctionRef |
A turn: a choice of route through a node.
|
inline |
Sets the Turn object to its just-constructed state.
|
inline |
Sets the Turn 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 Turn object's turn angle and turn type from an angle in degrees. Leaves other date members unchanged.
void CartoTypeCore::Turn::WriteAsXml | ( | OutputStream & | aOutput | ) | const |
Writes the Turn object in XML format as a turn element.
int32_t CartoTypeCore::Turn::Choices = 0 |
The number of choices at this turning if known; 0 if not known.
int32_t CartoTypeCore::Turn::ExitNumber = 0 |
The junction to take, counting the current junction as 0, if this junction is part of a roundabout.
double CartoTypeCore::Turn::InDirection = 0 |
The incoming direction in degrees relative to map east, going anticlockwise.
bool CartoTypeCore::Turn::IsContinue = true |
True if this turn is a continuation of the current road and no notification is needed.
bool CartoTypeCore::Turn::IsFork = false |
True if this turn is a fork: that is, there is an alternative within 22.5 degrees of the turn actually taken.
bool CartoTypeCore::Turn::IsTurnOff = false |
True if this choice is a turn off, defined as a turn on to a lower-status road.
String CartoTypeCore::Turn::JunctionName |
The name of the junction.
String CartoTypeCore::Turn::JunctionRef |
The reference code of the junction.
int32_t CartoTypeCore::Turn::LeftAlternatives = 0 |
The number of choices to the left of the turn actually taken; if iChoices is zero, this data is not known.
double CartoTypeCore::Turn::OutDirection = 0 |
The outgoing direction in degrees relative to map east, going anticlockwise.
int32_t CartoTypeCore::Turn::RightAlternatives = 0 |
The number of choices to the right of the turn actually taken; if iChoices is zero, this data is not known.
CartoTypeCore::RoundaboutState CartoTypeCore::Turn::RoundaboutState = CartoTypeCore::RoundaboutState::None |
The roundabout state.
double CartoTypeCore::Turn::TurnAngle = 0 |
The turn angle in degrees: 0 = straight ahead; negative = left, positive = right.
CartoTypeCore::TurnType CartoTypeCore::Turn::TurnType = CartoTypeCore::TurnType::None |
The turn type: ahead, left, right, etc.