CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoType::TRouteIterator Class Reference

#include <cartotype_navigation.h>

Public Member Functions

 TRouteIterator (const CRoute &aRoute)
bool Forward (double aDistance)
const TPointPosition () const
double Direction () const

Detailed Description

An iterator allowing a route to be traversed.

Constructor & Destructor Documentation

◆ TRouteIterator()

CartoType::TRouteIterator::TRouteIterator ( const CRoute aRoute)

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

Member Function Documentation

◆ Direction()

double CartoType::TRouteIterator::Direction ( ) const

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

◆ Forward()

bool CartoType::TRouteIterator::Forward ( double  aDistance)

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

◆ Position()

const TPoint & CartoType::TRouteIterator::Position ( ) const

Returns the current position in map coordinates.

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