|
VisioMove-Sample
2.1.3
|
Displays an avatar disc that represents the accuracy of the current location on the map. More...
Public Member Functions | |
| VgMyAvatarDiscDisplay (VgApplication::VgIApplication *pVgApplication, VgMyTextureLoader *pTextureLoader) | |
| Constructor. More... | |
| ~VgMyAvatarDiscDisplay () | |
| void | createAvatar () |
| Create the basic avatar. More... | |
| void | notifyPositionDidChange (const std::string &pProvider, const VgEngine::VgPosition &pPosition) |
| Called when the location has changed. More... | |
| void | notifyFloorDidChange (const std::string &pProvider, const std::string &pFloor) |
| Called when the floor has changed. More... | |
| void | notifyAccuracyDidChange (const std::string &pProvider, double pAccuracy) |
| Called when the accuracy has changed. More... | |
| void | notifyContextDidChange (const std::string &pProvider, int pContext) |
| Called when the context has changed. More... | |
| void | notifyHeadingDidChange (const std::string &pProvider, double pHeading) |
| Called when the heading has changed. More... | |
| void | notifyStatusDidChange (const std::string &pProvider, int pStatus) |
| Called when the status has changed. More... | |
| void | notifyLocationProviderEnabled (const std::string &pProvider) |
| Called when the provider is enabled. More... | |
| void | notifyLocationProviderDisabled (const std::string &pProvider) |
| Called when the provider is disabled. More... | |
| void | show () |
| void | hide () |
| bool | isVisible () |
Protected Attributes | |
| VgApplication::VgIApplication * | mVgApplication |
| VgEngine::VgRefPtr < Vg3DModule::VgPoint > | mAvatarPoint |
| VgMyTextureLoader * | mTextureLoader |
| VgEngine::VgPosition | mPosition |
| float | mAccuracy |
| std::string | mCurrentAvatarLayerName |
Static Protected Attributes | |
| static float | kAccuracyMin |
Additional Inherited Members | |
Protected Member Functions inherited from VgMyLocationListener | |
| virtual | ~VgMyLocationListener () |
Displays an avatar disc that represents the accuracy of the current location on the map.
Must be registered with VgMyLocationManager before it will receive location notification.
IMPLEMENTATION TIPS: You can customize its texture and its animation.
| VgMyAvatarDiscDisplay::VgMyAvatarDiscDisplay | ( | VgApplication::VgIApplication * | pVgApplication, |
| VgMyTextureLoader * | pTextureLoader | ||
| ) |
Constructor.
| pVgApplication | VgIApplication to use. Can't be NULL |
| pTextureLoader | VgMyTextureLoader to use. Can't be NULL. |
| VgMyAvatarDiscDisplay::~VgMyAvatarDiscDisplay | ( | ) |
| void VgMyAvatarDiscDisplay::createAvatar | ( | ) |
Create the basic avatar.
| void VgMyAvatarDiscDisplay::hide | ( | ) |
| bool VgMyAvatarDiscDisplay::isVisible | ( | ) |
|
virtual |
Called when the accuracy has changed.
| pProvider | The location provider responsible for sending the notification. |
| pAccuracy | The new accuracy |
Implements VgMyLocationListener.
|
virtual |
Called when the context has changed.
| pProvider | The location provider responsible for sending the notification. |
| pContext | The new context |
Implements VgMyLocationListener.
|
virtual |
Called when the floor has changed.
| pProvider | The location provider responsible for sending the notification. |
| pFloor | The new floor |
Implements VgMyLocationListener.
|
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.
| 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.
|
virtual |
Called when the provider is disabled.
| pProvider | The location provider responsible for sending the notification. |
Implements VgMyLocationListener.
|
virtual |
Called when the provider is enabled.
| pProvider | The location provider responsible for sending the notification. |
Implements VgMyLocationListener.
|
virtual |
Called when the location has changed.
| pProvider | The location provider responsible for sending the notification |
| pPosition | The new position |
Implements VgMyLocationListener.
|
virtual |
Called when the status has changed.
| pProvider | The location provider responsible for sending the notification. |
| pStatus | The new status. See for available values. |
Implements VgMyLocationListener.
| void VgMyAvatarDiscDisplay::show | ( | ) |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |