|
VR-Engage
2.2
|
This class maintains the state information for rotary-wing aircraft within the VREngage simulation, including position, orientation, velocity, and other aircraft state variables. It provides methods for initializing, updating, and querying this state information.
#include <vreRlStateRepository.h>
Public Member Functions | |
| DtVreRlStateRepository (DtLocalObject *vrfObject, const DtString &name, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtVreRlStateRepository () override |
| virtual bool | init () override |
| virtual DtString | type () const override |
| virtual void | initializeFromParameters () override |
| const DtVreRlParameters * | getParameters () const |
| virtual void | place (const DtVector &location, const DtReal heading, bool clampToGroundFlag=true, bool *dataAvailable=0, bool requireAllData=false) override |
Static Public Member Functions | |
| static DtVrfObjectStateRepository * | creator (const DtString &name, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry) |
Private Member Functions | |
| DtVreRlStateRepository (const DtVreRlStateRepository &orig) | |
| const DtVreRlStateRepository & | operator= (const DtVreRlStateRepository &orig) |
Friends | |
| class | Controller |
|
private |
Copy constructor (not implemented)
| orig | The source object |
References DtVreRlStateRepository().
Referenced by DtVreRlStateRepository(), and operator=().
| RlCgfVrf::DtVreRlStateRepository::DtVreRlStateRepository | ( | DtLocalObject * | vrfObject, |
| const DtString & | name, | ||
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor.
| vrfObject | The local object this repository belongs to |
| name | The name of the repository |
| parentRegistry | Parent registry for reader/writer functionality |
Initializes a new rotary-wing state repository for VREngage control.
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the state repository.
|
private |
Assignment operator (not implemented)
| orig | The source object |
References DtVreRlStateRepository().
|
overridevirtual |
Initializes the state repository.
Performs initial setup of the state repository, including configuration loading and state initialization.
|
overridevirtual |
Gets the component type.
Returns TS_VREngageStateRepository as the component type identifier.
|
overridevirtual |
Initializes state from parameters.
Sets up the initial state values based on the parameters defined in the component's descriptor.
|
static |
Component factory function.
| name | The name for the new repository |
| vrfObject | The local object the repository will belong to |
| parentRegistry | Parent registry for reader/writer functionality |
Static factory function used for component creation through the component registry.
| const DtVreRlParameters * RlCgfVrf::DtVreRlStateRepository::getParameters | ( | ) | const |
Gets the rotary-wing parameters.
Returns the parameters used to configure this rotary-wing aircraft.
|
overridevirtual |
Places the aircraft at a specified location and heading.
| location | The position vector where the aircraft should be placed |
| heading | The heading (in radians) the aircraft should face |
| clampToGroundFlag | If true, adjusts the aircraft altitude to ground level |
| dataAvailable | Optional output parameter indicating if terrain data is available |
| requireAllData | If true, requires complete terrain data to be available |
Moves the aircraft to the specified location and orientation, optionally adjusting its altitude to maintain proper ground clearance.
|
friend |
Friend class that needs direct access to state repository internals.
References Controller.
Referenced by Controller.