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

DtRotaryWingMoveToLocationControllerComponent; move to location behavior for a rotary-wing entity. More...

Inheritance diagram for DtRotaryWingMoveToLocationControllerComponent:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtRotaryWingMoveToLocationControllerComponent (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
virtual ~DtRotaryWingMoveToLocationControllerComponent ()
 destructor
virtual DtString type () const
 Returns a string identifies the class type of component.
virtual void processMoveToLocationTask (DtSimMessage *msg)
 Use information provided by the message to set control values.

Static Public Member Functions

static void moveToLocationCallback (DtSimMessage *msg, void *usr)
 Instances of this component will register this callback with their own 'this' pointer as user data with the msg executive requesting notification of move-to-location tasks.
static DtSimComponentcreator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,

Protected Member Functions

virtual void registerTaskMsgCallbacks ()
 Overrides this so it can register its interest in MoveTo commands.
virtual bool setupControlPoint ()
 If the working control point is not null, sets the control point to be the working control point.
virtual void getDesiredPosition (DtVector &desiredPosition)
 Returns the position the helicopter wants to move to.

Protected Attributes

DtVector myLocalAimingPoint
DtVector myWorldAimingPoint

Private Member Functions

 DtRotaryWingMoveToLocationControllerComponent ()
 Default constructor; should not be called.
 DtRotaryWingMoveToLocationControllerComponent (const DtRotaryWingMoveToLocationControllerComponent &orig)
 copy constructor; shallow; does not copy the ports.
const
DtRotaryWingMoveToLocationControllerComponent
operator= (const DtRotaryWingMoveToLocationControllerComponent &orig)
 assignment operator; see comments on copy constructor!

Detailed Description

DtRotaryWingMoveToLocationControllerComponent; move to location behavior for a rotary-wing entity.

DtRotaryWingMoveToLocationControllerComponent is a controller used to model the movement of a helicopter to a point

Uses Descriptor Type: DtRotaryWingPilotDescriptor


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; should not be called.

Here because the compiler will generate an unprotected one otherwise.

copy constructor; shallow; does not copy the ports.


Member Function Documentation

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

Reimplemented from DtRotaryWingMoveToControllerComponent.

Instances of this component will register this callback with their own 'this' pointer as user data with the msg executive requesting notification of move-to-location tasks.

Use information provided by the message to set control values.

static DtSimComponent* DtRotaryWingMoveToLocationControllerComponent::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 DtRotaryWingMoveToControllerComponent.

Overrides this so it can register its interest in MoveTo commands.

Reimplemented from DtRotaryWingMoveToControllerComponent.

If the working control point is not null, sets the control point to be the working control point.

Otherwise, attempts to look up the control point using the control point name.

Reimplemented from DtRotaryWingMoveToControllerComponent.

virtual void DtRotaryWingMoveToLocationControllerComponent::getDesiredPosition ( DtVector desiredPosition) [protected, virtual]

Returns the position the helicopter wants to move to.

Reimplemented from DtRotaryWingMoveToControllerComponent.

const DtRotaryWingMoveToLocationControllerComponent& DtRotaryWingMoveToLocationControllerComponent::operator= ( const DtRotaryWingMoveToLocationControllerComponent orig) [private]

assignment operator; see comments on copy constructor!


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)