VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
DtRotaryWingFlightPSR Class Reference
Inheritance diagram for DtRotaryWingFlightPSR:
Inheritance graph
[legend]

List of all members.

Public Types

enum  DtRotaryWingLandingControllerState { StateStartingLandingTask, StateMovingToLandingLocation, StateLanding }
 State for the DtRotaryWingLandingController. More...

Public Member Functions

 DtRotaryWingFlightPSR (DtVrfObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
 constructor
 DtRotaryWingFlightPSR (const DtRotaryWingFlightPSR &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
 copy constructor
virtual ~DtRotaryWingFlightPSR ()
 destructor
DtRotaryWingFlightPSRoperator= (const DtRotaryWingFlightPSR &orig)
 assignment operator
virtual
DtVrfProcessStateRepository
clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const
 returns a newly created copy of this object
virtual DtString type () const
 Returns the string type of the repository, as defined in procSRTypes.h.
virtual void setControlObjectName (const DtString &objectName)
 Get/set the name of the waypoint to move to.
virtual const DtStringcontrolObjectName () const
virtual void setRouteName (const DtString &routeName)
 Get/set the name of the route to follow.
virtual const DtStringrouteName () const
virtual void setRouteVertices (const DtLocalVectorIterator &routeIterator)
 Set/get route vertices (local coordinates).
virtual const DtLocalVertexListrouteVertices () const
virtual void emptyRouteVertices ()
 Empty route vertices.
virtual DtLocalVectorIteratorrouteState () const
 Get route state (an iterator over the route used to keep track of which point along the route we're heading toward).
virtual void setWasMovingToward (bool flag)
 Get/set the flag indicating whether or not the last tick was moving.
virtual bool wasMovingToward () const
virtual void setStartingPoint (const DtVector &startingPoint)
 Get/set the starting point of the current segment of a route we're moving along.
virtual const DtVectorstartingPoint () const
virtual void setReverseFlag (bool flag)
 Get/set the reverse patrol flag (along a route or between points).
virtual bool reverseFlag () const
virtual void setWorldAimingPoint (const DtVector &pnt)
 Get/set the point to which this entity is moving towards for a move to location task.
virtual const DtVectorworldAimingPoint () const
virtual void setFirstWaypoint (const DtString &objectName)
 Get/set the object name of the first waypoint we're patrolling between.
virtual const DtStringfirstWaypoint () const
virtual void setSecondWaypoint (const DtString &objectName)
 Get/set the object name of the second waypoint we're patrolling between.
virtual const DtStringsecondWaypoint () const
virtual void setEntityToFollow (const DtString &objectName)
 Get/set the object name of the entity to follow.
virtual const DtStringentityToFollow () const
virtual void setFollowOffset (const DtVector &offset)
 Get/set the following offset (in body coordinates of the entity to follow, in meters).
virtual const DtVectorfollowOffset () const
virtual void setMovingToAltitude (bool movingToAlt)
 Should be true when processing a move to altitude task.
virtual bool movingToAltitude () const
 Should be true when processing a move to altitude task.
virtual void setMoveToAltitudeValue (double altitude)
 Set the requested altitude from the move to altitude task.
virtual double moveToAltitudeValue () const
 The requested altitude from the move to altitude task.
virtual void putSelf (FILE *fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtReaderWriter::appPath())
 Override to set myCurrentVertex from route state before writing.
virtual void setLandingState (DtRotaryWingLandingControllerState state)
 Accessor/Mutator for myLandingState.
virtual
DtRotaryWingLandingControllerState 
landingState () const
 Accessor/Mutator for myLandingState.

Static Public Member Functions

static
DtVrfProcessStateRepository
creator (const DtString &rwName, DtVrfObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
 Returns a newly created instance of this class.

Protected Attributes

DtRwString myControlObjectName
 Moved here from DtRotaryWingMoveToControllerComponent (rotWngMvToCtl.h).
DtRwString myRouteName
 Moved here from DtRotaryWingMoveAlongControllerComponent (rotaryWingFlightPSR.h).
DtLocalVectorIteratormyRouteState
 Route state used to get info about the current route we're trying to follow (e.g.
DtLocalVertexList myVertices
 my copy of the current route
DtRwInt myCurrentVertex
 Read/write variables to capture route state.
DtRwBoolean myWasMovingToward
 A flag indicating whether or not the last tick was moving toward the current waypoint.
DtRwVector myStartingPoint
 A vector indicating the starting point of the current segment.
DtRwBoolean myReverseFlag
 Moved here from DtRotaryWingPatrolRouteController (rotWingPtrlRt.h).
DtRwString myFirstWaypoint
 Moved here from DtRotaryWingPatrolBetweenController (rotWngPtlBtwn.h).
DtRwString mySecondWaypoint
DtRwString myEntityToFollow
 Set when a patrol between task is received.
DtRwVector myFollowOffsetVector
 Following offset vector (in body coordinates of the entity to follow, in meters).
DtRwVector myWorldAimingPoint
 World point for move to location tasks.
DtRwBoolean myMovingToAltitude
DtRwReal myMoveToAltitudeValue
DtRwInt myLandingState

Member Enumeration Documentation

State for the DtRotaryWingLandingController.

Enumerator:
StateStartingLandingTask 
StateMovingToLandingLocation 
StateLanding 

Constructor & Destructor Documentation

DtRotaryWingFlightPSR::DtRotaryWingFlightPSR ( DtVrfObject vrfObject,
const DtString rwName = DtString::nullString(),
DtReaderWriterRegistry parentRegistry = 0 
)

constructor

DtRotaryWingFlightPSR::DtRotaryWingFlightPSR ( const DtRotaryWingFlightPSR orig,
const DtString rwName = DtString::nullString(),
DtReaderWriterRegistry parentRegistry = 0 
)

copy constructor

destructor


Member Function Documentation

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

assignment operator

virtual DtVrfProcessStateRepository* DtRotaryWingFlightPSR::clone ( const DtString rwName = DtString::nullString(),
DtReaderWriterRegistry parentRegistry = 0 
) const [virtual]

returns a newly created copy of this object

Implements DtVrfProcessStateRepository.

virtual DtString DtRotaryWingFlightPSR::type ( ) const [virtual]

Returns the string type of the repository, as defined in procSRTypes.h.

(DtVrfRotaryWingFlightProcessStateRepositoryType).

Implements DtVrfProcessStateRepository.

virtual void DtRotaryWingFlightPSR::setControlObjectName ( const DtString objectName) [virtual]

Get/set the name of the waypoint to move to.

virtual const DtString& DtRotaryWingFlightPSR::controlObjectName ( ) const [virtual]
virtual void DtRotaryWingFlightPSR::setRouteName ( const DtString routeName) [virtual]

Get/set the name of the route to follow.

virtual const DtString& DtRotaryWingFlightPSR::routeName ( ) const [virtual]
virtual void DtRotaryWingFlightPSR::setRouteVertices ( const DtLocalVectorIterator routeIterator) [virtual]

Set/get route vertices (local coordinates).

Once route is set, can access routeState() to query and set current position along route.

virtual const DtLocalVertexList& DtRotaryWingFlightPSR::routeVertices ( ) const [virtual]
virtual void DtRotaryWingFlightPSR::emptyRouteVertices ( ) [virtual]

Empty route vertices.

Get route state (an iterator over the route used to keep track of which point along the route we're heading toward).

virtual void DtRotaryWingFlightPSR::setWasMovingToward ( bool  flag) [virtual]

Get/set the flag indicating whether or not the last tick was moving.

toward the current waypoint.

virtual bool DtRotaryWingFlightPSR::wasMovingToward ( ) const [virtual]
virtual void DtRotaryWingFlightPSR::setStartingPoint ( const DtVector startingPoint) [virtual]

Get/set the starting point of the current segment of a route we're moving along.

virtual const DtVector& DtRotaryWingFlightPSR::startingPoint ( ) const [virtual]
virtual void DtRotaryWingFlightPSR::setReverseFlag ( bool  flag) [virtual]

Get/set the reverse patrol flag (along a route or between points).

virtual bool DtRotaryWingFlightPSR::reverseFlag ( ) const [virtual]
virtual void DtRotaryWingFlightPSR::setWorldAimingPoint ( const DtVector pnt) [virtual]

Get/set the point to which this entity is moving towards for a move to location task.

This point is only valid for that task and is set in world (geocentric) coordinates

virtual const DtVector& DtRotaryWingFlightPSR::worldAimingPoint ( ) const [virtual]
virtual void DtRotaryWingFlightPSR::setFirstWaypoint ( const DtString objectName) [virtual]

Get/set the object name of the first waypoint we're patrolling between.

virtual const DtString& DtRotaryWingFlightPSR::firstWaypoint ( ) const [virtual]
virtual void DtRotaryWingFlightPSR::setSecondWaypoint ( const DtString objectName) [virtual]

Get/set the object name of the second waypoint we're patrolling between.

virtual const DtString& DtRotaryWingFlightPSR::secondWaypoint ( ) const [virtual]
virtual void DtRotaryWingFlightPSR::setEntityToFollow ( const DtString objectName) [virtual]

Get/set the object name of the entity to follow.

virtual const DtString& DtRotaryWingFlightPSR::entityToFollow ( ) const [virtual]
virtual void DtRotaryWingFlightPSR::setFollowOffset ( const DtVector offset) [virtual]

Get/set the following offset (in body coordinates of the entity to follow, in meters).

virtual const DtVector& DtRotaryWingFlightPSR::followOffset ( ) const [virtual]
virtual void DtRotaryWingFlightPSR::setMovingToAltitude ( bool  movingToAlt) [virtual]

Should be true when processing a move to altitude task.

virtual bool DtRotaryWingFlightPSR::movingToAltitude ( ) const [virtual]

Should be true when processing a move to altitude task.

virtual void DtRotaryWingFlightPSR::setMoveToAltitudeValue ( double  altitude) [virtual]

Set the requested altitude from the move to altitude task.

virtual double DtRotaryWingFlightPSR::moveToAltitudeValue ( ) const [virtual]

The requested altitude from the move to altitude task.

Accessor/Mutator for myLandingState.

Accessor/Mutator for myLandingState.

virtual void DtRotaryWingFlightPSR::putSelf ( FILE *  fp,
int  indentLevel = 0,
bool  writeUnspecified = false,
const DtFilename &  path = DtReaderWriter::appPath() 
) [virtual]

Override to set myCurrentVertex from route state before writing.

Reimplemented from DtReaderWriter.

static DtVrfProcessStateRepository* DtRotaryWingFlightPSR::creator ( const DtString rwName,
DtVrfObject vrfObject,
DtReaderWriterRegistry parentRegistry 
) [static]

Returns a newly created instance of this class.


Member Data Documentation

Moved here from DtRotaryWingMoveToControllerComponent (rotWngMvToCtl.h).

If tasked() is true, this is the name of the control object we're moving to.

Moved here from DtRotaryWingMoveAlongControllerComponent (rotaryWingFlightPSR.h).

If tasked() is true, this is the name of the control object we're moving to.

Route state used to get info about the current route we're trying to follow (e.g.

which vertex to move toward).

my copy of the current route

Read/write variables to capture route state.

A flag indicating whether or not the last tick was moving toward the current waypoint.

A vector indicating the starting point of the current segment.

Moved here from DtRotaryWingPatrolRouteController (rotWingPtrlRt.h).

Set when a patrol between task is received.

Reuse the myReverseFlag from DtRotaryWingPatrolRouteController. bool myReverseFlag; Moved here from DtRotaryWingFollowEntityController (rotWngFolwCtl.h)

Object name of an entity to follow.

Following offset vector (in body coordinates of the entity to follow, in meters).

World point for move to location tasks.


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)