|
VR-Engage
2.2
|
This class provides storage and management for ladder climbing state data, including the climbing state, ladder access points, and related timing information. It is used by entities that need to climb ladders in the simulation, particularly human entities, to maintain their state throughout the ladder climbing process.
#include <vreLadderClimbingPSR.h>
Public Member Functions | |
| DtVreLadderClimbingPSR (DtLocalObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| DtVreLadderClimbingPSR (const DtVreLadderClimbingPSR &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtVreLadderClimbingPSR () override |
| DtVreLadderClimbingPSR & | operator= (const DtVreLadderClimbingPSR &orig) |
| virtual DtVrfProcessStateRepository * | clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const override |
| virtual DtString | type () const override |
| virtual void | setLadderClimbingState (DtLadderClimbingState state) |
| virtual DtLadderClimbingState | ladderClimbingState () const |
| virtual void | setLadder (const DtLadder &ladder) |
| virtual DtLadder | ladder () const |
| virtual void | setLadderEntryPoint (const DtVector &ladderAccessPoint) |
| virtual DtVector | ladderEntryPoint () const |
| virtual void | setLadderExitPoint (const DtVector &ladderAccessPoint) |
| virtual DtVector | ladderExitPoint () const |
| virtual void | setTimeToGetOnLadder (double simTime) |
| virtual double | timeToGetOnLadder () const |
| virtual void | setTimeToGetOffLadder (double simTime) |
| virtual double | timeToGetOffLadder () const |
| virtual void | setLadderStandoffOffset (const DtVector &offset) |
| virtual DtVector | ladderStandoffOffset () const |
| virtual void | setOrientationOnGround (const DtTaitBryan &orientation) |
| virtual DtTaitBryan | orientationOnGround () const |
| virtual void | setTerrainHeightGeodetic (double altitude) |
| virtual double | terrainHeightGeodetic () const |
| virtual void | setLadderBaseForSearch (const DtVector &ladderBase) |
| virtual DtVector | ladderBaseForSearch () const |
Static Public Member Functions | |
| static DtVrfProcessStateRepository * | creator (const DtString &rwName, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry) |
Protected Attributes | |
| DtRwInt | myLadderClimbingState |
| DtLadder | myLadder |
| DtRwVector | myLadderEntryPoint |
| DtRwVector | myLadderExitPoint |
| DtRwReal | myTimeToGetOnLadder |
| DtRwReal | myTimeToGetOffLadder |
| DtRwVector | myLadderStandoffOffset |
| DtTaitBryan | myOrientationOnGround |
| DtRwReal | myTerrainHeightGeodetic |
| DtRwVector | myLadderBaseForSearch |
| makVre::DtVreLadderClimbingPSR::DtVreLadderClimbingPSR | ( | DtLocalObject * | vrfObject, |
| const DtString & | rwName = DtString::nullString(), | ||
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor with VRF object and optional name.
| vrfObject | Pointer to the local object this PSR is associated with |
| rwName | Optional reader/writer name |
| parentRegistry | Optional parent registry for reader/writer functionality |
Creates a new ladder climbing PSR for the specified VRF object.
Referenced by DtVreLadderClimbingPSR(), and operator=().
| makVre::DtVreLadderClimbingPSR::DtVreLadderClimbingPSR | ( | const DtVreLadderClimbingPSR & | orig, |
| const DtString & | rwName = DtString::nullString(), | ||
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Copy constructor.
| orig | The source PSR to copy from |
| rwName | Optional reader/writer name |
| parentRegistry | Optional parent registry for reader/writer functionality |
Creates a new ladder climbing PSR as a copy of the provided original.
References DtVreLadderClimbingPSR().
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the PSR.
| DtVreLadderClimbingPSR & makVre::DtVreLadderClimbingPSR::operator= | ( | const DtVreLadderClimbingPSR & | orig | ) |
Assignment operator (not implemented)
| orig | The source PSR to copy from |
Assignment operator is declared but not implemented to prevent assignment.
References DtVreLadderClimbingPSR().
|
overridevirtual |
Creates a clone of this PSR.
| rwName | Optional reader/writer name for the clone |
| parentRegistry | Optional parent registry for reader/writer functionality |
Creates a new ladder climbing PSR as a deep copy of this one.
|
overridevirtual |
Gets the type identifier for this PSR.
Returns a unique type identifier string for this PSR type. Will return DtVreLadderClimbingPSRType.
|
virtual |
Sets the ladder climbing state.
| state | The new ladder climbing state to set |
Sets the current ladder climbing state of the entity. This affects how the entity behaves in relation to ladders.
|
virtual |
Gets the ladder climbing state.
Returns the current ladder climbing state of the entity.
|
virtual |
Sets the current ladder.
| ladder | The ladder object this entity is interacting with |
Sets the ladder that the entity is currently interacting with. This includes all the ladder's properties such as base, top, and orientation.
References ladder().
|
virtual |
Gets the current ladder.
Returns the ladder that the entity is currently interacting with.
Referenced by setLadder().
|
virtual |
Sets the ladder entry point.
| ladderAccessPoint | The position where the entity mounts the ladder |
Sets the position where the entity mounts (gets on) the ladder. This is typically near the base of the ladder.
|
virtual |
Gets the ladder entry point.
Returns the position where the entity mounts (gets on) the ladder.
|
virtual |
Sets the ladder exit point.
| ladderAccessPoint | The position where the entity dismounts the ladder |
Sets the position where the entity dismounts (gets off) the ladder. This is typically near the top of the ladder for upward climbing.
|
virtual |
Gets the ladder exit point.
Returns the position where the entity dismounts (gets off) the ladder.
|
virtual |
Sets the simulation time when the entity will finish mounting the ladder.
| simTime | The simulation time in seconds |
Sets the simulation time at which the entity will complete the process of mounting (getting on) the ladder. Used for timing the transition animation.
|
virtual |
Gets the simulation time when the entity will finish mounting the ladder.
Returns the simulation time at which the entity will complete the process of mounting (getting on) the ladder.
|
virtual |
Sets the simulation time when the entity will finish dismounting the ladder.
| simTime | The simulation time in seconds |
Sets the simulation time at which the entity will complete the process of dismounting (getting off) the ladder. Used for timing the transition animation.
|
virtual |
Gets the simulation time when the entity will finish dismounting the ladder.
Returns the simulation time at which the entity will complete the process of dismounting (getting off) the ladder.
|
virtual |
Sets the ladder standoff offset.
| offset | The offset vector in local coordinates |
Sets the offset vector used to position the entity relative to the ladder so that it doesn't appear embedded in the ladder geometry.
|
virtual |
Gets the ladder standoff offset.
Returns the offset vector used to position the entity relative to the ladder.
|
virtual |
Sets the entity's orientation when on the ground.
| orientation | The orientation in Tait-Bryan angles |
Sets the orientation of the entity when it's on the ground before mounting the ladder. This is saved to restore the entity's orientation after dismounting.
|
virtual |
Gets the entity's orientation when on the ground.
Returns the saved orientation of the entity when it was on the ground before mounting the ladder.
|
virtual |
Sets the terrain height in geodetic coordinates.
| altitude | The terrain height in geodetic coordinates |
Sets the height of the terrain in geodetic coordinates at the ladder location. This is used for positioning calculations when mounting and dismounting the ladder.
|
virtual |
Gets the terrain height in geodetic coordinates.
Returns the height of the terrain in geodetic coordinates at the ladder location.
|
virtual |
Sets the ladder base position for search operations.
| ladderBase | The position of the ladder base in local coordinates |
Sets the position of the ladder base used in findNearestLadder() searches. This helps optimize ladder searches by providing a starting point.
|
virtual |
Gets the ladder base position for search operations.
Returns the position of the ladder base used in findNearestLadder() searches.
|
static |
Factory function to create a new instance of this PSR.
| rwName | The reader/writer name for the new instance |
| vrfObject | Pointer to the local object this PSR will be associated with |
| parentRegistry | Parent registry for reader/writer functionality |
Static factory function used by the PSR creation system to instantiate new instances of this PSR type.
|
protected |
Current ladder climbing state.
Stores the current state of the entity in relation to ladder climbing. See DtLadderClimbingState enumeration for possible values.
|
protected |
Current ladder being used.
Stores the ladder that the entity is currently interacting with. This is valid when in the DtOnLadderAtAccessPoint or DtOnLadder states.
|
protected |
Ladder entry point.
Stores the position where the entity mounts (gets on) the ladder. This is typically near the base of the ladder.
|
protected |
Ladder exit point.
Stores the position where the entity dismounts (gets off) the ladder. This is typically near the top of the ladder for upward climbing.
|
protected |
Time to finish mounting the ladder.
Stores the simulation time at which the entity will complete the process of mounting (getting on) the ladder. Used for timing the transition animation.
|
protected |
Time to finish dismounting the ladder.
Stores the simulation time at which the entity will complete the process of dismounting (getting off) the ladder. Used for timing the transition animation.
|
protected |
Ladder standoff offset.
Stores the offset vector in local coordinates, used to position the entity such that it doesn't appear embedded in the ladder geometry.
|
protected |
Entity orientation when on the ground.
Stores the orientation of the entity when it's on the ground before mounting the ladder. This is used to restore the entity's orientation after dismounting.
|
protected |
Terrain height in geodetic coordinates.
Stores the height of the terrain in geodetic coordinates at the ladder location. This is used for positioning calculations when mounting and dismounting the ladder.
|
protected |
Ladder base for search operations.
Stores the position of the ladder base used in findNearestLadder() searches. This helps optimize ladder searches by providing a starting point.