ArticulatedPhysicsEntityType Class Reference
#include <ArticulatedPhysicsEntityType.h>
Inherits EntityType.

Public Member Functions | |
| ArticulatedPhysicsEntityType (int entType) | |
| virtual | ~ArticulatedPhysicsEntityType () |
Protected Member Functions | |
| virtual void | setRigidBodyMapping (unsigned rigidBodyId, unsigned succeedingEntity) |
| virtual void | initializeInstance (ArticulatedPhysicsEntity *entity) |
| virtual Entity * | createInstanceAtLoadTime (unsigned short idOfEnv, unsigned short idInEnv) |
| virtual Entity * | createInstanceUnchecked (unsigned short instId, unsigned short idOfEnv, unsigned short idInEnv) |
Protected Attributes | |
| oops::ArticulatedBody * | articulatedBody |
| Physical representation used for Entities. | |
| std::map< unsigned, unsigned > | rigidBodyMapping |
| Mapping from RigidBody-index to SimplePhysicsEntity-ID-offset. | |
Friends | |
| class | ArticulatedPhysicsEntity |
| class | ArticulatedPhysicsEntityTypeFactory |
Detailed Description
EntityType-class for ArticulatedPhysicsEntity. This class is the EntityType managing the creation and destruction of ArticulatedPhysicsEntities.Constructor & Destructor Documentation
| ArticulatedPhysicsEntityType::ArticulatedPhysicsEntityType | ( | int | entType | ) |
Constructor initializes the EntityType.
| ArticulatedPhysicsEntityType::~ArticulatedPhysicsEntityType | ( | ) | [virtual] |
Empty Destructor
Member Function Documentation
| Entity * ArticulatedPhysicsEntityType::createInstanceAtLoadTime | ( | unsigned short | idOfEnv, | |
| unsigned short | idInEnv | |||
| ) | [protected, virtual] |
Creates a new instance of itself at load time. The method creates a new ArticulatedPhysicsEntityEntity instance where the instanceId is requested from the loadTimeEntityIdPool. The physical representation is cloned and stored in the new ArticulatedPhysicsEntity.
- Parameters:
-
idOfEnv ID of the destination Environment idInEnv ID of the Entity in the Environment
- Returns:
- new Entity instance of the current EntityType
Reimplemented from EntityType.
| Entity * ArticulatedPhysicsEntityType::createInstanceUnchecked | ( | unsigned short | instId, | |
| unsigned short | idOfEnv, | |||
| unsigned short | idInEnv | |||
| ) | [protected, virtual] |
Creates a new instance of itself with the passed IDs. The method creates a new Entity instance with the passed IDs. The physical representation is cloned and stored in the new ArticulatedPhysicsEntity.
- Parameters:
-
instId ID of the Entity instance idOfEnv ID of the destination Environment idInEnv ID of the Entity in the Environment
- Returns:
- new Entity instance of the current EntityType
Reimplemented from EntityType.
| void ArticulatedPhysicsEntityType::initializeInstance | ( | ArticulatedPhysicsEntity * | entity | ) | [protected, virtual] |
Initializes the passed Entity. The method allows to initialize the passed Entity. It is called from the createInstanceAtLoadTime and createInstanceUnchecked methods. This allows to easily initialize Entities which derive from ArticulatedPhysicsEntity.
- Parameters:
-
entity Entity which should be initialized
| void ArticulatedPhysicsEntityType::setRigidBodyMapping | ( | unsigned | rigidBodyId, | |
| unsigned | succeedingEntity | |||
| ) | [protected, virtual] |
Sets the mapping of the RigidBodies inside the ArticulatedBody to the Entities in the world. The method sets the mapping of a RigidBody inside the ArticulatedBody to an Entity. Each ArticulatedBody consists of a number of RigidBodies. These RigidBodies have to be represented by SimplePhysicsEntities yet. In the Environment config file the ArticulatedPhysicsEntity has to be followed by a number of SimplePhysicsEntities each for one RigidBody inside the ArticulatedBody. The passed indices define the index of the RigidBody inside the ArticulatedBody and the ID-offset of the matching SimplePhysicsEntity to the ArticulatedPhysicsEntity.
- Parameters:
-
rigidBodyIndex Index of the RigidBody inside the ArticulatedBody succeedingEntityIndex ID-offset between the ArticulatedPhysicsEntity and the SimplePhysicsEntity
Friends And Related Function Documentation
friend class ArticulatedPhysicsEntity [friend] |
friend class ArticulatedPhysicsEntityTypeFactory [friend] |
Member Data Documentation
Physical representation used for Entities.
std::map<unsigned, unsigned> ArticulatedPhysicsEntityType::rigidBodyMapping [protected] |
Mapping from RigidBody-index to SimplePhysicsEntity-ID-offset.
The documentation for this class was generated from the following files:
- src/inVRs/Modules/3DPhysics/ArticulatedPhysicsEntityType.h
- src/inVRs/Modules/3DPhysics/ArticulatedPhysicsEntityType.cpp
Generated on Wed Oct 20 16:11:53 2010 for inVRs by
1.5.8