VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtFixedWingJoyFlightController Class Reference

DtFixedWingJoyFlightController is a controller used to enable joystick control of a fixed wing aircraft. More...

Inheritance diagram for DtFixedWingJoyFlightController:
Inheritance graph
[legend]

List of all members.

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 DtSimComponentcreator (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
DtFixedWingJoyFlightControlleroperator= (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

Detailed Description

DtFixedWingJoyFlightController is a controller used to enable joystick control of a fixed wing aircraft.

Uses Descriptor Type: DtFixedWingJoyDeviceControllerDescriptor


Constructor & Destructor Documentation

DtFixedWingJoyFlightController::DtFixedWingJoyFlightController ( const DtString name,
DtVrfObject owner,
DtSimManager simManager,
DtComponentDescriptor desc = 0,
DtReaderWriterRegistry parentRegistry = 0 
)

(const DtString&,DtVrfObject*,DtSimManager*,

Parameters:
nameReader writer name of this component.
ownerThe DtVrfObject that owns this component
simManagerThe simulation manager (provides access to terrain, message interface, simulation clock).
descThe component descriptor used to initialize this component.
parentRegistryPointer to the parent reader writer registry (the containing object that reads/writes this object).
(const DtString&,DtVrfObject*,DtSimManager*, DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)

destructor

default constructor - should not be called.

copy constructor


Member Function Documentation

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.

Returns:
DtFixedWingJoyFlightControllerType

Reimplemented from DtFixedWingPilotController.

static void DtFixedWingJoyFlightController::setJoyDeviceSwitchCallbacks ( DtSimMessage msg,
void *  usrData 
) [static]
static DtSimComponent* DtFixedWingJoyFlightController::creator ( const DtString name,
DtVrfObject owner,
DtSimManager simManager,
DtComponentDescriptor desc = 0,
DtReaderWriterRegistry parentRegistry = 0 
) [static]

(const DtString&,DtVrfObject*,DtSimManager*,

Parameters:
nameReader writer name of this component.
ownerThe DtVrfObject that owns this component
simManagerThe simulation manager (provides access to terrain, message interface, simulation clock).
descThe component descriptor used to initialize this component.
parentRegistryPointer to the parent reader writer registry (the containing object that reads/writes this object).
(const DtString&,DtVrfObject*,DtSimManager*, DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)

Returns:
New instance of this class.

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.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)