![]() |
VR-Forces 4.0.4 Class Documentation
|
Description: This repository holds all information that is common to all the forms of humans within the system. More...

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 DtHumanStateRepository & | operator= (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 DtHumanParameters * | humanParameters () 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 DtVrfObjectStateRepository * | creator (const DtString &name, DtVrfObject *vrfObject, const DtObjectType &objectType, DtVrfObjectParameters *parameters, DtReaderWriterRegistry *parentRegistry) |
| static DtHumanStateRepository * | isHumanStateRepository (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 |
Description: This repository holds all information that is common to all the forms of humans within the system.
| DtHumanStateRepository::DtHumanStateRepository | ( | ) | [protected] |
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
| virtual DtHumanStateRepository::~DtHumanStateRepository | ( | ) | [virtual] |
destructor
| 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] |
Reimplemented from DtVrfMovingObjectStateRepository.
| virtual const int DtHumanStateRepository::vrfMovingObjectStateRepositorySubType | ( | ) | const [virtual] |
Reimplemented from DtVrfMovingObjectStateRepository.
| virtual const int DtHumanStateRepository::humanStateRepositorySubType | ( | ) | const [virtual] |
| virtual bool DtHumanStateRepository::createParameters | ( | ) | [virtual] |
Reimplemented from DtVrfMovingObjectStateRepository.
| virtual void DtHumanStateRepository::initializeFromParameters | ( | ) | [virtual] |
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.
| Output | |
| dataAvailable | prevents 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.
| static DtHumanStateRepository* DtHumanStateRepository::isHumanStateRepository | ( | DtSimObjectStateRepository * | repository | ) | [static] |
| static const DtHumanStateRepository* DtHumanStateRepository::isHumanStateRepository | ( | const DtSimObjectStateRepository * | repository | ) | [static] |
| virtual void DtHumanStateRepository::preGetSelf | ( | ) | [protected, virtual] |
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] |
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.