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

Description: This repository holds all information that is common to all the forms of humans within the system. More...

Inheritance diagram for DtHumanStateRepository:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtHumanStateRepository (DtVrfObject *vrfObject, const DtObjectType &objectType, DtVrfObjectParameters *parameters, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
 constructor with parameters to set up read/writability correctly
 DtHumanStateRepository (const DtHumanStateRepository &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
 copy constructor
const DtHumanStateRepositoryoperator= (const DtHumanStateRepository &orig)
 assignment operator
virtual ~DtHumanStateRepository ()
 destructor
virtual
DtSimObjectStateRepository
clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const
 Clone.
virtual bool init ()
 Our 'virtual' constructor. Calls all the create<>() methods.
virtual DtString type () const
virtual const int vrfMovingObjectStateRepositorySubType () const
virtual const int humanStateRepositorySubType () const
virtual bool createParameters ()
virtual void initializeFromParameters ()
virtual const DtHumanParametershumanParameters () const
virtual void setAssignedPosture (DtLifeformState newPosture)
 Value sets by user/opd.
virtual DtLifeformState assignedPosture () const
virtual DtLifeformState currentPosture () const
 current value, according with the current task
virtual void setCurrentPosture (DtLifeformState newPosture)
virtual void setAssignedWeaponState (DtWeaponState newWeaponState)
 Value sets by user/opd.
virtual DtWeaponState assignedWeaponState () const
virtual DtWeaponState currentWeaponState () const
 current value, according with the current task
virtual void setCurrentWeaponState (DtWeaponState newWeaponState)
virtual void clampToGround (const DtVector &location, const DtReal heading, bool *dataAvailable=0, bool requireAllData=false)
 Place entity on ground at location and heading.
virtual void setDestroyed (bool isDestroyed)
 Redefine setDestroyed to avoid smoke and flames.
virtual void calculateBodyEyepointOffset (DtLifeformState posture, DtVector &bodyEyepointOffset) const
 Computes an offset in body coordinates to eye point, for a given posture.
virtual bool uprightPosture (DtLifeformState posture) const
 Returns true if given posture is an upright one (i.e.
virtual bool staticPosture (DtLifeformState posture) const
 Returns true if given posture is static (i.e.
virtual bool movingPosture (DtLifeformState posture) const
 Returns true if given posture is a movement posture (i.e.

Static Public Member Functions

static DtVrfObjectStateRepositorycreator (const DtString &name, DtVrfObject *vrfObject, const DtObjectType &objectType, DtVrfObjectParameters *parameters, DtReaderWriterRegistry *parentRegistry)
static DtHumanStateRepositoryisHumanStateRepository (DtSimObjectStateRepository *repository)
static const
DtHumanStateRepository
isHumanStateRepository (const DtSimObjectStateRepository *repository)

Protected Member Functions

 DtHumanStateRepository ()
 default constructor cannot be used
virtual void preGetSelf ()
virtual void postGetSelf ()

Protected Attributes

DtRwIndividualLifeFormStateType myAssignedPosture
DtRwIndividualLifeFormStateType myCurrentPosture
DtRwIndividualLifeFormWeaponStateType myAssignedWeaponState
DtRwIndividualLifeFormWeaponStateType myCurrentWeaponState

Detailed Description

Description: This repository holds all information that is common to all the forms of humans within the system.


Constructor & Destructor Documentation

default constructor cannot be used

DtHumanStateRepository::DtHumanStateRepository ( DtVrfObject vrfObject,
const DtObjectType objectType,
DtVrfObjectParameters parameters,
const DtString rwName = DtString::nullString(),
DtReaderWriterRegistry parentRegistry = 0 
)

constructor with parameters to set up read/writability correctly

DtHumanStateRepository::DtHumanStateRepository ( const DtHumanStateRepository orig,
const DtString rwName = DtString::nullString(),
DtReaderWriterRegistry parentRegistry = 0 
)

copy constructor

destructor


Member Function Documentation

const DtHumanStateRepository& DtHumanStateRepository::operator= ( const DtHumanStateRepository orig)

assignment operator

virtual DtSimObjectStateRepository* DtHumanStateRepository::clone ( const DtString rwName = DtString::nullString(),
DtReaderWriterRegistry parentRegistry = 0 
) const [virtual]

Clone.

Reimplemented from DtVrfMovingObjectStateRepository.

virtual bool DtHumanStateRepository::init ( ) [virtual]

Our 'virtual' constructor. Calls all the create<>() methods.

Reimplemented from DtVrfObjectStateRepository.

virtual DtString DtHumanStateRepository::type ( ) const [virtual]
Returns:
The string type of the repository, as defined in vrfSRTypes.h.

Reimplemented from DtVrfMovingObjectStateRepository.

Returns:
DtVrfMovingObjectStateRepositorySubTypeHuman.

Reimplemented from DtVrfMovingObjectStateRepository.

virtual const int DtHumanStateRepository::humanStateRepositorySubType ( ) const [virtual]
Returns:
DtHumanStateRepositorySubTypeBase.

Reimplemented from DtVrfMovingObjectStateRepository.

Reimplemented from DtVrfMovingObjectStateRepository.

virtual const DtHumanParameters* DtHumanStateRepository::humanParameters ( ) const [virtual]
virtual void DtHumanStateRepository::setAssignedPosture ( DtLifeformState  newPosture) [virtual]

Value sets by user/opd.

virtual DtLifeformState DtHumanStateRepository::assignedPosture ( ) const [virtual]
virtual DtLifeformState DtHumanStateRepository::currentPosture ( ) const [virtual]

current value, according with the current task

virtual void DtHumanStateRepository::setCurrentPosture ( DtLifeformState  newPosture) [virtual]
virtual void DtHumanStateRepository::setAssignedWeaponState ( DtWeaponState  newWeaponState) [virtual]

Value sets by user/opd.

virtual DtWeaponState DtHumanStateRepository::assignedWeaponState ( ) const [virtual]
virtual DtWeaponState DtHumanStateRepository::currentWeaponState ( ) const [virtual]

current value, according with the current task

virtual void DtHumanStateRepository::setCurrentWeaponState ( DtWeaponState  newWeaponState) [virtual]
virtual void DtHumanStateRepository::clampToGround ( const DtVector location,
const DtReal  heading,
bool dataAvailable = 0,
bool  requireAllData = false 
) [virtual]

Place entity on ground at location and heading.

Redefined to set orientation with gravity direction.

Parameters:
Output
dataAvailableprevents the call from blocking due to terrain paging and will get a true value if the terrain intersections are successful. See DtVrfMovingObjectStateRepository::clampToGround for more information.

Reimplemented from DtVrfMovingObjectStateRepository.

virtual void DtHumanStateRepository::setDestroyed ( bool  isDestroyed) [virtual]

Redefine setDestroyed to avoid smoke and flames.

Reimplemented from DtVrfObjectStateRepository.

virtual void DtHumanStateRepository::calculateBodyEyepointOffset ( DtLifeformState  posture,
DtVector bodyEyepointOffset 
) const [virtual]

Computes an offset in body coordinates to eye point, for a given posture.

virtual bool DtHumanStateRepository::uprightPosture ( DtLifeformState  posture) const [virtual]

Returns true if given posture is an upright one (i.e.

DtLifeformWalking, DtLifeformRunning, DtLifeformStanding), false otherwise.

virtual bool DtHumanStateRepository::staticPosture ( DtLifeformState  posture) const [virtual]

Returns true if given posture is static (i.e.

DtLifeformStanding, DtLifeformProne, etc.), false if not (posture is associated with movement).

virtual bool DtHumanStateRepository::movingPosture ( DtLifeformState  posture) const [virtual]

Returns true if given posture is a movement posture (i.e.

DtLifeformWalking, DtLifeformCrawling, etc.), false if not (posture is static).

static DtVrfObjectStateRepository* DtHumanStateRepository::creator ( const DtString name,
DtVrfObject vrfObject,
const DtObjectType objectType,
DtVrfObjectParameters parameters,
DtReaderWriterRegistry parentRegistry 
) [static]

Reimplemented from DtVrfMovingObjectStateRepository.

Returns:
A the pointer the repository, if the repository passed in is of type DtHumanStateRepository, 0 if not.
virtual void DtHumanStateRepository::preGetSelf ( ) [protected, virtual]
Deprecated:
To be removed after VR-Forces version 3.11 Called immeidately prior to baseclass getSelf().

Creates a DtAutomotivePSR and adds it to our list of process state repositories. Enables pre-3.11 scenarios containing lifeform entities to work with new human model.

Reimplemented from DtSimObjectStateRepository.

virtual void DtHumanStateRepository::postGetSelf ( ) [protected, virtual]
Deprecated:
To be removed after VR-Forces version 3.11 Called immediately following call to base class getSelf().

Determines if DtAutomotivePSR has been loaded. If so, maps information from that PSR to new human model PSRs. Enables pre-3.11 scenarios containing lifeform entities to work with new human model.

Reimplemented from DtSimObjectStateRepository.


Member Data Documentation


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)