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

DtFixedWingEntitySetController is a controller that handles DtSetDataRequest messages for fixed-wing entities. More...

Inheritance diagram for DtFixedWingEntitySetController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtFixedWingEntitySetController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
virtual ~DtFixedWingEntitySetController ()
 destructor
virtual DtString type () const
 Returns a string identifies the class type of component.
virtual void processSetAltitude (DtSimMessage *msg)
 Override these to make sure we process messages properly for FWEs.
virtual void setLocation (DtVector geocentricLocation)
 If the entity's state repository is a DtRotaryWingEntityStateRepository, geocentricLocation is converted to geodetic coordinates to determine the altitude.
virtual void processSetSpeed (DtSimMessage *msg)
 If the plane is on the ground, setOrderedGroundSpeed is called, otherwise setOrderedSpeed is called.

Static Public Member Functions

static DtSimComponentcreator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,

Protected Member Functions

 DtFixedWingEntitySetController ()
 default constructor; should not be called.
 DtFixedWingEntitySetController (const DtFixedWingEntitySetController &orig)
 copy constructor
const
DtFixedWingEntitySetController
operator= (const DtFixedWingEntitySetController &orig)
 assignment operator

Detailed Description

DtFixedWingEntitySetController is a controller that handles DtSetDataRequest messages for fixed-wing entities.

End User Description: DtFixedWingEntitySetController registers for all the set messages that affect a fixed wing entity and set the state repository as appropriate. In addition, it registers for and processes set altitude, set location and set speed messages.

Uses Descriptor Type: DtComponentDescriptor

Examples

Constructor & Destructor Documentation

DtFixedWingEntitySetController::DtFixedWingEntitySetController ( 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.

Here because the compiler will generate an unprotected one otherwise.

copy constructor


Member Function Documentation

virtual DtString DtFixedWingEntitySetController::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:
DtFixedWingEntitySetControllerType

Reimplemented from DtAirVehicleSetController.

Override these to make sure we process messages properly for FWEs.

Reimplemented from DtAirVehicleSetController.

virtual void DtFixedWingEntitySetController::setLocation ( DtVector  geocentricLocation) [virtual]

If the entity's state repository is a DtRotaryWingEntityStateRepository, geocentricLocation is converted to geodetic coordinates to determine the altitude.

If the altitude is greater than the terrainHeightBuffer in the state repository, place() is called on the SR, otherwise land is called.

Reimplemented from DtAirVehicleSetController.

If the plane is on the ground, setOrderedGroundSpeed is called, otherwise setOrderedSpeed is called.

Reimplemented from DtLocalEntitySetController.

static DtSimComponent* DtFixedWingEntitySetController::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 DtAirVehicleSetController.

Reimplemented in vrfAddSetExample::MyFixedWingEntitySetController.

const DtFixedWingEntitySetController& DtFixedWingEntitySetController::operator= ( const DtFixedWingEntitySetController orig) [protected]

assignment operator


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)