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

DtHumanJoystickMovementController is a controller that enables joystick control of a human entity. More...

Inheritance diagram for DtHumanJoystickMovementController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtHumanJoystickMovementController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
virtual ~DtHumanJoystickMovementController ()
 destructor
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
virtual bool createPortGroups ()
 Creates and initializes port groups.

Static Public Member Functions

static void setJoyDeviceSwitchCallbacks (DtSimMessage *msg, void *usrData)
 Forwards a DtSetJoyDeviceSwitchRequest message to the joy controller pointed to by usrData.
static DtSimComponentcreator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,

Protected 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.

Protected Attributes

DtHumanStateRepositorymyHumanStateRepository
DtJoyDevice * myJoyDevice
bool myInitialized
int myCurrentGear
bool myCollisionDetected
bool myInternalCollisionDetected
DtHumanJoystickMovementControllerDescriptormyJoystickControllerDescriptor
bool myJoystickEnabled
Ports and Port Groups
DtHumanMovementControlOutputPortGroupmyHumanMovementControlOutputPortGroup
 Output Group Name: movement-control
.

Private Member Functions

 DtHumanJoystickMovementController ()
 default constructor; not implemented.
 DtHumanJoystickMovementController (const DtHumanJoystickMovementController &orig)
 copy constructor; not implemented.
DtHumanJoystickMovementControlleroperator= (const DtHumanJoystickMovementController &orig)
 assignment operator; not implemented.

Detailed Description

DtHumanJoystickMovementController is a controller that enables joystick control of a human entity.

Uses Descriptor Type: DtHumanJoystickMovementControllerDescriptor


Constructor & Destructor Documentation

(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; not implemented.

copy constructor; not implemented.


Member Function Documentation

virtual void DtHumanJoystickMovementController::tick ( ) [virtual]

Calculate new control values.

Reimplemented from DtSimComponent.

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:
DtHumanJoystickMovementControllerType

Reimplemented from DtControllerComponent.

static void DtHumanJoystickMovementController::setJoyDeviceSwitchCallbacks ( DtSimMessage msg,
void *  usrData 
) [static]

Forwards a DtSetJoyDeviceSwitchRequest message to the joy controller pointed to by usrData.

Creates and initializes port groups.

Reimplemented from DtSimComponent.

static DtSimComponent* DtHumanJoystickMovementController::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.
DtHumanJoystickMovementController& DtHumanJoystickMovementController::operator= ( const DtHumanJoystickMovementController orig) [private]

assignment operator; not implemented.

virtual void DtHumanJoystickMovementController::initializeJoyDevice ( ) [protected, virtual]

Obtain the joyDevice and initialize it.

virtual void DtHumanJoystickMovementController::setRadio ( DtSimRadio radio) [protected, virtual]

Overrides this so it can register its interest in the set commands.

Reimplemented from DtControllerComponent.


Member Data Documentation

Output Group Name: movement-control
.


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)