![]() |
VR-Forces Developer's Guide
|

Public Types | |
| enum | DtRotaryWingLandingControllerState { StateStartingLandingTask, StateMovingToLandingLocation, StateSettling, StateLanding } |
Public Types inherited from DtReaderWriter | |
| typedef std::vector < DtSymbolString > | aliasContainer |
| typedef std::vector < DtSymbolString >::iterator | aliasIter |
| typedef std::vector < DtSymbolString > ::const_iterator | aliasConstIter |
| typedef std::vector< DtFilename > | SearchPaths |
| typedef std::pair < DtSymbolString, DtString > | DtVariableNameType |
| typedef DtReaderWriterFactory *(* | DtReaderWriterFactoryCreatorFcn )() |
Public Member Functions | |
| DtRotaryWingFlightPSR (DtLocalObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| DtRotaryWingFlightPSR (const DtRotaryWingFlightPSR &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtRotaryWingFlightPSR () override |
| DtRotaryWingFlightPSR & | operator= (const DtRotaryWingFlightPSR &orig) |
| virtual DtVrfProcessStateRepository * | clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const override |
| virtual DtString | type () const override |
| virtual void | setControlObject (const DtUUID &) |
| virtual DtSimObjectReference | controlObject () const |
| virtual void | setRoute (const DtUUID &) |
| virtual DtSimObjectReference | route () const |
| virtual void | setRouteVertices (const DtLocalVectorIterator &routeIterator, bool useCurrentVertex=false) |
| virtual const DtLocalVertexList & | routeVertices () const |
| virtual void | emptyRouteVertices () |
| virtual DtLocalVectorIterator * | routeState () const |
| virtual void | setWasMovingToward (bool flag) |
| virtual bool | wasMovingToward () const |
| virtual void | setStartingPoint (const DtVector &startingPoint) |
| virtual const DtVector & | startingPoint () const |
| virtual void | setFinalHeading (const double heading) |
| virtual double | finalHeading () const |
| virtual void | setDoContinueMoving (const bool go) |
| virtual bool | doContinueMoving () const |
| virtual void | setReverseFlag (bool flag) |
| virtual bool | reverseFlag () const |
| virtual void | setHeadingToTurnTo (double) |
| virtual double | headingToTurnTo () const |
| virtual void | setWorldAimingPoint (const DtVector &pnt) |
| virtual const DtVector & | worldAimingPoint () const |
| virtual const DtVector & | localAimingPoint () const |
| virtual void | setFirstWaypoint (const DtUUID &) |
| virtual DtSimObjectReference | firstWaypoint () const |
| virtual void | setSecondWaypoint (const DtUUID &) |
| virtual DtSimObjectReference | secondWaypoint () const |
| virtual void | setEntityToFollow (const DtUUID &) |
| virtual DtSimObjectReference | entityToFollow () const |
| virtual void | setFollowOffset (const DtVector &offset) |
| virtual const DtVector & | followOffset () const |
| virtual void | setMovingToAltitude (bool movingToAlt) |
| virtual bool | movingToAltitude () const |
| virtual void | setMoveToAltitudeValue (double altitude) |
| virtual double | moveToAltitudeValue () const |
| virtual void | setOrbitRadius (const double r) |
| virtual double | orbitRadius () const |
| virtual void | putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtReaderWriter::appPath()) override |
| virtual void | setLandingState (DtRotaryWingLandingControllerState state) |
| virtual DtRotaryWingLandingControllerState | landingState () const |
| virtual bool | isSpinningUp () const |
| virtual void | setIsSpinningUp (bool b) |
| virtual double | spinupCompleteTime () const |
| virtual void | setSpinupCompleteTime (double t) |
Public Member Functions inherited from DtVrfProcessStateRepository | |
| DtVrfProcessStateRepository (DtLocalObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| DtVrfProcessStateRepository (const DtVrfProcessStateRepository &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| const DtVrfProcessStateRepository & | operator= (const DtVrfProcessStateRepository &orig) |
| virtual | ~DtVrfProcessStateRepository () override |
| virtual bool | init () |
| virtual bool | loadedFromMTL () const |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override |
Public Member Functions inherited from DtReaderWriter | |
| DtReaderWriter () | |
| DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtReaderWriter & | operator= (const DtReaderWriter &orig) |
| bool | operator== (const DtReaderWriter &) const |
| bool | operator!= (const DtReaderWriter &rhs) const |
| virtual | ~DtReaderWriter () |
| virtual void | postPutSelf () |
| virtual void | prePutSelf () |
| virtual void | preGetSelf () |
| virtual void | writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| virtual DtSymbolString | name () const |
| virtual void | addAlias (const DtSymbolString &alias) |
| virtual void | addAlias (const DtString &alias) |
| virtual bool | hasAlias (const DtSymbolString &alias) |
| virtual const aliasContainer & | aliases () const |
| virtual void | setReadonly (bool flag) |
| bool | isReadonly () const |
| virtual void | reset () |
| virtual int | alignment () const |
| virtual bool | variableIsBound () const |
| virtual void | unbindVariable () |
| virtual void | setName (const DtString &) |
| virtual const char * | readerWriterType () const |
| virtual const char * | xmlType () const |
| virtual DtString | prettyPrint () const |
| std::string | debugText () const |
| virtual void | bindVariables (DtVariableBindingsList variableBindings) |
| virtual std::list < DtVariableNameType > | unboundVariables () const |
| bool | invalid () const |
| virtual bool | hasChild (const DtReaderWriter *p) const |
| virtual bool | hasVariableReference () const |
| virtual void | bindLocalVariables (const DtVariableBindingsList &variableBindings) |
| virtual void | recordUpdateTime () const |
| virtual bool | changedSinceLastChecked () |
| virtual bool | peekChangedSinceLastChecked () const |
| virtual void | putData (std::string &fp, int indentLevel=0) |
| virtual DtlObjPtr | getData (DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) |
| virtual void | setValueSpecified (bool specified, bool recurse=false) |
| virtual bool | valueSpecified () const |
| virtual bool | isVariableReference () const |
| virtual void | setIsVariableReference (bool value) |
| virtual void | clearAllVariableReferenceFlags () |
| virtual DtSymbolString | variableName () const |
| virtual void | setVariableName (const DtSymbolString variableName) |
| virtual const DtReaderWriter * | defaultRWValue () const |
| virtual DtReaderWriter * | defaultRWValue () |
| virtual void | setDefaultRWValue (DtReaderWriter *) |
| virtual bool | checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| const DtReaderWriterRegistry & | registry () const |
| DtReaderWriterRegistry & | registry () |
| virtual DtPropertyInterface * | property () |
| virtual const DtPropertyInterface * | property () const |
| virtual DtString | toXml () const |
| virtual DtRwVariableBindings * | generateVariableBindings () const |
| virtual bool | toXml (const DtFilename &) const |
| virtual bool | fromXml (const DtString &) |
| virtual bool | fromXmlFile (const DtFilename &) |
| virtual void | putSelf (DtEnvironmentSP, DtEnvValueSP parent) const |
| virtual void | putData (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | getSelf (const DtEnvironmentSP, const DtEnvValueSP root, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | getData (const DtEnvironmentSP, const DtEnvValueSP, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings) |
| virtual void | getVariableReference (DtEnvironmentSP, DtEnvValueSP value) |
Protected Member Functions | |
| virtual void | postGetSelf () override |
Protected Member Functions inherited from DtVrfProcessStateRepository | |
| DtVrfProcessStateRepository () | |
| const DtSimObject * | vrfObject () const |
Protected Member Functions inherited from DtReaderWriter | |
| virtual void | bindToRwAsVariable (const DtReaderWriter *rw) |
Additional Inherited Members | |
Static Protected Attributes inherited from DtVrfProcessStateRepository | |
| static DtVrfProcessStateRepositoryFactory * | theFactory |
Static Protected Attributes inherited from DtReaderWriter | |
| static DtString | theUnspecifiedValue |
| static DtGetSelfCallbackInfo | thePostGetSelfCallback |
| static DtPutSelfCallbackInfo | thePrePutSelfCallback |
| static const DtVariableBindingsList | theEmptyVariableBindingsList |
| static bool | theCreatorFcnSet |
| static DtReaderWriterFactory * | theFactory |
| static DtReaderWriterFactoryCreatorFcn | theFactoryCreatorFcn |
| static bool | thePutIndent |
| static DtOutputStream * | theOutputStream |
State for the DtRotaryWingLandingController.
| DtRotaryWingFlightPSR::DtRotaryWingFlightPSR | ( | DtLocalObject * | 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
|
overridevirtual |
destructor
| DtRotaryWingFlightPSR& DtRotaryWingFlightPSR::operator= | ( | const DtRotaryWingFlightPSR & | orig | ) |
assignment operator
|
overridevirtual |
returns a newly created copy of this object
Implements DtVrfProcessStateRepository.
|
overridevirtual |
Returns the string type of the repository, as defined in psrTypes.h. (DtVrfRotaryWingFlightProcessStateRepositoryType).
Implements DtVrfProcessStateRepository.
|
virtual |
Get/set the waypoint to move to. For the orbit-entity task, this is the orbit center. Was: setControlObjecName.
|
virtual |
Was: controlObjectName.
|
virtual |
Get/set the route to follow. Was: setRouteName.
|
virtual |
Was: routeName.
|
virtual |
Set/get route vertices (local coordinates). Once route is set, can access routeState() to query and set current position along route. If useCurrentVertex is true, use the current vertex whether or not the value is specified.
|
virtual |
|
virtual |
Empty route vertices.
|
virtual |
Get route state (an iterator over the route used to keep track of which point along the route we're heading toward).
|
virtual |
Get/set the flag indicating whether or not the last tick was moving toward the current waypoint.
|
virtual |
|
virtual |
Get/set the starting point of the current segment of a route we're moving along.
|
virtual |
|
virtual |
Get/set for the final heading at a (destination) point. When the entity is moving to and stopping at a point, this records its heading when it gets there, giving it a reference heading to maintain.
|
virtual |
|
virtual |
Get/set the flag that indicates the entity should continue moving (i.e. at ordered speed) at the goal point.
|
virtual |
|
virtual |
Get/set the reverse patrol flag (along a route or between points).
|
virtual |
|
virtual |
If tasked to turn to a heading, the heading to turn to.
|
virtual |
|
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 |
|
virtual |
If control point is set use that's location else use local aiming point.
|
virtual |
Get/set the object name of the first waypoint we're patrolling between.
|
virtual |
|
virtual |
Get/set the object name of the second waypoint we're patrolling between.
|
virtual |
|
virtual |
Get/set the object name of the entity to follow.
|
virtual |
|
virtual |
Get/set the following offset (in body coordinates of the entity to follow, in meters).
|
virtual |
|
virtual |
Should be true when processing a move to altitude task.
|
virtual |
Should be true when processing a move to altitude task.
|
virtual |
Set the requested altitude from the move to altitude task.
|
virtual |
The requested altitude from the move to altitude task.
|
virtual |
The radius at which to circle for an orbit task.
|
virtual |
|
virtual |
Accessor/Mutator for myLandingState.
|
virtual |
Accessor/Mutator for myLandingState.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
overridevirtual |
Override to set myCurrentVertex from route state before writing.
Reimplemented from DtReaderWriter.
|
overrideprotectedvirtual |
Called after either version of getSelf (mtl or environment). Default is no-op.
Reimplemented from DtReaderWriter.
|
static |
Returns a newly created instance of this class.
|
protected |
Moved here from DtRotaryWingMoveToControllerComponent (rotWngMvToCtl.h).
If tasked() is true, this is the control object we're moving to.
|
protected |
Moved here from DtRotaryWingMoveAlongControllerComponent (rotaryWingFlightPSR.h).
If tasked() is true, this is the control object we're moving along.
|
protected |
Route state used to get info about the current route we're trying to follow (e.g. which vertex to move toward).
|
protected |
my copy of the current route
|
protected |
Read/write variables to capture route state.
|
protected |
A flag indicating whether or not the last tick was moving toward the current waypoint.
|
protected |
A vector indicating the starting point of the current segment.
|
protected |
The final heading at a destination point.
|
protected |
A flag to indicate if the entity should continue moving when it reaches its goal.
|
protected |
Moved here from DtRotaryWingPatrolRouteController (rotWingPtrlRt.h).
|
protected |
Moved here from DtRotaryWingPatrolBetweenController (rotWngPtlBtwn.h).
|
protected |
|
protected |
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.
|
protected |
Following offset vector (in body coordinates of the entity to follow, in meters).
|
protected |
World point for move to location tasks.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
True if the RW is currently in the processing of spinning up.
|
protected |
If myIsSpinningUp is true, this is the simulation time at which spinup is complete.