#include <OMKAvatarVisualObject.h>
Inheritance diagram for OMK::Vis::AvatarVisualObject:
Public Member Functions | |
void | updatePosture (const OMK::Type::PostureDataType &value) |
Update the humano posture. | |
Protected Types | |
typedef ValuedEventListenerCallBack< OMK::Vis::AvatarVisualObject, OMK::Type::InitialisationSequenceType > | InitialisationSequenceListener |
Protected Member Functions | |
virtual void | visualise () |
The visualisation method. | |
virtual bool | processInit (OMK::Type::InitialisationSequenceEvent *e) |
The process event for initialisation. | |
Protected Attributes | |
HBT::AvatarMesh * | _avatarMesh |
The renderer of avatar. | |
bool | _initialised |
Flag to know if initialised. | |
InitialisationSequenceListener * | _initEventListener |
The listener to initialise the _avatarMesh throught processInit callback. | |
Private Member Functions | |
DECLARE_VISUAL_OBJECT_FACTORY (AvatarVisualObject) |
It uses AvatarMesh of HBT to performs the visualisation. The avatar can be updated by calling updatePosture. This is done by the associated humano animator. This visual object is created by the BasicHumano which is the root class of the humano simulated objects. This fire a signal to initialise the visualisation. To process this intialisation this visual object defines a callback processInit.
Definition at line 48 of file OMKAvatarVisualObject.h.
typedef ValuedEventListenerCallBack< OMK::Vis::AvatarVisualObject, OMK::Type::InitialisationSequenceType > OMK::Vis::AvatarVisualObject::InitialisationSequenceListener [protected] |
Definition at line 55 of file OMKAvatarVisualObject.h.
OMK::Vis::AvatarVisualObject::DECLARE_VISUAL_OBJECT_FACTORY | ( | AvatarVisualObject | ) | [private] |
void AvatarVisualObject::updatePosture | ( | const OMK::Type::PostureDataType & | value | ) |
Update the humano posture.
Definition at line 64 of file OMKAvatarVisualObject.cpp.
References _avatarMesh, _initialised, and HBT::AvatarMesh::update().
00065 { 00066 if( _initialised ) 00067 { // Must be initialised 00068 _avatarMesh->update( value.getValue() ) ; 00069 } 00070 }
void AvatarVisualObject::visualise | ( | ) | [protected, virtual] |
The visualisation method.
Does nothing. Everything is done by the _avatarMesh.
Reimplemented from OMK::Vis::OgreObject.
Definition at line 59 of file OMKAvatarVisualObject.cpp.
virtual bool OMK::Vis::AvatarVisualObject::processInit | ( | OMK::Type::InitialisationSequenceEvent * | e | ) | [protected, virtual] |
The process event for initialisation.
Initialises the _avatarMesh with the value.
HBT::AvatarMesh* OMK::Vis::AvatarVisualObject::_avatarMesh [protected] |
The renderer of avatar.
Definition at line 62 of file OMKAvatarVisualObject.h.
Referenced by updatePosture().
bool OMK::Vis::AvatarVisualObject::_initialised [protected] |
Flag to know if initialised.
Definition at line 65 of file OMKAvatarVisualObject.h.
Referenced by updatePosture().
The listener to initialise the _avatarMesh throught processInit callback.
Definition at line 72 of file OMKAvatarVisualObject.h.
Documentation generated on Mon Jun 9 11:46:05 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |