Receives location provider events and when position tracking is enabled, will animate the camera to that location.
More...
Receives location provider events and when position tracking is enabled, will animate the camera to that location.
Must be registered with VgMyLocationManager before it will receive location notification.
VgMyPositionTracker::VgMyPositionTracker |
( |
VgApplication::VgIApplication * |
pVgApplication, |
|
|
VgMyLayerAndCameraHandler * |
pLayerAndCameraHandler |
|
) |
| |
Constructor.
- Parameters
-
pVgApplication | VgIApplication to use. Can't be NULL |
pLayerAndCameraHandler | The interface which allows this class to manipulate the camera. |
VgMyPositionTracker::~VgMyPositionTracker |
( |
| ) |
|
Add a listener to this position tracker.
- Parameters
-
pPositionTrackerListener | The position tracker listener to add. Currently, only one listener supported. If there is already a position tracking listener, this will override an existing one. |
void VgMyPositionTracker::disable |
( |
| ) |
|
Disable the Position Tracker.
void VgMyPositionTracker::enable |
( |
| ) |
|
Enable the Position Tracker.
bool VgMyPositionTracker::isEnabled |
( |
| ) |
|
- Returns
- The current enabled/disabled state of the position tracker.
void VgMyPositionTracker::notifyAccuracyDidChange |
( |
const std::string & |
pProvider, |
|
|
double |
pAccuracy |
|
) |
| |
|
virtual |
Called when the accuracy has changed.
- Parameters
-
pProvider | The location provider responsible for sending the notification. |
pAccuracy | The new accuracy |
Implements VgMyLocationListener.
void VgMyPositionTracker::notifyContextDidChange |
( |
const std::string & |
pProvider, |
|
|
int |
pContext |
|
) |
| |
|
virtual |
Called when the context has changed.
- Parameters
-
pProvider | The location provider responsible for sending the notification. |
pContext | The new context |
Implements VgMyLocationListener.
void VgMyPositionTracker::notifyFloorDidChange |
( |
const std::string & |
pProvider, |
|
|
const std::string & |
pFloor |
|
) |
| |
|
virtual |
Called when the floor has changed.
- Parameters
-
pProvider | The location provider responsible for sending the notification. |
pFloor | The new floor |
Implements VgMyLocationListener.
void VgMyPositionTracker::notifyHeadingDidChange |
( |
const std::string & |
pProvider, |
|
|
double |
pHeading |
|
) |
| |
|
virtual |
Called when the heading has changed.
Heading is the horizontal direction of travel of this device, and is not related to the device orientation.
- Parameters
-
pProvider | The location provider responsible for sending the notification. |
pHeading | The new heading. The valid range for the heading is [0.0, 360.0]. Where 0.0 is North, and increasing values starts towards the East. |
Implements VgMyLocationListener.
void VgMyPositionTracker::notifyLocationProviderDisabled |
( |
const std::string & |
pProvider | ) |
|
|
virtual |
Called when the provider is disabled.
- Parameters
-
pProvider | The location provider responsible for sending the notification. |
Implements VgMyLocationListener.
void VgMyPositionTracker::notifyLocationProviderEnabled |
( |
const std::string & |
pProvider | ) |
|
|
virtual |
Called when the provider is enabled.
- Parameters
-
pProvider | The location provider responsible for sending the notification. |
Implements VgMyLocationListener.
void VgMyPositionTracker::notifyPositionDidChange |
( |
const std::string & |
pProvider, |
|
|
const VgEngine::VgPosition & |
pPosition |
|
) |
| |
|
virtual |
Called when the location has changed.
- Parameters
-
pProvider | The location provider responsible for sending the notification |
pPosition | The new position |
Implements VgMyLocationListener.
void VgMyPositionTracker::notifyStatusDidChange |
( |
const std::string & |
pProvider, |
|
|
int |
pStatus |
|
) |
| |
|
virtual |
Called when the status has changed.
- Parameters
-
pProvider | The location provider responsible for sending the notification. |
pStatus | The new status. See for available values. |
Implements VgMyLocationListener.
Remove a listener to this position tracker.
- Parameters
-
pPositionTrackerListener | The position tracker listener to remove. |
std::string VgMyPositionTracker::mCurrentLayer |
|
protected |
VgEngine::VgPosition VgMyPositionTracker::mCurrentPosition |
|
protected |
bool VgMyPositionTracker::mIsEnabled |
|
protected |
VgApplication::VgIApplication* VgMyPositionTracker::mVgApplication |
|
protected |
The documentation for this class was generated from the following file: