![]() |
VR-Forces 4.0.4 Class Documentation
|
DtGroundJoyTurretController is a controller used to enable joystick control of a turret. More...

Public Member Functions | |
| DtGroundJoyTurretController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc, DtReaderWriterRegistry *parentRegistry=0) | |
| constructor | |
| virtual | ~DtGroundJoyTurretController () |
| destructor | |
| virtual void | tick () |
| Calculate new control values. | |
| virtual DtString | type () const |
| Returns a string identifies the class type of component. | |
| virtual void | setComponentDescriptor (DtComponentDescriptor *descriptor) |
| The component descriptor specified in the order of battle file or parameter file that was used to create this component. | |
| virtual void | processSetJoyDeviceSwitch (DtSimMessage *msg) |
| virtual void | calcAndSetPortValues (double dT) |
| virtual bool | joystickEnabled () const |
| virtual void | setTurn (DtReal turn) |
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*, | |
Private Member Functions | |
| 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. | |
| DtGroundJoyTurretController () | |
| default constructor; not implemented | |
| DtGroundJoyTurretController & | operator= (const DtGroundJoyTurretController &orig) |
| assignment operator; not implemented | |
| DtGroundJoyTurretController (const DtGroundJoyTurretController &orig) | |
| copy constructor; not implemented | |
Private Attributes | |
| const DtTurretJoyDeviceControllerDescriptor * | myTurretJoyDeviceDescriptor |
| DtJoyDevice * | myJoyDevice |
| bool | myInitialized |
| DtReal | myTurning |
| bool | myJoystickEnabled |
DtGroundJoyTurretController is a controller used to enable joystick control of a turret.
Uses Descriptor Type: DtTurretJoyDeviceControllerDescriptor
| DtGroundJoyTurretController::DtGroundJoyTurretController | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc, | ||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
constructor
| virtual DtGroundJoyTurretController::~DtGroundJoyTurretController | ( | ) | [virtual] |
destructor
| DtGroundJoyTurretController::DtGroundJoyTurretController | ( | ) | [private] |
default constructor; not implemented
| DtGroundJoyTurretController::DtGroundJoyTurretController | ( | const DtGroundJoyTurretController & | orig | ) | [private] |
copy constructor; not implemented
| virtual void DtGroundJoyTurretController::tick | ( | ) | [virtual] |
Calculate new control values.
Reimplemented from DtTurretSlewController.
| virtual DtString DtGroundJoyTurretController::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.
Implements DtTurretSlewController.
| virtual void DtGroundJoyTurretController::setComponentDescriptor | ( | DtComponentDescriptor * | componentDescriptor | ) | [virtual] |
The component descriptor specified in the order of battle file or parameter file that was used to create this component.
It may be derived from and hold component-specific parameter information.
Reimplemented from DtSimComponent.
| static void DtGroundJoyTurretController::setJoyDeviceSwitchCallbacks | ( | DtSimMessage * | msg, |
| void * | usrData | ||
| ) | [static] |
| virtual void DtGroundJoyTurretController::processSetJoyDeviceSwitch | ( | DtSimMessage * | msg | ) | [virtual] |
| virtual void DtGroundJoyTurretController::calcAndSetPortValues | ( | double | dT | ) | [virtual] |
| virtual bool DtGroundJoyTurretController::joystickEnabled | ( | ) | const [virtual] |
| static DtSimComponent* DtGroundJoyTurretController::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). |
| virtual void DtGroundJoyTurretController::setTurn | ( | DtReal | turn | ) | [virtual] |
| virtual void DtGroundJoyTurretController::initializeJoyDevice | ( | ) | [private, virtual] |
Obtain the joyDevice and initialize it.
| virtual void DtGroundJoyTurretController::setRadio | ( | DtSimRadio * | radio | ) | [private, virtual] |
Overrides this so it can register its interest in the set commands.
Reimplemented from DtControllerComponent.
| DtGroundJoyTurretController& DtGroundJoyTurretController::operator= | ( | const DtGroundJoyTurretController & | orig | ) | [private] |
assignment operator; not implemented
const DtTurretJoyDeviceControllerDescriptor* DtGroundJoyTurretController::myTurretJoyDeviceDescriptor [private] |
DtJoyDevice* DtGroundJoyTurretController::myJoyDevice [private] |
DtReal DtGroundJoyTurretController::myTurning [private] |