VisioDevKit
v2.0
|
VgINavigation represents a Navigation object. More...
Public Member Functions | |
virtual | ~VgINavigation () |
Destructor. More... | |
virtual void | addListener (VgEngine::VgRefPtr< VgINavigationListener >const &pListener)=0 |
Adds a listener to the navgiation object. More... | |
virtual void | removeListener (VgEngine::VgRefPtr< VgINavigationListener >const &pListener)=0 |
Removes a listener from the navigation object. More... | |
virtual VgEngine::VgConstRefPtr < VgNavigationModule::VgINavigationInstruction > | getInstruction (unsigned int pIndex) const =0 |
Gets a navigation instruction. More... | |
virtual const unsigned int | getNumInstructions () const =0 |
Gets the number of navigation instructions. More... | |
virtual void | updateCurrentPosition (const VgEngine::VgPosition &pPosition, double pTime)=0 |
Injects new position. More... | |
virtual const VgEngine::VgPosition & | getCurrentPosition () const =0 |
Gets the last position that was notified. More... | |
virtual unsigned int | getCurrentInstructionIndex () const =0 |
Gets the index of the active instruction. More... | |
virtual const VgEngine::VgPosition & | getClosestPositionOnRoute () const =0 |
Calculates the closest position on the route, given the current position (VgINavigation::getCurrentPosition()). More... | |
virtual double | getDistanceFromRoute () const =0 |
Gets the distance between current position (VgINavigation::getCurrentPosition()) and closest position on route. More... | |
virtual void | setInstructionGeofenceDistance (double pDistanceInMeters)=0 |
Sets the distance in meters of the threshold when to switch instructions. More... | |
virtual double | getInstructionGeofenceDistance () const =0 |
Gets the distance in meters of the threshold when to switch instructions. More... | |
virtual const VgINavigationRequestParameters & | getRequestParameters () const =0 |
![]() | |
VgReferenced () | |
Constructor. More... | |
VgReferenced (const VgReferenced &pThis) | |
Copy constructor. More... | |
virtual | ~VgReferenced () |
Destructor. More... | |
VgReferenced & | operator= (const VgReferenced &pThis) |
Assignment operator. More... | |
void | ref () const |
This method is used to add a reference to this object. More... | |
void | unref () const |
This method is used to remove a reference to this object. More... | |
int | getNbReferences () const |
Retrieves the number of references to this object. More... | |
Protected Member Functions | |
VgINavigation () | |
Constructor. More... | |
Additional Inherited Members | |
![]() | |
int | mNbReferences |
The number of references to this object. More... | |
VgINavigation represents a Navigation object.
|
inlineprotected |
Constructor.
|
inlinevirtual |
Destructor.
|
pure virtual |
Adds a listener to the navgiation object.
pListener | The navigation listener to be added. |
|
pure virtual |
Calculates the closest position on the route, given the current position (VgINavigation::getCurrentPosition()).
|
pure virtual |
Gets the index of the active instruction.
The value will be the same as the last value given by VgINavigationListener::notifyNewInstruction().
|
pure virtual |
Gets the last position that was notified.
This value will be the same as the last value given by VgINavigationListener::notifyPositionUpdated().
|
pure virtual |
Gets the distance between current position (VgINavigation::getCurrentPosition()) and closest position on route.
|
pure virtual |
Gets a navigation instruction.
pIndex | index of instruction |
|
pure virtual |
Gets the distance in meters of the threshold when to switch instructions.
|
pure virtual |
Gets the number of navigation instructions.
|
pure virtual |
|
pure virtual |
Removes a listener from the navigation object.
pListener | The navigation listener to be removed. |
|
pure virtual |
Sets the distance in meters of the threshold when to switch instructions.
this number is a function of the accuracy of the position information. If too large, instructions will switch rapidly, if too small, instructions will not change.
pDistanceInMeters | Radius distance in meters. |
|
pure virtual |
Injects new position.
This will trigger a VgINavigationListener::notifyPositionUpdated() event. This method can be used to connect a location provider service to the navigation object.
pPosition | The new current position. |
pTime | Time of the position capture. If unknown, use 0. |