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::MNavigatorObserver Class Reference

#include <cartotype_navigation.h>

Inheritance diagram for CartoType::MNavigatorObserver:
CartoType::CFramework

Public Member Functions

virtual void OnRoute (const CRoute *)
 
virtual void OnTurn (const TNavigatorTurn &, const TNavigatorTurn *, const TNavigatorTurn *)
 
virtual void OnState (TNavigationState)
 

Detailed Description

Create an object of a class derived from MNavigatorObserver to handle navigation events like turn instructions.

Member Function Documentation

◆ OnRoute()

virtual void CartoType::MNavigatorObserver::OnRoute ( const CRoute )
inlinevirtual

This message updates the current route.

◆ OnState()

virtual void CartoType::MNavigatorObserver::OnState ( TNavigationState  )
inlinevirtual

This message updates the state.

◆ OnTurn()

virtual void CartoType::MNavigatorObserver::OnTurn ( const TNavigatorTurn ,
const TNavigatorTurn ,
const TNavigatorTurn  
)
inlinevirtual

This message supplies up to three turns.

aFirstTurn is the first significant turn after the current position, ignoring 'ahead' and 'continue' turns. If its type is TTurnType::None there are no remaining significant turns. aFirstTurn.iDistance is the distance from the current position to the first turn or the arrival point.

aSecondTurn, if non-null, indicates that there is a significant turn 100 metres or less after aFirstTurn. aSecondTurn->iDistance is the distance from the first turn to the second turn.

aContinuationTurn, if non-null, signals that there is an 'ahead' or 'continue' turn before aFirstTurn, so that the navigation system can show that no turn is required at the next junction or adjoining minor road. aContinuationTurn->iDistance is the distance from the current position to the continuation turn.


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