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

A task to fly at a specified heading, maintaining whatever the current or commanded altitude and speed are. More...

Inheritance diagram for DtFlyHeadingTask:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtFlyHeadingTask ()
 default constructor
 DtFlyHeadingTask (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=0)
 constructor
 DtFlyHeadingTask (const DtString &writeName, const DtFlyHeadingTask &orig, DtReaderWriterRegistry *parentRegistry=0)
 copy constructor
const DtFlyHeadingTaskoperator= (const DtFlyHeadingTask &orig)
 assignment operator
virtual ~DtFlyHeadingTask ()
virtual int type () const
virtual DtSimTaskclone (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const
 Make a copy of this task.
virtual DtString stringRep () const
 Get a readable string representation of this task.
virtual int netRepSize () const
 Returns the size of the full network representation (control object name included) padded to an 8-byte boundary.
virtual bool setFromNet (const char *contentBuffer, unsigned contentSize)
 Fills in the task from the network buffer.
virtual bool setToNet ()
 Fills in the network buffer (created by base class simTask) with the task contents.
virtual double heading () const
 The heading to fly, specified in radians.
virtual void setHeading (double heading)
 The heading to fly, specified in radians.
virtual double turnRate () const
 Turn rate used to reach the desired heading, specified in radians / second.
virtual void setTurnRate (double rate)
 Turn rate used to reach the desired heading, specified in radians / second.

Static Public Member Functions

static DtSimTaskcreator ()
static double theDefaultTurnRate ()

Protected Attributes

DtRwReal myHeading
DtRwReal myTurnRate

Detailed Description

A task to fly at a specified heading, maintaining whatever the current or commanded altitude and speed are.


Constructor & Destructor Documentation

default constructor

DtFlyHeadingTask::DtFlyHeadingTask ( const DtString writeName,
DtReaderWriterRegistry parentRegistry = 0 
)

constructor

DtFlyHeadingTask::DtFlyHeadingTask ( const DtString writeName,
const DtFlyHeadingTask orig,
DtReaderWriterRegistry parentRegistry = 0 
)

copy constructor

virtual DtFlyHeadingTask::~DtFlyHeadingTask ( ) [virtual]

Member Function Documentation

const DtFlyHeadingTask& DtFlyHeadingTask::operator= ( const DtFlyHeadingTask orig)

assignment operator

virtual int DtFlyHeadingTask::type ( ) const [virtual]
Returns:
DtFlyHeadingTaskType

Implements DtSimTask.

virtual DtSimTask* DtFlyHeadingTask::clone ( const DtString name,
DtReaderWriterRegistry parentRegistry = 0 
) const [virtual]

Make a copy of this task.

Returns a newly allocated instance of a DtSimTask. Override this member function to return a pointer to a newly allocated instance of the derived class.

Implements DtSimTask.

virtual DtString DtFlyHeadingTask::stringRep ( ) const [virtual]

Get a readable string representation of this task.

Implements DtSimTask.

virtual double DtFlyHeadingTask::heading ( ) const [virtual]

The heading to fly, specified in radians.

virtual void DtFlyHeadingTask::setHeading ( double  heading) [virtual]

The heading to fly, specified in radians.

virtual double DtFlyHeadingTask::turnRate ( ) const [virtual]

Turn rate used to reach the desired heading, specified in radians / second.

Note:
Will always be positive.
virtual void DtFlyHeadingTask::setTurnRate ( double  rate) [virtual]

Turn rate used to reach the desired heading, specified in radians / second.

Note:
Will always be positive.
virtual int DtFlyHeadingTask::netRepSize ( ) const [virtual]

Returns the size of the full network representation (control object name included) padded to an 8-byte boundary.

Reimplemented from DtSimTask.

virtual bool DtFlyHeadingTask::setFromNet ( const char *  contentBuffer,
unsigned  contentSize 
) [virtual]

Fills in the task from the network buffer.

Reimplemented from DtSimTask.

virtual bool DtFlyHeadingTask::setToNet ( ) [virtual]

Fills in the network buffer (created by base class simTask) with the task contents.

Reimplemented from DtSimTask.

static DtSimTask* DtFlyHeadingTask::creator ( ) [static]
static double DtFlyHeadingTask::theDefaultTurnRate ( ) [static]
Returns:
The default turn rate value in radians per second. This will be the standard turn rate of 3 deg/s.

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)