Displays an avatar for the user that will display its position on the map.
More...
Displays an avatar for the user that will display its position on the map.
If an instance is registred into the VgMyBasicApplicationController instance, its position will be automatically updated once a VgMyLocationProdiver subclass will inject a new position through VgMyBasicApplicationController::updatePosition
IMPLEMENTATION TIPS: You can customize its texture and its animation.
VgMyAvatarDisplay::VgMyAvatarDisplay |
( |
VgApplication::VgIApplication * |
pVgApplication, |
|
|
VgMyTextureLoader * |
pTextureLoader, |
|
|
bool |
pDoesFollowRoute |
|
) |
| |
Constructor.
- Parameters
-
pVgApplication | VgIApplication to use. Can't be NULL |
pTextureLoader | VgMyTextureLoader to use. Can't be NULL. |
pDoesFollowRoute | Use TRUE to display an avatar projected on the closest point of the route. Use FALSE to display an avatar with the exact position. |
- Note
- You can change its texture in this method.
virtual VgMyAvatarDisplay::~VgMyAvatarDisplay |
( |
| ) |
|
|
virtual |
void VgMyAvatarDisplay::clear |
( |
| ) |
|
|
virtual |
void VgMyAvatarDisplay::hide |
( |
| ) |
|
|
virtual |
bool VgMyAvatarDisplay::isVisible |
( |
| ) |
|
|
virtual |
void VgMyAvatarDisplay::show |
( |
| ) |
|
|
virtual |
void VgMyAvatarDisplay::updateWithPosition |
( |
VgEngine::VgConstRefPtr< VgNavigationModule::VgINavigation > const & |
pNavigation, |
|
|
const VgEngine::VgPosition & |
pPosition |
|
) |
| |
|
virtual |
A notification containing the latest position associated with the navigation object.
- Parameters
-
pNavigation | The navigation object. |
pPosition | The new position. |
Implements VgMyNavigationPositionDisplay.
VgEngine::VgRefPtr< Vg3DModule::VgPoint > VgMyAvatarDisplay::mAvatarPoint |
|
protected |
bool VgMyAvatarDisplay::mDoesFollowRoute |
|
protected |
bool VgMyAvatarDisplay::mIsAvatarVisible |
|
protected |
std::string VgMyAvatarDisplay::mLastAvatarLayerName |
|
protected |
VgEngine::VgPosition VgMyAvatarDisplay::mPosition |
|
protected |
VgApplication::VgIApplication* VgMyAvatarDisplay::mVgApplication |
|
protected |
The documentation for this class was generated from the following file: