AvataraAvatar Class Reference

#include <AvataraAvatar.h>

Inherits AvatarInterface.

Collaboration diagram for AvataraAvatar:

List of all members.


Classes

class  ConverterToV1_0a4

Public Member Functions

 AvataraAvatar ()
 ~AvataraAvatar ()
virtual bool loadConfig (std::string configFile)
virtual ModelInterfacegetModel ()
virtual void showAvatar (bool active)
virtual bool isVisible ()
virtual void setTransformation (TransformationData trans)
virtual void update (float dt)
bool startAnimation (std::string animationType, int transitionTime=0)
bool runAnimationOnce (std::string animationType, int transitionTime=0)
void stopAnimation ()

Private Member Functions

virtual void setOwner (User *user)
OSG::NodePtr buildAvatar ()
void setHandTransformation (TransformationData trans)
void setHeadTransformation (TransformationData trans)
void setViewDirection (gmtl::Vec3f dir)

Private Attributes

bool smoothAnimation
float speed
bool singleRunAnimation
int singleAnimationTime
std::string imageFile
std::string defaultAnimation
float avatarScale
bool avatarInitialized
bool avatarGeometryBuilt
TransformationData modelTransform
Avatara::OSGAvatar avatar
 OpenSG Avatar.
Avatara::Model model
 Avatar model.
std::vector< Avatara::Animation * > animations
 Avatar animation.
Avatara::AnimationSet animationSet
 Animation set for all avatar animations.
OSG::TransformPtr avatarOffsetCore
OSG::TransformPtr avatarTrans
OSG::NodePtr avatarNode
OpenSGModelavatarModel

Static Private Attributes

static const int defaultTransitionTime = 250
static XmlConfigurationLoader xmlConfigLoader

Constructor & Destructor Documentation

AvataraAvatar::AvataraAvatar (  ) 

Constructor

AvataraAvatar::~AvataraAvatar (  ) 

Destructor


Member Function Documentation

NodePtr AvataraAvatar::buildAvatar (  )  [private]

Loads the configuration from the passed config file Creates the OpenSG-representation of the avatar

ModelInterface * AvataraAvatar::getModel (  )  [virtual]

Returns the model of the Avatar

Implements AvatarInterface.

bool AvataraAvatar::isVisible (  )  [virtual]

Returns if the avatar is visible or not

Implements AvatarInterface.

bool AvataraAvatar::loadConfig ( std::string  configFile  )  [virtual]

Loads the avatar from the passed xml stream

Implements AvatarInterface.

bool AvataraAvatar::runAnimationOnce ( std::string  animationType,
int  transitionTime = 0 
)

Starts the animation once with the passed name.

void AvataraAvatar::setHandTransformation ( TransformationData  trans  )  [private]

Sets the avatar's hand transformation

void AvataraAvatar::setHeadTransformation ( TransformationData  trans  )  [private]

Sets the avatar's head transformation

void AvataraAvatar::setOwner ( User user  )  [private, virtual]

Sets the user the avatar corresponds to

Reimplemented from AvatarInterface.

void AvataraAvatar::setTransformation ( TransformationData  trans  )  [virtual]

Sets the transformation of the avatar

Implements AvatarInterface.

void AvataraAvatar::setViewDirection ( gmtl::Vec3f  dir  )  [private]

Sets the avatar's view direction

void AvataraAvatar::showAvatar ( bool  active  )  [virtual]

Sets the visibility of the avatar

Implements AvatarInterface.

bool AvataraAvatar::startAnimation ( std::string  animationType,
int  transitionTime = 0 
)

Starts an animation loop using the animation with the passed name.

void AvataraAvatar::stopAnimation (  ) 

Stops the current animation.

void AvataraAvatar::update ( float  dt  )  [virtual]

Updates the avatar model by calculating the bone transformations and correcting the model mesh.

Reimplemented from AvatarInterface.


Member Data Documentation

std::vector<Avatara::Animation*> AvataraAvatar::animations [private]

Avatar animation.

Avatara::AnimationSet AvataraAvatar::animationSet [private]

Animation set for all avatar animations.

Avatara::OSGAvatar AvataraAvatar::avatar [private]

OpenSG Avatar.

OSG::NodePtr AvataraAvatar::avatarNode [private]

OSG::TransformPtr AvataraAvatar::avatarOffsetCore [private]

float AvataraAvatar::avatarScale [private]

OSG::TransformPtr AvataraAvatar::avatarTrans [private]

std::string AvataraAvatar::defaultAnimation [private]

OSG_USING_NAMESPACE const int AvataraAvatar::defaultTransitionTime = 250 [static, private]

std::string AvataraAvatar::imageFile [private]

Avatara::Model AvataraAvatar::model [private]

Avatar model.

float AvataraAvatar::speed [private]


The documentation for this class was generated from the following files:

Generated on Wed Oct 20 16:11:54 2010 for inVRs by doxygen 1.5.8