VisioDevKit-Sample
v2.0
|
Displays an avatar for the user that will display its position on the map. More...
Public Member Functions | |
VgMyAvatarDisplay (VgApplication::VgIApplication *pVgApplication, VgMyTextureLoader *pTextureLoader, std::string &pAvatarImageName) | |
Constructor. More... | |
~VgMyAvatarDisplay () | |
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 |
std::string | mCurrentAvatarLayerName |
std::string | mGeometryContext |
Additional Inherited Members | |
![]() | |
virtual | ~VgMyLocationListener () |
Displays an avatar for the user that will display its position on the map.
Must be registered with VgMyLocationManager before it will receive location notification.
IMPLEMENTATION TIPS: You can customize its texture and its animation.
VgMyAvatarDisplay::VgMyAvatarDisplay | ( | VgApplication::VgIApplication * | pVgApplication, |
VgMyTextureLoader * | pTextureLoader, | ||
std::string & | pAvatarImageName | ||
) |
Constructor.
pVgApplication | VgIApplication to use. Can't be NULL |
pTextureLoader | VgMyTextureLoader to use. Can't be NULL. |
pAvatarImageName | The name of the image to be used to represent the avatar. The image should be an asset within your project and it will suffice to just pass the name (path not required) which also includes the filename extension. |
VgMyAvatarDisplay::~VgMyAvatarDisplay | ( | ) |
void VgMyAvatarDisplay::createAvatar | ( | ) |
Create the basic avatar.
void VgMyAvatarDisplay::hide | ( | ) |
bool VgMyAvatarDisplay::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 VgMyAvatarDisplay::show | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |