SimpleAvatar Class Reference
#include <SimpleAvatar.h>
Inherits AvatarInterface.
Collaboration diagram for SimpleAvatar:
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 ModelInterface * | getModel () |
| virtual bool | isVisible () |
Protected Member Functions | |
| bool | loadModel (std::string fileType, std::string fileName) |
Protected Attributes | |
| TransformationData | modelTransform |
| TransformationData | avatarTransformation |
| ModelInterface * | avatarModel |
| SceneGraphInterface * | sgIF |
Static Private Attributes | |
| static XmlConfigurationLoader | xmlConfigLoader |
Constructor & Destructor Documentation
| SimpleAvatar::SimpleAvatar | ( | ) |
| SimpleAvatar::~SimpleAvatar | ( | ) | [virtual] |
Member Function Documentation
| ModelInterface * SimpleAvatar::getModel | ( | ) | [virtual] |
| 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
ModelInterface* SimpleAvatar::avatarModel [protected] |
TransformationData SimpleAvatar::avatarTransformation [protected] |
TransformationData SimpleAvatar::modelTransform [protected] |
SceneGraphInterface* SimpleAvatar::sgIF [protected] |
OSG_USING_NAMESPACE XmlConfigurationLoader SimpleAvatar::xmlConfigLoader [static, private] |
The documentation for this class was generated from the following files:
- src/inVRs/SystemCore/WorldDatabase/SimpleAvatar.h
- src/inVRs/SystemCore/WorldDatabase/SimpleAvatar.cpp
Generated on Wed Oct 20 16:12:00 2010 for inVRs by
1.5.8