VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
DtHumanFollowPSR Class Reference

class DtHumanFollowPSR:

Instances of DtHumanFollowPSR are used to hold the shared/checkpointable data for an automotive system.

Inheritance diagram for DtHumanFollowPSR:
Inheritance graph
[legend]

Public Member Functions

 DtHumanFollowPSR (DtLocalObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
 
 DtHumanFollowPSR (const DtHumanFollowPSR &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
 
virtual ~DtHumanFollowPSR () override
 
DtHumanFollowPSR & operator= (const DtHumanFollowPSR &orig)
 
virtual
DtVrfProcessStateRepository * 
clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const override
 
virtual DtString type () const override
 
virtual void setEntityToFollow (const DtUUID &)
 
virtual DtSimObjectReference entityToFollow () const
 
virtual void setFollowingOffsetVector (const DtVector &offsetVector)
 
virtual const DtVector & followingOffsetVector () const
 
virtual void setControlObject (const DtUUID &)
 
virtual DtSimObjectReference controlObject () const
 
virtual void setWorldDestination (const DtVector &destination)
 
virtual const DtVector & worldDestination () const
 
virtual void setLocalDestinationVelocity (const DtVector &velocity)
 
virtual const DtVector & localDestinationVelocity () const
 
virtual void setDestinationSetTime (const double time)
 
virtual const double destinationSetTime () const
 
virtual void setDisembarkSubtaskId (const int id)
 
virtual const int disembarkSubtaskId () const
 
- 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
 
virtual void upgradeFromImport ()
 
- 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 putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
 
virtual void postPutSelf ()
 
virtual void prePutSelf ()
 
virtual void postGetSelf ()
 
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)
 

Static Public Member Functions

static
DtVrfProcessStateRepository * 
creator (const DtString &rwName, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
 
- Static Public Member Functions inherited from DtVrfProcessStateRepository
static
DtVrfProcessStateRepositoryFactory * 
factory ()
 
static void setFactory (DtVrfProcessStateRepositoryFactory *factory)
 
static void addVrfProcessStateRepositoryCreatorFcn (const DtString &type, DtVrfProcessStateRepositoryCreatorFcn fcn)
 
static
DtVrfProcessStateRepository * 
createRepository (const DtString &name, const DtString &type, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry=0)
 
- Static Public Member Functions inherited from DtReaderWriter
static void putIndent (std::string &fp, int indentLevel)
 
static const
DtVariableBindingsList & 
nullVariableReference ()
 
static void setPostGetSelfCallback (DtGetSelfCallbackFcn fcn, void *usrData)
 
static void setPrePutSelfCallback (DtPutSelfCallbackFcn fcn, void *usrData)
 
static void setPutIndent (bool)
 
static bool putIndent ()
 
static const char * theXmlType ()
 
static const DtFilename & appPath ()
 
static void setFactoryCreatorFunction (DtReaderWriterFactoryCreatorFcn fcn)
 
static void createReaderWriterFactory ()
 
static void cleanupFactory ()
 
static DtReaderWriterFactory * factory ()
 
static void setOutputStream (DtOutputStream *stream)
 
static DtOutputStream & outputStream ()
 
static DtReaderWriter * createFromXmlFile (const DtFilename &, bool createAsProperty=false)
 
static DtReaderWriter * createFromXml (const DtString &, bool createAsProperty=false)
 
static DtReaderWriter * createFromEnvironment (DtEnvironmentSP, bool createAsProperty=false)
 
static DtString getAttribute (DtEnvironmentSP env, const DtString &name, DtEnvValueSP root)
 

Protected Attributes

DtRwSimObjectReference myEntityToFollow
 
DtRwVector myOffsetVector
 
DtRwSimObjectReference myControlObject
 
DtRwVector myWorldDestination
 
DtRwVector myLocalDestinationVelocity
 
DtRwReal myDestinationSetTime
 
DtRwInt myDisembarkSubtaskId
 
- Protected Attributes inherited from DtVrfProcessStateRepository
DtLocalObject * myVrfObject
 
bool myLoadedFromMTL
 
- Protected Attributes inherited from DtReaderWriter
const DtSymbolString myName
 
DtReaderWriterRegistry myRegistry
 
DtReaderWriterRegistry * myParentRegistry
 
bool myValueSpecified
 
bool myReadOnlyFlag
 
bool myIsVariableReference
 
DtSymbolString myVariableName
 
bool myVariableIsBound
 
DtReaderWriter * myDefaultValue
 
aliasContainer myAliases
 
bool myInvalid
 
bool myChangedFlag
 

Additional Inherited Members

- 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 )()
 
- Protected Member Functions inherited from DtVrfProcessStateRepository
 DtVrfProcessStateRepository ()
 
const DtSimObject * vrfObject () const
 
- Protected Member Functions inherited from DtReaderWriter
virtual void bindToRwAsVariable (const DtReaderWriter *rw)
 
- 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
 

Constructor & Destructor Documentation

DtHumanFollowPSR::DtHumanFollowPSR ( DtLocalObject *  vrfObject,
const DtString &  rwName = DtString::nullString(),
DtReaderWriterRegistry *  parentRegistry = 0 
)

constructor

DtHumanFollowPSR::DtHumanFollowPSR ( const DtHumanFollowPSR &  orig,
const DtString &  rwName = DtString::nullString(),
DtReaderWriterRegistry *  parentRegistry = 0 
)

copy constructor

virtual DtHumanFollowPSR::~DtHumanFollowPSR ( )
overridevirtual

destructor

Member Function Documentation

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

assignment operator

virtual DtVrfProcessStateRepository* DtHumanFollowPSR::clone ( const DtString &  rwName = DtString::nullString(),
DtReaderWriterRegistry *  parentRegistry = 0 
) const
overridevirtual

returns a newly created copy of this object

Implements DtVrfProcessStateRepository.

virtual DtString DtHumanFollowPSR::type ( ) const
overridevirtual

Returns the string type of the repository, as defined in psrTypes.h. (DtHumanFollowPSRType).

Implements DtVrfProcessStateRepository.

virtual void DtHumanFollowPSR::setEntityToFollow ( const DtUUID &  )
virtual

Get/set the name of the entity to follow.

virtual DtSimObjectReference DtHumanFollowPSR::entityToFollow ( ) const
virtual

Get/set the name of the entity to follow.

virtual void DtHumanFollowPSR::setFollowingOffsetVector ( const DtVector &  offsetVector)
virtual

Get/set the offset vector to use when following (offset is in terms of the body coordinate system of the entity to follow).

virtual const DtVector& DtHumanFollowPSR::followingOffsetVector ( ) const
virtual

Get/set the offset vector to use when following (offset is in terms of the body coordinate system of the entity to follow).

virtual void DtHumanFollowPSR::setControlObject ( const DtUUID &  )
virtual

Get/set the name of the control object to move toWas: setControlObjectName.

virtual DtSimObjectReference DtHumanFollowPSR::controlObject ( ) const
virtual

Was: controlObjectName.

virtual void DtHumanFollowPSR::setWorldDestination ( const DtVector &  destination)
virtual

Get/set the location to which this entity is moving towards for a move to destination (or derivative) task. This point is only valid for that task and is set in world (geocentric) coordinates.

virtual const DtVector& DtHumanFollowPSR::worldDestination ( ) const
virtual

Get/set the location to which this entity is moving towards for a move to destination (or derivative) task. This point is only valid for that task and is set in world (geocentric) coordinates.

virtual void DtHumanFollowPSR::setLocalDestinationVelocity ( const DtVector &  velocity)
virtual

These functions are used for smoothing the position of the station that the entity is following.

Get/set the movement destination velocity.

virtual const DtVector& DtHumanFollowPSR::localDestinationVelocity ( ) const
virtual

These functions are used for smoothing the position of the station that the entity is following.

Get/set the movement destination velocity.

virtual void DtHumanFollowPSR::setDestinationSetTime ( const double  time)
virtual

Get/set the time that the movement target was set.

virtual const double DtHumanFollowPSR::destinationSetTime ( ) const
virtual

Get/set the time that the movement target was set.

virtual void DtHumanFollowPSR::setDisembarkSubtaskId ( const int  id)
virtual

Get/set disembark subtask ID.

virtual const int DtHumanFollowPSR::disembarkSubtaskId ( ) const
virtual

Get/set disembark subtask ID.

static DtVrfProcessStateRepository* DtHumanFollowPSR::creator ( const DtString &  rwName,
DtLocalObject *  vrfObject,
DtReaderWriterRegistry *  parentRegistry 
)
static

Returns a newly created instance of this class.

Member Data Documentation

DtRwSimObjectReference DtHumanFollowPSR::myEntityToFollow
protected

From DtGroundFollowEntityController (gndFollwCtl.h)

Set when a follow entity task is received.

DtRwVector DtHumanFollowPSR::myOffsetVector
protected
DtRwSimObjectReference DtHumanFollowPSR::myControlObject
protected

From DtGroundMoveToControllerComponent (gndMvToCntlr.h)

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

DtRwVector DtHumanFollowPSR::myWorldDestination
protected

World point for move to location tasks.

DtRwVector DtHumanFollowPSR::myLocalDestinationVelocity
protected

The vector describing the velocity of the smoothed movement target point during the last tick. In world coordinates.

DtRwReal DtHumanFollowPSR::myDestinationSetTime
protected

The time that the local destination was last set.

DtRwInt DtHumanFollowPSR::myDisembarkSubtaskId
protected

Id for disembark subtask.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)