Public Member Functions | Protected Attributes

VgMyAvatarDisplay Class Reference

Inheritance diagram for VgMyAvatarDisplay:
Inheritance graph
[legend]
Collaboration diagram for VgMyAvatarDisplay:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 VgMyAvatarDisplay (VgApplication::VgIApplication *pVgApplication, VgMyTextureLoader *pTextureLoader, bool pDoesFollowRoute)
 Constructor.
virtual ~VgMyAvatarDisplay ()
void updateWithPosition (VgEngine::VgConstRefPtr< VgNavigationModule::VgINavigation > const &pNavigation, const VgEngine::VgPosition &pPosition)
 A notification containing the latest position associated with the navigation object.
void clear ()
 Clears the object.
void show ()
 Declaration from interface : VgMyDisplayable.
void hide ()
 Hides this Object.
bool isVisible ()

Protected Attributes

VgApplication::VgIApplication * mVgApplication
VgEngine::VgRefPtr
< Vg3DModule::VgPoint > 
mAvatarPoint
VgMyTextureLoadermTextureLoader
VgEngine::VgPosition mPosition
std::string mLastAvatarLayerName
bool mDoesFollowRoute
bool mIsAvatarVisible

Constructor & Destructor Documentation

VgMyAvatarDisplay::VgMyAvatarDisplay ( VgApplication::VgIApplication *  pVgApplication,
VgMyTextureLoader pTextureLoader,
bool  pDoesFollowRoute 
)

Constructor.

Parameters:
pVgApplicationVgIApplication to use. Can't be NULL
pTextureLoaderVgMyTextureLoader to use. Can't be NULL.
pDoesFollowRouteUse TRUE to display an avatar projected on the closest point of the route. Use FALSE to display an avatar with the exact position.
virtual VgMyAvatarDisplay::~VgMyAvatarDisplay (  ) [virtual]

Member Function Documentation

void VgMyAvatarDisplay::clear (  ) [virtual]

Clears the object.

Implements VgMyNavigationPositionDisplay.

void VgMyAvatarDisplay::hide (  ) [virtual]

Hides this Object.

No effect if it is already hidden.

Implements VgMyNavigationPositionDisplay.

bool VgMyAvatarDisplay::isVisible (  ) [virtual]
Returns:
TRUE if this Object is visible (i.e. shown). FALSE otherwise.

Implements VgMyNavigationPositionDisplay.

void VgMyAvatarDisplay::show (  ) [virtual]

Declaration from interface : VgMyDisplayable.

Implements VgMyNavigationPositionDisplay.

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:
pNavigationThe navigation object.
pPositionThe new position.

Implements VgMyNavigationPositionDisplay.


Member Data Documentation

VgEngine::VgRefPtr< Vg3DModule::VgPoint > VgMyAvatarDisplay::mAvatarPoint [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:
VisioDevKit 2.0, Visioglobe® 2013