|
VR-Engage
2.2
|
This class maintains the state information for fixed-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 <vreFwlStateRepository.h>
Public Member Functions | |
| DtVreFwlStateRepository (DtLocalObject *vrfObject, const DtString &name, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtVreFwlStateRepository () override |
| virtual bool | init () override |
| virtual DtString | type () const override |
| virtual void | initializeFromParameters () override |
| const DtVreFwlParameters * | getFWParameters () 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 | |
| DtVreFwlStateRepository (const DtVreFwlStateRepository &orig) | |
| const DtVreFwlStateRepository & | operator= (const DtVreFwlStateRepository &orig) |
Friends | |
| class | Controller |
|
private |
Copy constructor (not implemented)
| orig | The source object |
References DtVreFwlStateRepository().
Referenced by DtVreFwlStateRepository(), and operator=().
| FwlCgfVrf::DtVreFwlStateRepository::DtVreFwlStateRepository | ( | 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 fixed-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 DtVreFwlStateRepository().
|
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 DtVreFwlParameters * FwlCgfVrf::DtVreFwlStateRepository::getFWParameters | ( | ) | const |
Gets the fixed-wing parameters.
Returns the parameters used to configure this fixed-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.