SimpleAvatar Class Reference

#include <SimpleAvatar.h>

Inherits AvatarInterface.

Collaboration diagram for SimpleAvatar:

List of all members.


Classes

class  ConverterToV1_0a4

Public Member Functions

 SimpleAvatar ()
virtual ~SimpleAvatar ()
virtual bool loadConfig (std::string configFile)
virtual void showAvatar (bool active)
virtual void setTransformation (TransformationData trans)
virtual ModelInterfacegetModel ()
virtual bool isVisible ()

Protected Member Functions

bool loadModel (std::string fileType, std::string fileName)

Protected Attributes

TransformationData modelTransform
TransformationData avatarTransformation
ModelInterfaceavatarModel
SceneGraphInterfacesgIF

Static Private Attributes

static XmlConfigurationLoader xmlConfigLoader

Constructor & Destructor Documentation

SimpleAvatar::SimpleAvatar (  ) 

SimpleAvatar::~SimpleAvatar (  )  [virtual]


Member Function Documentation

ModelInterface * SimpleAvatar::getModel (  )  [virtual]

This method returns the avatar-model

Returns:
model of the avatar

Implements AvatarInterface.

bool SimpleAvatar::isVisible (  )  [virtual]

The method returns if the avatar is currently visible

Returns:
bool if avatar is visible

Implements AvatarInterface.

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

This method loads the configuration of the Avatar. Therefore it parses the file until it is finished.

Parameters:
configFile url to the avatar config file
Returns:
true if no error occured while parsing the file

Implements AvatarInterface.

bool SimpleAvatar::loadModel ( std::string  fileType,
std::string  fileName 
) [protected]

This method loads the avatar model. It therefore opens the passed modelFile in the Avatars-path which should be set in the Configuration. It also applies the configured model Transformation to the model.

Parameters:
modelFile model which should be used as Avatar

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

This method sets the Transformation of the avatar in world coordinates

Parameters:
trans Transformation of the avatar in world coordinates

Implements AvatarInterface.

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

This method shows or hides the Avatar. It does so by activating or deactivating the OpenSG-Node

Parameters:
active defines if the avatar should be visible

Implements AvatarInterface.


Member Data Documentation


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

Generated on Wed Oct 20 16:12:00 2010 for inVRs by doxygen 1.5.8