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

DtFlyAlongTask represents a Fly Along Route task for an entity to perform. More...

Inheritance diagram for DtFlyAlongTask:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtFlyAlongTask ()
 default constructor
 DtFlyAlongTask (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=0)
 constructor If you have a task 'put' itself, the writeName will preface the task.
 DtFlyAlongTask (const DtString &writeName, const DtFlyAlongTask &orig, DtReaderWriterRegistry *parentRegistry=0)
 copy constructor
const DtFlyAlongTaskoperator= (const DtFlyAlongTask &orig)
 assignment operator
virtual ~DtFlyAlongTask ()
virtual int type () const
 Returns "move-along".
virtual DtSimTaskclone (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const
 Creates a copy of this move-along task.
virtual DtString stringRep () const
 Get a readable string representation of this task.
virtual const DtStringrouteName () const
 The string name of the route to be followed.
virtual void setRouteName (const DtString &rteName)
virtual void setTraversalDirection (DtIteratorDirection traversalDirection)
 [DtIteratorDirection::DtForward, DtIteratorDirection::DtReverse] By default, traversalDirection is false.
virtual DtIteratorDirection traversalDirection () const
virtual void setStartAtClosestPoint (bool startAtClosestPoint)
 Flag indicating whether traversal should start at the beginning of route or at the closest point (which may be somewhere along the route).
virtual bool startAtClosestPoint () const
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 void setUseFixedPitch (bool)
virtual bool useFixedPitch () const
virtual bool setToNet ()
 Fills in the network buffer (created by base class simTask) with the task contents.

Static Public Member Functions

static DtSimTaskcreator ()

Protected Attributes

DtRwString myRouteName
DtRwInt myTraversalDirection
DtRwBoolean myStartAtClosestPoint
DtRwBoolean myUseFixedPitch

Detailed Description

DtFlyAlongTask represents a Fly Along Route task for an entity to perform.

It inherits read/writableness from SimTask, and includes the control point to move to. The string name of the route is specified as a parameter of the task. The route name refers to a DtRoute object. A route is a control object that contains an ordered list of vertices that represent a path for the entity to follow. Entities that implement this task move to the first vertex, then move successively from one vertex to the next. The task is considered complete when the entity reaches the last vertex in the route.

Only fixed wing pilots implement this task

task-type: DtFlyAlongType

parameters: route name - The string name of the route to be followed. To find the DtRoute object to which the name refers look up the name in the Object Manager.

If myUseFixedPitch is true, the controller will will using fixed pitch rather than the normal move along behavior


Constructor & Destructor Documentation

default constructor

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

constructor If you have a task 'put' itself, the writeName will preface the task.

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

copy constructor

virtual DtFlyAlongTask::~DtFlyAlongTask ( ) [virtual]

Member Function Documentation

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

assignment operator

virtual int DtFlyAlongTask::type ( ) const [virtual]

Returns "move-along".

Implements DtSimTask.

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

Creates a copy of this move-along task.

Implements DtSimTask.

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

Get a readable string representation of this task.

Implements DtSimTask.

virtual const DtString& DtFlyAlongTask::routeName ( ) const [virtual]

The string name of the route to be followed.

virtual void DtFlyAlongTask::setRouteName ( const DtString rteName) [virtual]
virtual void DtFlyAlongTask::setTraversalDirection ( DtIteratorDirection  traversalDirection) [virtual]

[DtIteratorDirection::DtForward, DtIteratorDirection::DtReverse] By default, traversalDirection is false.

virtual void DtFlyAlongTask::setStartAtClosestPoint ( bool  startAtClosestPoint) [virtual]

Flag indicating whether traversal should start at the beginning of route or at the closest point (which may be somewhere along the route).

Beginning is either 1st or last vertex, depending on traversal direction. By default, startAtClosestPoint is false.

virtual bool DtFlyAlongTask::startAtClosestPoint ( ) const [virtual]
virtual int DtFlyAlongTask::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 DtFlyAlongTask::setFromNet ( const char *  contentBuffer,
unsigned  contentSize 
) [virtual]

Fills in the task from the network buffer.

Reimplemented from DtSimTask.

virtual void DtFlyAlongTask::setUseFixedPitch ( bool  ) [virtual]
virtual bool DtFlyAlongTask::useFixedPitch ( ) const [virtual]
virtual bool DtFlyAlongTask::setToNet ( ) [virtual]

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

Reimplemented from DtSimTask.

static DtSimTask* DtFlyAlongTask::creator ( ) [static]

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)