LinkedPhysicsEntityType Class Reference

#include <LinkedPhysicsEntityType.h>

Inherits EntityType.

Collaboration diagram for LinkedPhysicsEntityType:

List of all members.


Classes

struct  JointMapping
struct  SubEntityType

Public Member Functions

 LinkedPhysicsEntityType (unsigned short id)
virtual ~LinkedPhysicsEntityType ()
void addSubEntity (SimplePhysicsEntityType *entityType, const TransformationData &offset)
void addJoint (oops::Joint *joint, int entityIndex1, int entityIndex2)
const std::vector
< SubEntityType > & 
getSubEntityTypes ()

Protected Member Functions

virtual EntitycreateInstanceAtLoadTime (unsigned short idOfEnv, unsigned short idInEnv)
virtual EntitycreateInstanceUnchecked (unsigned short instId, unsigned short idOfEnv, unsigned short idInEnv)
virtual EventcreateEntityCreationEvent (Environment *env, unsigned environmentBasedId, TransformationData trans)

Protected Attributes

std::vector< SubEntityTypesubEntityList
 list of all members of the LinkedPhysicsEntity
std::vector< JointMappingjointList
 list of all defined Joints

Constructor & Destructor Documentation

LinkedPhysicsEntityType::LinkedPhysicsEntityType ( unsigned short  id  ) 

LinkedPhysicsEntityType::~LinkedPhysicsEntityType (  )  [virtual]


Member Function Documentation

void LinkedPhysicsEntityType::addJoint ( oops::Joint joint,
int  entityIndex1,
int  entityIndex2 
)

void LinkedPhysicsEntityType::addSubEntity ( SimplePhysicsEntityType entityType,
const TransformationData offset 
)

Event * LinkedPhysicsEntityType::createEntityCreationEvent ( Environment env,
unsigned  environmentBasedId,
TransformationData  trans 
) [protected, virtual]

Creates the EntityCreationEvent for a new instance.

Reimplemented from EntityType.

Entity * LinkedPhysicsEntityType::createInstanceAtLoadTime ( unsigned short  idOfEnv,
unsigned short  idInEnv 
) [protected, virtual]

Creates a new instance of itself at load time. The method creates a new LinkedPhysicsEntity instance where the instanceId is requested from the loadTimeEntityIdPool.

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 * LinkedPhysicsEntityType::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.

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.

const std::vector< LinkedPhysicsEntityType::SubEntityType > & LinkedPhysicsEntityType::getSubEntityTypes (  ) 


Member Data Documentation

list of all defined Joints

list of all members of the LinkedPhysicsEntity


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

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