OMK::Vis::AvatarVisualObject Class Reference

This visual object defines an humano avatar. More...

#include <OMKAvatarVisualObject.h>

Inheritance diagram for OMK::Vis::AvatarVisualObject:

Inheritance graph
[legend]
Collaboration diagram for OMK::Vis::AvatarVisualObject:

Collaboration graph
[legend]
List of all members.

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)

Detailed Description

This visual object defines an humano avatar.

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.


Member Typedef Documentation

typedef ValuedEventListenerCallBack< OMK::Vis::AvatarVisualObject, OMK::Type::InitialisationSequenceType > OMK::Vis::AvatarVisualObject::InitialisationSequenceListener [protected]

Definition at line 55 of file OMKAvatarVisualObject.h.


Member Function Documentation

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.

00060 {
00061 }

virtual bool OMK::Vis::AvatarVisualObject::processInit ( OMK::Type::InitialisationSequenceEvent *  e  )  [protected, virtual]

The process event for initialisation.

Initialises the _avatarMesh with the value.


Member Data Documentation

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().

InitialisationSequenceListener* OMK::Vis::AvatarVisualObject::_initEventListener [protected]

The listener to initialise the _avatarMesh throught processInit callback.

Definition at line 72 of file OMKAvatarVisualObject.h.


logo OpenMask

Documentation generated on Mon Jun 9 11:46:05 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007