![]() |
VR-Forces 4.0.4 Class Documentation
|
DtFixedWingEntitySetController is a controller that handles DtSetDataRequest messages for fixed-wing entities. More...

Public Member Functions | |
| DtFixedWingEntitySetController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
| virtual | ~DtFixedWingEntitySetController () |
| destructor | |
| virtual DtString | type () const |
| Returns a string identifies the class type of component. | |
| virtual void | processSetAltitude (DtSimMessage *msg) |
| Override these to make sure we process messages properly for FWEs. | |
| virtual void | setLocation (DtVector geocentricLocation) |
| If the entity's state repository is a DtRotaryWingEntityStateRepository, geocentricLocation is converted to geodetic coordinates to determine the altitude. | |
| virtual void | processSetSpeed (DtSimMessage *msg) |
| If the plane is on the ground, setOrderedGroundSpeed is called, otherwise setOrderedSpeed is called. | |
Static Public Member Functions | |
| static DtSimComponent * | creator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
Protected Member Functions | |
| DtFixedWingEntitySetController () | |
| default constructor; should not be called. | |
| DtFixedWingEntitySetController (const DtFixedWingEntitySetController &orig) | |
| copy constructor | |
| const DtFixedWingEntitySetController & | operator= (const DtFixedWingEntitySetController &orig) |
| assignment operator | |
DtFixedWingEntitySetController is a controller that handles DtSetDataRequest messages for fixed-wing entities.
End User Description: DtFixedWingEntitySetController registers for all the set messages that affect a fixed wing entity and set the state repository as appropriate. In addition, it registers for and processes set altitude, set location and set speed messages.
Uses Descriptor Type: DtComponentDescriptor
| DtFixedWingEntitySetController::DtFixedWingEntitySetController | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual DtFixedWingEntitySetController::~DtFixedWingEntitySetController | ( | ) | [virtual] |
destructor
| DtFixedWingEntitySetController::DtFixedWingEntitySetController | ( | ) | [protected] |
default constructor; should not be called.
Here because the compiler will generate an unprotected one otherwise.
| DtFixedWingEntitySetController::DtFixedWingEntitySetController | ( | const DtFixedWingEntitySetController & | orig | ) | [protected] |
copy constructor
| virtual DtString DtFixedWingEntitySetController::type | ( | ) | const [virtual] |
Returns a string identifies the class type of component.
Type values are defined in compTypes.h. DtSimComponent creation functions are registered with the DtSimComponentFactory using the type values as the key.
Reimplemented from DtAirVehicleSetController.
| virtual void DtFixedWingEntitySetController::processSetAltitude | ( | DtSimMessage * | msg | ) | [virtual] |
Override these to make sure we process messages properly for FWEs.
Reimplemented from DtAirVehicleSetController.
| virtual void DtFixedWingEntitySetController::setLocation | ( | DtVector | geocentricLocation | ) | [virtual] |
If the entity's state repository is a DtRotaryWingEntityStateRepository, geocentricLocation is converted to geodetic coordinates to determine the altitude.
If the altitude is greater than the terrainHeightBuffer in the state repository, place() is called on the SR, otherwise land is called.
Reimplemented from DtAirVehicleSetController.
| virtual void DtFixedWingEntitySetController::processSetSpeed | ( | DtSimMessage * | msg | ) | [virtual] |
If the plane is on the ground, setOrderedGroundSpeed is called, otherwise setOrderedSpeed is called.
Reimplemented from DtLocalEntitySetController.
| static DtSimComponent* DtFixedWingEntitySetController::creator | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | [static] |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
Reimplemented from DtAirVehicleSetController.
Reimplemented in vrfAddSetExample::MyFixedWingEntitySetController.
| const DtFixedWingEntitySetController& DtFixedWingEntitySetController::operator= | ( | const DtFixedWingEntitySetController & | orig | ) | [protected] |
assignment operator