CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoTypeCore::RouteIterator Class Reference

#include <cartotype_navigation.h>

Public Member Functions

 RouteIterator (const Route &aRoute)
 
bool Forward (double aDistance)
 
const PointPosition () const
 
double Direction () const
 

Detailed Description

An iterator allowing a route to be traversed.

Constructor & Destructor Documentation

◆ RouteIterator()

CartoTypeCore::RouteIterator::RouteIterator ( const Route aRoute)

Creates a route iterator referring to a certain route and sets it to the start of the route.

Member Function Documentation

◆ Direction()

double CartoTypeCore::RouteIterator::Direction ( ) const
inline

Returns the current direction in radians, clockwise from straight up, as an angle on the map, not a geodetic azimuth.

◆ Forward()

bool CartoTypeCore::RouteIterator::Forward ( double  aDistance)
inline

Moves forward by aDistance. Returns false if the end of the path is reached, true if not.

◆ Position()

const Point & CartoTypeCore::RouteIterator::Position ( ) const
inline

Returns the current position in map coordinates.


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