VisioMove-Sample
2.1.5
|
VgMyNavigationLocationProvider provides the position that is the closest to the navigation path, given a physical location. More...
Public Member Functions | |
VgMyNavigationLocationProvider (VgEngine::VgRefPtr< VgNavigationModule::VgINavigation > pNavigation) | |
~VgMyNavigationLocationProvider () | |
void | notifyPositionUpdated (VgEngine::VgConstRefPtr< VgNavigationModule::VgINavigation > const &pNavigation, const VgEngine::VgPosition &, double) |
void | notifyNewInstruction (VgEngine::VgConstRefPtr< VgNavigationModule::VgINavigation > const &pNavigation, unsigned int) |
std::string | getName () |
Returns the name of the provider. More... | |
void | enable () |
Requests provider starts sending location notifications. More... | |
void | disable () |
Requests provider stops sending location notifications. More... | |
bool | isEnabled () |
Returns true if the provider is enabled. More... | |
bool | supportsPosition () |
Returns true if the provider supports position updates. More... | |
bool | supportsAccuracy () |
Returns true if the provider supports accuracy updates. More... | |
bool | supportsContext () |
Returns true if the provider supports context updates. More... | |
bool | supportsFloor () |
Returns true if the provider supports floor updates. More... | |
bool | supportsHeading () |
Returns true if the provider supports heading updates. More... | |
![]() | |
virtual | ~VgMyLocationProvider () |
Additional Inherited Members | |
![]() | |
enum | { AVAILABLE = 0, OUT_OF_SERVICE, TEMPORARILY_UNAVAILABLE, LOCATION_SERVICES_REQUIRE_AUTHORISATION } |
VgMyNavigationLocationProvider provides the position that is the closest to the navigation path, given a physical location.
The physical location are received via the VgINavigation object, because it registers itself as a listener (VgINavigationListener).
Note: VgMyNavigationLocationProvider inherits from VgNavigationModule::VgINavigationListener which is a VgRefPtr object, so any references to this class must also be via VgRefPtr.
Position updates are sent in the metric spatial reference system.
VgMyNavigationLocationProvider::VgMyNavigationLocationProvider | ( | VgEngine::VgRefPtr< VgNavigationModule::VgINavigation > | pNavigation | ) |
VgMyNavigationLocationProvider::~VgMyNavigationLocationProvider | ( | ) |
|
virtual |
Requests provider stops sending location notifications.
If provider is registered with the location manager, a notifyLocationProviderDisabled() will be broadcast to associated listeners.
Implements VgMyLocationProvider.
|
virtual |
Requests provider starts sending location notifications.
If provider is registered with the location manager, a notifyLocationProviderEnabled() will be broadcast to associated listeners
Implements VgMyLocationProvider.
|
virtual |
Returns the name of the provider.
Implements VgMyLocationProvider.
|
virtual |
Returns true if the provider is enabled.
Implements VgMyLocationProvider.
void VgMyNavigationLocationProvider::notifyNewInstruction | ( | VgEngine::VgConstRefPtr< VgNavigationModule::VgINavigation > const & | pNavigation, |
unsigned | int | ||
) |
void VgMyNavigationLocationProvider::notifyPositionUpdated | ( | VgEngine::VgConstRefPtr< VgNavigationModule::VgINavigation > const & | pNavigation, |
const VgEngine::VgPosition & | , | ||
double | |||
) |
|
virtual |
Returns true if the provider supports accuracy updates.
Implements VgMyLocationProvider.
|
virtual |
Returns true if the provider supports context updates.
Implements VgMyLocationProvider.
|
virtual |
Returns true if the provider supports floor updates.
Implements VgMyLocationProvider.
|
virtual |
Returns true if the provider supports heading updates.
Implements VgMyLocationProvider.
|
virtual |
Returns true if the provider supports position updates.
Implements VgMyLocationProvider.