![]() |
VR-Forces 4.0.4 Class Documentation
|
DtHumanPostureController is a controller that manages the setting of static postures for an individual human entity. More...

Public Member Functions | |
| DtHumanPostureController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| Constructor. | |
| virtual | ~DtHumanPostureController () |
| Destructor. | |
| virtual bool | init () |
| Init. Call immediately after construction. | |
| virtual DtString | type () const |
| virtual void | tick () |
| This components simulation tick. | |
Static Public Member Functions | |
| static DtSimComponent * | creator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
Protected Member Functions | |
| virtual bool | createPSR () |
| Creates myProcessState data member, and adds it to our process state repository manager. | |
| virtual bool | createPorts () |
| Called by init. | |
| virtual void | processSetPosture (DtSimMessage *msg) |
| virtual void | processSetAppearance (DtSimMessage *msg) |
Static Protected Member Functions | |
| static void | setPostureCallback (DtSimMessage *msg, void *usr) |
| static void | setAppearanceCallback (DtSimMessage *msg, void *usr) |
Protected Attributes | |
| DtIntegerOutputPort * | myStaticPostureOutputPort |
| DtHumanPosturePSR * | myProcessState |
| Container for state data associated with this component. | |
Private Member Functions | |
| DtHumanPostureController () | |
| Not Implemented. | |
| DtHumanPostureController (const DtHumanPostureController &orig) | |
| Not Implemented. | |
| DtHumanPostureController & | operator= (const DtHumanPostureController &orig) |
| Not Implemented. | |
DtHumanPostureController is a controller that manages the setting of static postures for an individual human entity.
Developer Description: DtHumanPostureController is a controller that responds to DtSetLifeFormPostureRequestType set data requests for setting an entity's static posture. Upon receipt of a DtSetLifeFormPostureRequestType, it sets the desired static posture in the entity's DtHumanStateRepository. It also places the current static posture value on an output port each tick. The component also received DtSetAppearenceRequest messages and sets the desired posture to the posture specified in the appearance request message.
Uses Descriptor Type: DtComponentDescriptor
| DtHumanPostureController::DtHumanPostureController | ( | ) | [private] |
Not Implemented.
| DtHumanPostureController::DtHumanPostureController | ( | const DtHumanPostureController & | orig | ) | [private] |
Not Implemented.
| DtHumanPostureController::DtHumanPostureController | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
Constructor.
| virtual DtHumanPostureController::~DtHumanPostureController | ( | ) | [virtual] |
Destructor.
| DtHumanPostureController& DtHumanPostureController::operator= | ( | const DtHumanPostureController & | orig | ) | [private] |
Not Implemented.
| virtual bool DtHumanPostureController::init | ( | ) | [virtual] |
Init. Call immediately after construction.
Reimplemented from DtControllerComponent.
| virtual DtString DtHumanPostureController::type | ( | ) | const [virtual] |
Reimplemented from DtControllerComponent.
| virtual void DtHumanPostureController::tick | ( | ) | [virtual] |
This components simulation tick.
Reimplemented from DtSimComponent.
| static DtSimComponent* DtHumanPostureController::creator | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | [static] |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual bool DtHumanPostureController::createPSR | ( | ) | [protected, virtual] |
Creates myProcessState data member, and adds it to our process state repository manager.
Passes in the name and type specified in the component descriptor (if they exist) to the DtVrfProcessStateRepository::createRepository factory method. If name and/or type is not specified, uses the appropriate default strings defined in procSRTypes.h.
| virtual bool DtHumanPostureController::createPorts | ( | ) | [protected, virtual] |
Called by init.
Derived classes should override this method to create all their input/output ports and port groups.
Reimplemented from DtSimComponent.
| static void DtHumanPostureController::setPostureCallback | ( | DtSimMessage * | msg, |
| void * | usr | ||
| ) | [static, protected] |
| virtual void DtHumanPostureController::processSetPosture | ( | DtSimMessage * | msg | ) | [protected, virtual] |
| static void DtHumanPostureController::setAppearanceCallback | ( | DtSimMessage * | msg, |
| void * | usr | ||
| ) | [static, protected] |
| virtual void DtHumanPostureController::processSetAppearance | ( | DtSimMessage * | msg | ) | [protected, virtual] |
Container for state data associated with this component.
This state is saved and restored as part of a scenario (or checkpoint).