VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions
DtHumanPostureController Class Reference

DtHumanPostureController is a controller that manages the setting of static postures for an individual human entity. More...

Inheritance diagram for DtHumanPostureController:
Inheritance graph
[legend]

List of all members.

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 DtSimComponentcreator (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

DtIntegerOutputPortmyStaticPostureOutputPort
DtHumanPosturePSRmyProcessState
 Container for state data associated with this component.

Private Member Functions

 DtHumanPostureController ()
 Not Implemented.
 DtHumanPostureController (const DtHumanPostureController &orig)
 Not Implemented.
DtHumanPostureControlleroperator= (const DtHumanPostureController &orig)
 Not Implemented.

Detailed Description

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


Constructor & Destructor Documentation

Not Implemented.

Not Implemented.

DtHumanPostureController::DtHumanPostureController ( const DtString name,
DtVrfObject owner,
DtSimManager simManager,
DtComponentDescriptor desc = 0,
DtReaderWriterRegistry parentRegistry = 0 
)

Constructor.

Destructor.


Member Function Documentation

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]
Returns:
DtHumanPostureControllerType

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*,

Parameters:
nameReader writer name of this component.
ownerThe DtVrfObject that owns this component
simManagerThe simulation manager (provides access to terrain, message interface, simulation clock).
descThe component descriptor used to initialize this component.
parentRegistryPointer to the parent reader writer registry (the containing object that reads/writes this object).
(const DtString&,DtVrfObject*,DtSimManager*, DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)

Returns:
New instance of this class.
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]

Member Data Documentation

Container for state data associated with this component.

This state is saved and restored as part of a scenario (or checkpoint).


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)