![]() |
VR-Forces 4.0.4 Class Documentation
|
DtFixedWingJoyFlightController is a controller used to enable joystick control of a fixed wing aircraft. More...

Public Member Functions | |
| DtFixedWingJoyFlightController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
| virtual | ~DtFixedWingJoyFlightController () |
| destructor | |
| virtual void | setComponentDescriptor (DtComponentDescriptor *descriptor) |
| Sets myBalGunJoyDescriptor. | |
| virtual void | tick () |
| Calculate new control values. | |
| virtual DtString | type () const |
| Returns a string identifies the class type of component. | |
| virtual void | processSetJoyDeviceSwitch (DtSimMessage *msg) |
| virtual void | calcAndSetPortValues () |
| virtual bool | joystickEnabled () const |
Static Public Member Functions | |
| static void | setJoyDeviceSwitchCallbacks (DtSimMessage *msg, void *usrData) |
| static DtSimComponent * | creator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
Protected Member Functions | |
| DtFixedWingJoyFlightController () | |
| default constructor - should not be called. | |
| DtFixedWingJoyFlightController (const DtFixedWingJoyFlightController &orig) | |
| copy constructor | |
| DtFixedWingJoyFlightController & | operator= (const DtFixedWingJoyFlightController &orig) |
| assignment operator | |
| virtual void | initializeJoyDevice () |
| Obtain the joyDevice and initialize it. | |
| virtual void | setRadio (DtSimRadio *radio) |
| Overrides this so it can register its interest in the set commands. | |
Protected Attributes | |
| const DtFixedWingJoyDeviceControllerDescriptor * | myJoyDeviceControllerDescriptor |
| bool | myJoystickEnabled |
| DtJoyDevice * | myJoyDevice |
| bool | myInitialized |
DtFixedWingJoyFlightController is a controller used to enable joystick control of a fixed wing aircraft.
Uses Descriptor Type: DtFixedWingJoyDeviceControllerDescriptor
| DtFixedWingJoyFlightController::DtFixedWingJoyFlightController | ( | 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 DtFixedWingJoyFlightController::~DtFixedWingJoyFlightController | ( | ) | [virtual] |
destructor
| DtFixedWingJoyFlightController::DtFixedWingJoyFlightController | ( | ) | [protected] |
default constructor - should not be called.
| DtFixedWingJoyFlightController::DtFixedWingJoyFlightController | ( | const DtFixedWingJoyFlightController & | orig | ) | [protected] |
copy constructor
| virtual void DtFixedWingJoyFlightController::setComponentDescriptor | ( | DtComponentDescriptor * | descriptor | ) | [virtual] |
Sets myBalGunJoyDescriptor.
Reimplemented from DtSimComponent.
| virtual void DtFixedWingJoyFlightController::tick | ( | ) | [virtual] |
Calculate new control values.
Reimplemented from DtFixedWingPilotController.
| virtual DtString DtFixedWingJoyFlightController::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 DtFixedWingPilotController.
| static void DtFixedWingJoyFlightController::setJoyDeviceSwitchCallbacks | ( | DtSimMessage * | msg, |
| void * | usrData | ||
| ) | [static] |
| virtual void DtFixedWingJoyFlightController::processSetJoyDeviceSwitch | ( | DtSimMessage * | msg | ) | [virtual] |
| virtual void DtFixedWingJoyFlightController::calcAndSetPortValues | ( | ) | [virtual] |
| virtual bool DtFixedWingJoyFlightController::joystickEnabled | ( | ) | const [virtual] |
| static DtSimComponent* DtFixedWingJoyFlightController::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 DtFixedWingPilotController.
| DtFixedWingJoyFlightController& DtFixedWingJoyFlightController::operator= | ( | const DtFixedWingJoyFlightController & | orig | ) | [protected] |
assignment operator
| virtual void DtFixedWingJoyFlightController::initializeJoyDevice | ( | ) | [protected, virtual] |
Obtain the joyDevice and initialize it.
| virtual void DtFixedWingJoyFlightController::setRadio | ( | DtSimRadio * | radio | ) | [protected, virtual] |
Overrides this so it can register its interest in the set commands.
Reimplemented from DtTaskControllerComponent.
const DtFixedWingJoyDeviceControllerDescriptor* DtFixedWingJoyFlightController::myJoyDeviceControllerDescriptor [protected] |
DtJoyDevice* DtFixedWingJoyFlightController::myJoyDevice [protected] |
bool DtFixedWingJoyFlightController::myInitialized [protected] |