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

DtFlyToLocationTask represents a moveToLocation task for an entity to perform. More...

Inheritance diagram for DtFlyToLocationTask:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtFlyToLocationTask ()
 default constructor
 DtFlyToLocationTask (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=0)
 constructor If you have a task 'put' itself, the writeName will preface the task.
 DtFlyToLocationTask (const DtString &writeName, const DtFlyToLocationTask &orig, DtReaderWriterRegistry *parentRegistry=0)
 copy DtFlyToLocationTask
const DtFlyToLocationTaskoperator= (const DtFlyToLocationTask &orig)
 assignment operator
virtual ~DtFlyToLocationTask ()
virtual int type () const
 Returns "move-towards" DtMoveToLocationTaskType.
virtual DtSimTaskclone (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const
 Creates a copy of this movetoLocation task.
virtual DtString stringRep () const
 Get a readable string representation of this task.
virtual const DtVectoraimingPoint () const
 Set/get the point to move towards.
virtual void setAimingPoint (const DtVector &point)
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

DtRwVector myAimingPoint
DtRwBoolean myUseFixedPitch

Detailed Description

DtFlyToLocationTask represents a moveToLocation task for an entity to perform.

It inherits read/writableness from SimTask, and includes the aiming point to move towards.

This task will only be recognized by fixed wings, and, if use fixed pitch is true, will fly to the location specified using fixed pitch


Constructor & Destructor Documentation

default constructor

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

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

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

Member Function Documentation

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

assignment operator

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

Returns "move-towards" DtMoveToLocationTaskType.

Implements DtSimTask.

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

Creates a copy of this movetoLocation task.

Implements DtSimTask.

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

Get a readable string representation of this task.

Implements DtSimTask.

virtual const DtVector& DtFlyToLocationTask::aimingPoint ( ) const [virtual]

Set/get the point to move towards.

Specified in geocentric coordinates.

virtual void DtFlyToLocationTask::setAimingPoint ( const DtVector point) [virtual]
virtual int DtFlyToLocationTask::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 DtFlyToLocationTask::setFromNet ( const char *  contentBuffer,
unsigned  contentSize 
) [virtual]

Fills in the task from the network buffer.

Reimplemented from DtSimTask.

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

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

Reimplemented from DtSimTask.


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)