VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
DtGroundJoyTurretController Class Reference

DtGroundJoyTurretController is a controller used to enable joystick control of a turret. More...

Inheritance diagram for DtGroundJoyTurretController:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

DtGroundJoyTurretController is a controller used to enable joystick control of a turret.

Uses Descriptor Type: DtTurretJoyDeviceControllerDescriptor


Constructor & Destructor Documentation

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

constructor

destructor

default constructor; not implemented

copy constructor; not implemented


Member Function Documentation

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.

Returns:
DtGroundJoyTurretControllerType

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::calcAndSetPortValues ( double  dT) [virtual]
static DtSimComponent* DtGroundJoyTurretController::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.
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


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)