VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Member Functions | Protected Attributes
DtArticulatedPartStateRepository Class Reference

The DtArticulatedPartStateRepository class is used to represent articulated parts for an entity. More...

Inheritance diagram for DtArticulatedPartStateRepository:
Inheritance graph
[legend]

Classes

class  DtArtPartMap
 

Public Member Functions

 DtArticulatedPartStateRepository (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
 Constructor. More...
 
 DtArticulatedPartStateRepository (const DtSymbolString &rwName, DtReaderWriterRegistry *parentRegistry=0)
 Constructor. More...
 
 DtArticulatedPartStateRepository (const DtArticulatedPartStateRepository &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0)
 Copy constructor. More...
 
virtual void attachTo (DtVrfObject *parentObj)
 Attaches the articulated part directly to an entity. More...
 
virtual void attachTo (DtVrfObject *parentObj, DtArticulatedPartStateRepository *parentPart)
 Attaches the articulated part to another part on an entity. More...
 
virtual DtArtPartType parentPartType () const
 Returns the part type of the parent. More...
 
const
DtArticulatedPartStateRepository
operator= (const DtArticulatedPartStateRepository &orig)
 Assignment operator. More...
 
virtual ~DtArticulatedPartStateRepository ()
 Destructor. More...
 
virtual
DtArticulatedPartStateRepository
clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const
 Clone this repository. More...
 
virtual bool mergeSpecifiedParameters (const DtArticulatedPartStateRepository &other, MergeRule rule=AllSpecifiedValues)
 Sets local parameter values to that of the other part, as long as the other part has that parameter set. More...
 
virtual DtString type () const
 returns DtSimObjectStateRepositoryType More...
 
virtual DtVector attachPointWithRespectToObject () const
 The attach point of this part with respect to the base, given that all parts are in their 0 orientations. More...
 
virtual DtVector bodyPosition () const
 Determines the body relative position of the part based on its attachPoint and those of its parent parts. More...
 
virtual DtVector localPosition () const
 Determines the local position of the part based on its attachPoint and those of its parent parts. More...
 
virtual DtVector endPointlocalPosition () const
 Determines the local position of the part's end point based on its endPoint, attachPoint, and those of its parent parts. More...
 
virtual DtVector worldPosition () const
 Determines the world position of the part based on its attachPoint and those of its parent parts. More...
 
virtual DtTaitBryan bodyOrientation () const
 The orientation of the part relative to the parent object body. More...
 
virtual DtDcm localOrientationMatrix () const
 The part orientation matrix in local database coordinates. More...
 
virtual
DtArticulatedPartStateRepository
attachPart (DtArtPartType partType)
 Attach a part of the given type to this part. More...
 
virtual
DtArticulatedPartStateRepository
attachPart (DtArtPartType partType, const DtArticulatedPartStateRepository &partState)
 Attach an existing part of the given type to this part. More...
 
virtual void addParameterType (DtArtParamType paramType)
 Add a new parameter type that this part supports. More...
 
virtual void clearParameterTypes ()
 Clears the list of parameter types that this part supports. More...
 
virtual bool hasParameterType (DtArtParamType paramType) const
 Returns true if the part has the specified parameter type. More...
 
const DtRwTemplatedIntListparameterTypes () const
 Returns the list of parameter types. More...
 
virtual void mergeInPartAttachments (const DtArticulatedPartStateRepository &other)
 Updates part attachments (adding missing parts) from the other part. More...
 
virtual void setAllValuesUnspecified ()
 Marks all values as unspecified. More...
 
virtual void prePutSelf ()
 Ensures configuration specific values are not saved to scenario. More...
 
virtual
DtArticulatedPartStateRepository
parentPart ()
 The part which we are attached to. More...
 
virtual const
DtArticulatedPartStateRepository
parentPart () const
 
virtual DtVrfObjectparentObject ()
 The sim object to which we are ultimately attached, even if not directly. More...
 
virtual const DtVrfObjectparentObject () const
 
virtual DtArtPartType partType () const
 The part type. More...
 
virtual void setPartType (DtArtPartType type)
 
virtual const DtArtPartMapparts () const
 The list of parts which are attached to this part. More...
 
virtual DtArtPartMapparts ()
 
DtReal azimuthNeutralOffset () const
 The azimuth which the current azimuth is offset from. More...
 
void setAzimuthNeutralOffset (DtReal offset, bool isSpecified=true)
 
DtReal elevationNeutralOffset () const
 The azimuth which the current azimuth is offset from. More...
 
void setElevationNeutralOffset (DtReal offset, bool isSpecified=true)
 
- Public Member Functions inherited from DtRwArtPartState
 DtRwArtPartState ()
 Default constructor. More...
 
 DtRwArtPartState (const DtString &partName, DtReaderWriterRegistry *parentRegistry=NULL)
 Constructor. More...
 
 DtRwArtPartState (const DtSymbolString &partName, DtReaderWriterRegistry *parentRegistry=NULL)
 Constructor. More...
 
 DtRwArtPartState (const DtRwArtPartState &orig, const DtString &partName, DtReaderWriterRegistry *parentRegistry=NULL)
 Copy constructor. More...
 
 DtRwArtPartState (const DtRwArtPartState &orig, const DtSymbolString &partName, DtReaderWriterRegistry *parentRegistry=NULL)
 Copy constructor. More...
 
const DtRwArtPartStateoperator= (const DtRwArtPartState &orig)
 assignment More...
 
virtual ~DtRwArtPartState ()
 
virtual DtRwArtPartStateclone (const DtSymbolString &partName, DtReaderWriterRegistry *parentRegistry=NULL) const
 
virtual bool mergeSpecifiedParameters (const DtRwArtPartState &other, MergeRule rule=AllSpecifiedValues)
 Sets local parameter values to that of the other part, as long as the other part has that parameter set. More...
 
virtual void markMatchingFieldsUnspecified (const DtRwArtPartState &other)
 Sets all values that match the other part state to unspecified. More...
 
virtual bool fullAzimuthRotation () const
 Returns true if the part can perform a full azimuth rotation. More...
 
bool operator== (const DtRwArtPartState &rhs) const
 
bool operator!= (const DtRwArtPartState &rhs) const
 
virtual void setAttachPoint (const DtVector &attachPoint, bool isSpecified=true)
 Accessor/mutator for myAttachPoint. More...
 
virtual DtVector attachPoint () const
 
virtual bool attachPointSpecified () const
 
virtual DtVector endPoint () const
 Accessor/mutator for myEndPoint. More...
 
virtual void setEndPoint (const DtVector &loc, bool isSpecified=true)
 
virtual bool endPointSpecified () const
 
virtual double position () const
 Accessor/mutator for myPosition. More...
 
virtual void setPosition (double val, bool isSpecified=true)
 
virtual bool positionSpecified () const
 
virtual double positionRate () const
 Accessor/mutator for myPositionRate. More...
 
virtual void setPositionRate (double val, bool isSpecified=true)
 
virtual bool positionRateSpecified () const
 
virtual double maxPositionRate () const
 Accessor/mutator for myMaxPositionRate. More...
 
virtual void setMaxPositionRate (double val, bool isSpecified=true)
 
virtual bool maxPositionRateSpecified () const
 
virtual double extension () const
 Accessor/mutator for myExtension. More...
 
virtual void setExtension (double val, bool isSpecified=true)
 
virtual bool extensionSpecified () const
 
virtual double extensionRate () const
 Accessor/mutator for myExtensionRate. More...
 
virtual void setExtensionRate (double val, bool isSpecified=true)
 
virtual bool extensionRateSpecified () const
 
virtual double maxExtensionRate () const
 Accessor/mutator for myMaxExtensionRate. More...
 
virtual void setMaxExtensionRate (double val, bool isSpecified=true)
 
virtual bool maxExtensionRateSpecified () const
 
virtual DtVector translation () const
 Accessor/mutator for myTranslation. More...
 
virtual void setTranslation (const DtVector &val, bool isSpecified=true)
 
virtual bool translationSpecified () const
 
virtual DtVector minTranslation () const
 Accessor/mutator for myMinTranslation. More...
 
virtual void setMinTranslation (const DtVector &val, bool isSpecified=true)
 
virtual bool minTranslationSpecified () const
 
virtual DtVector maxTranslation () const
 Accessor/mutator for myMaxTranslation. More...
 
virtual void setMaxTranslation (const DtVector &val, bool isSpecified=true)
 
virtual bool maxTranslationSpecified () const
 
virtual DtVector translationRate () const
 Accessor/mutator for myTranslationRate. More...
 
virtual void setTranslationRate (const DtVector &val, bool isSpecified=true)
 
virtual bool translationRateSpecified () const
 
virtual DtVector maxTranslationRate () const
 Accessor/mutator for myMaxTranslationRate. More...
 
virtual void setMaxTranslationRate (const DtVector &val, bool isSpecified=true)
 
virtual bool maxTranslationRateSpecified () const
 
virtual double azimuth () const
 Accessor/mutator for myAzimuth. More...
 
virtual void setAzimuth (double angle, bool isSpecified=true)
 
virtual bool azimuthSpecified () const
 
virtual double minAzimuth () const
 Accessor/mutator for myMinAzimuth. More...
 
virtual void setMinAzimuth (double angle, bool isSpecified=true)
 
virtual bool minAzimuthSpecified () const
 
virtual double maxAzimuth () const
 Accessor/mutator for myMaxAzimuth. More...
 
virtual void setMaxAzimuth (double angle, bool isSpecified=true)
 
virtual bool maxAzimuthSpecified () const
 
virtual double azimuthRate () const
 Accessor/mutator for myAzimuthRate. More...
 
virtual void setAzimuthRate (double rate, bool isSpecified=true)
 
virtual bool azimuthRateSpecified () const
 
virtual double maxAzimuthRate () const
 Accessor/mutator for myMaxAzimuthRate. More...
 
virtual void setMaxAzimuthRate (double rate, bool isSpecified=true)
 
virtual bool maxAzimuthRateSpecified () const
 
virtual double elevation () const
 Accessor/mutator for myElevation. More...
 
virtual void setElevation (double angle, bool isSpecified=true)
 
virtual bool elevationSpecified () const
 
virtual double minElevation () const
 Accessor/mutator for myMinElevation. More...
 
virtual void setMinElevation (double angle, bool isSpecified=true)
 
virtual bool minElevationSpecified () const
 
virtual double maxElevation () const
 Accessor/mutator for myMaxElevation. More...
 
virtual void setMaxElevation (double angle, bool isSpecified=true)
 
virtual bool maxElevationSpecified () const
 
virtual double elevationRate () const
 Accessor/mutator for myElevationRate. More...
 
virtual void setElevationRate (double rate, bool isSpecified=true)
 
virtual bool elevationRateSpecified () const
 
virtual double maxElevationRate () const
 Accessor/mutator for myMaxElevationRate. More...
 
virtual void setMaxElevationRate (double rate, bool isSpecified=true)
 
virtual bool maxElevationRateSpecified () const
 
virtual double rotation () const
 Accessor/mutator for myRotation. More...
 
virtual void setRotation (double angle, bool isSpecified=true)
 
virtual bool rotationSpecified () const
 
virtual double minRotation () const
 Accessor/mutator for myMinRotation. More...
 
virtual void setMinRotation (double angle, bool isSpecified=true)
 
virtual bool minRotationSpecified () const
 
virtual double maxRotation () const
 Accessor/mutator for myRotation. More...
 
virtual void setMaxRotation (double angle, bool isSpecified=true)
 
virtual bool maxRotationSpecified () const
 
virtual double rotationRate () const
 Accessor/mutator for myRotationRate. More...
 
virtual void setRotationRate (double rate, bool isSpecified=true)
 
virtual bool rotationRateSpecified () const
 
virtual double maxRotationRate () const
 Accessor/mutator for myMaxRotationRate. More...
 
virtual void setMaxRotationRate (double rate, bool isSpecified=true)
 
virtual bool maxRotationRateSpecified () const
 
virtual const DtStringassociatedComponent () const
 Accessor/mutator for myAssociatedComponent. More...
 
virtual void setAssociatedComponent (const DtString &component, bool isSpecified=true)
 
virtual bool associatedComponentSpecified () const
 
virtual const DtStringcomment () const
 Accessor/mutator for myComment. More...
 
virtual void setComment (const DtString &component, bool isSpecified=true)
 
virtual bool commentSpecified () const
 
virtual const std::set
< DtString > & 
configSources () const
 Accessor/mutator for #myConfigSource. More...
 
virtual void setConfigSources (const std::set< DtString > &srcs)
 
virtual void addConfigSource (const DtString &src)
 
- Public Member Functions inherited from DtReaderWriter
 DtReaderWriter ()
 default constructor More...
 
 DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false)
 real constructor Setting the readonly flag prevents object from writing itself to the stream. More...
 
 DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false)
 
 DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 pseudo-copy constructor More...
 
 DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL)
 copy constructor More...
 
const DtReaderWriteroperator= (const DtReaderWriter &orig)
 assignment operator More...
 
bool operator== (const DtReaderWriter &) const
 Equivalence operator. More...
 
bool operator!= (const DtReaderWriter &rhs)
 
virtual ~DtReaderWriter ()
 destructor More...
 
virtual void putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
 Top level call to write itself to file. More...
 
virtual void postPutSelf ()
 Called after either version of put self (file or environment). Default is no-op. More...
 
virtual void getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
 Top level to read itself from an input stream. More...
 
virtual void postGetSelf ()
 Called after either version of getSelf (mtl or environment). Default is no-op. More...
 
virtual void preGetSelf ()
 Called before either version of get self (file or environment). Default is no-op. More...
 
virtual void writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
 Called from putSelf, calls myRegistry.putSelf which in turn calls putSelf on each reader/writer in the registry. More...
 
virtual DtSymbolString name () const
 Accessor for name of this readable/writable object. More...
 
virtual void addAlias (const DtSymbolString &alias)
 Add an alias as an alternative name for this object. More...
 
virtual void addAlias (const DtString &alias)
 
virtual bool hasAlias (const DtSymbolString &alias)
 
virtual const aliasContaineraliases () const
 
virtual void setReadonly (bool flag)
 Set read-only flag. More...
 
bool isReadonly () const
 
virtual void reset ()
 For those reader/writer items that support it, resets the reader/writer value to original state Default is no-op. More...
 
virtual int alignment () const
 For those items that are sent over the network via HLA, this will give the network alignment. More...
 
virtual bool variableIsBound () const
 
virtual void unbindVariable ()
 Sets the myVariableIsBound flag to false. More...
 
virtual void setName (const DtString &)
 Set the name of the object. More...
 
virtual const charreaderWriterType () const
 Used to supply a string type that this reader writer type is. More...
 
virtual const charxmlType () const
 
virtual DtString prettyPrint () const
 Routine to return a human readable form of the reader/writer variable. More...
 
std::string debugText () const
 
virtual void bindVariables (DtVariableBindingsList variableBindings)
 Runs a variable binding pass on this reader writer and any of its children. More...
 
virtual std::list
< DtVariableNameType
unboundVariables () const
 
bool invalid () const
 
virtual bool hasChild (const DtReaderWriter *p) const
 Returns true if this variable has a child p in it's chain. More...
 
virtual bool hasVariableReference () const
 Returns true if this item or any item in the registry (recursive) is a variable reference. More...
 
virtual void bindLocalVariables (const DtVariableBindingsList &variableBindings)
 Checks to see if this RW object is a variable reference that can be bound using the provided bindings. More...
 
virtual void recordUpdateTime () const
 Can be implemented in subclasses to stamp the time when updated. More...
 
virtual bool wasUpdatedSince (DtTime t) const
 Can be implemented in subclasses to return true if an update occurred after the specified time. More...
 
virtual bool changedSinceLastChecked ()
 Returns true if this objects value has changed since the last time this function was called. More...
 
virtual bool peekChangedSinceLastChecked () const
 Returns the value that changedSinceLastChecked would return but does not reset the internal flag. More...
 
virtual void putData (std::string &fp, int indentLevel=0)
 Deriving class overrides these to get/put class specific data. More...
 
virtual DtlObjPtr getData (DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
 
virtual void setValueSpecified (bool specified, bool recurse=false)
 The specified flags are used for optional values. More...
 
virtual bool valueSpecified () const
 
virtual bool isVariableReference () const
 Specifies whether or not this reader writer is really a variable that is specified elsewhere. More...
 
virtual void setIsVariableReference (bool value)
 
virtual void clearAllVariableReferenceFlags ()
 Clears out all variable reference flags from all readerwriter items in registry recursively. More...
 
virtual DtSymbolString variableName () const
 The variable name, if this object is a variable reference. More...
 
virtual void setVariableName (const DtSymbolString variableName)
 
virtual const DtReaderWriterdefaultRWValue () const
 The default value to use if the reader/writer object is a variable and that variable is not specified. More...
 
virtual DtReaderWriterdefaultRWValue ()
 
virtual void setDefaultRWValue (DtReaderWriter *)
 Previous default value, if exists, will be removed and replaced with a clone of the supplied variable. More...
 
virtual bool checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
 Give the stream, if the stream contains a default value then set it here. More...
 
const DtReaderWriterRegistryregistry () const
 Collection of child DtReaderWriter nodes owned by this object. More...
 
DtReaderWriterRegistryregistry ()
 
virtual DtPropertyInterfaceproperty ()
 
virtual const DtPropertyInterfaceproperty () const
 
virtual DtString toXml () const
 
virtual DtRwVariableBindingsgenerateVariableBindings () const
 Iterates over the registry (recursively) and returns a variable bindings object that contains all the variables that are contained in this read/writer class. More...
 
virtual bool toXml (const DtFilename &) const
 Writes contents of xml result to the given filename. More...
 
virtual bool fromXml (const DtString &)
 Restores object from given xml string. Returns true if valid. More...
 
virtual bool fromXmlFile (const DtFilename &)
 Restores object from given xml file. More...
 
virtual void putSelf (DtEnvironmentSP, DtEnvValueSP parent) const
 
virtual void putData (DtEnvironmentSP, DtEnvValueSP value) const
 Override to add attributes of actual data. More...
 
virtual void putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const
 Called when the item is a variable reference. More...
 
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())
 Gets data from the environment value. More...
 
virtual void unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings)
 Called when the xml reader tries to parse an unknown reader/writer item. Default is a no-op. More...
 
virtual void getVariableReference (DtEnvironmentSP, DtEnvValueSP value)
 Called when the item is a variable reference. More...
 

Protected Member Functions

void preventConfigValueReadAndWrite ()
 Prevents reading and writing of configuration values. More...
 
virtual void copyParts (const DtArticulatedPartStateRepository &orig)
 
virtual void setParentsForAllParts ()
 Traverses all child parts and updates their parents. More...
 
- Protected Member Functions inherited from DtReaderWriter
virtual void bindToRwAsVariable (const DtReaderWriter *rw)
 Copies values from the specified DtReaderWriter. More...
 

Protected Attributes

DtRwInt myPartType
 
DtArtPartMap myParts
 
DtVrfObjectmyParentObject
 
DtArticulatedPartStateRepositorymyParentPart
 
DtRwReal myAzimuthNeutralOffset
 
DtRwReal myElevationNeutralOffset
 
DtRwTemplatedIntList myParameterTypes
 
- Protected Attributes inherited from DtRwArtPartState
std::set< DtStringmyConfigSources
 
DtRwOffsetVector myAttachPoint
 Parameter Name: attach-point Parameter Description: The point at which at the articulated or attached part is attached to another object. More...
 
DtRwOffsetVector myEndPoint
 Parameter Name: end-point Parameter Description: The point at which at the articulated or attached part ends. More...
 
DtRwVector myTranslation
 Parameter Name: translation Parameter Description: The current part translation value. More...
 
DtRwVector myMinTranslation
 Parameter Name: min-translation Parameter Description: The minimum part translation value. More...
 
DtRwVector myMaxTranslation
 Parameter Name: max-translation Parameter Description: The maximum part translation value. More...
 
DtRwVector myTranslationRate
 Parameter Name: translation-rate Parameter Description: The current translation rate. More...
 
DtRwVector myMaxTranslationRate
 Parameter Name: translation-rate Parameter Description: The maximum translation rate. More...
 
DtRwReal myPosition
 Parameter Name: position Parameter Description: The current position of the part along a set path where 0 is fully retracted and 1 is fully extended. More...
 
DtRwReal myPositionRate
 Parameter Name: position-rate Parameter Description: The current rate of change of the position of the part along a set path. More...
 
DtRwReal myMaxPositionRate
 Parameter Name: position-rate Parameter Description: The maximum rate of change of the position of the part along a set path. More...
 
DtRwReal myExtension
 Parameter Name: extension Parameter Description: The linear extension of the part in a single direction. More...
 
DtRwReal myExtensionRate
 Parameter Name: extension-rate Parameter Description: The rate of change of the linear extension of the part in a single direction. More...
 
DtRwReal myMaxExtensionRate
 Parameter Name: max-extension-rate Parameter Description: The maximum rate of change of the linear extension of the part in a single direction. More...
 
DtRwReal myAzimuth
 Parameter Name: azimuth Parameter Description: The current or default azimuth. More...
 
DtRwReal myMinAzimuth
 Parameter Name: min-azimuth Parameter Description: The minimum azimuth value. More...
 
DtRwReal myMaxAzimuth
 Parameter Name: max-azimuth Parameter Description: The maximum azimuth value. More...
 
DtRwReal myAzimuthRate
 Parameter Name: azimuth-rate Parameter Description: The current azimuth rate of change. More...
 
DtRwReal myMaxAzimuthRate
 Parameter Name: max-azimuth-rate Parameter Description: The maximum azimuth rate of change. More...
 
DtRwReal myElevation
 Parameter Name: elevation Parameter Description: The current or default elevation. More...
 
DtRwReal myMinElevation
 Parameter Name: min-elevation Parameter Description: The minimum elevation value. More...
 
DtRwReal myMaxElevation
 Parameter Name: max-elevation Parameter Description: The maximum elevation value. More...
 
DtRwReal myElevationRate
 Parameter Name: elevation-rate Parameter Description: The current elevation rate of change. More...
 
DtRwReal myMaxElevationRate
 Parameter Name: max-elevation-rate Parameter Description: The maximum elevation rate of change. More...
 
DtRwReal myRotation
 Parameter Name: rotation Parameter Description: The current or default rotation. More...
 
DtRwReal myMinRotation
 Parameter Name: min-rotation Parameter Description: The minimum rotation value. More...
 
DtRwReal myMaxRotation
 Parameter Name: max-rotation Parameter Description: The maximum rotation value. More...
 
DtRwReal myRotationRate
 Parameter Name: rotation-rate Parameter Description: The maximum rotation rate of change. More...
 
DtRwReal myMaxRotationRate
 Parameter Name: max-rotation-rate Parameter Description: The maximum rotation rate of change. More...
 
DtRwString myAssociatedComponent
 Parameter Name: associated-component Parameter Description: The name of the associated component. More...
 
DtRwString myComment
 Parameter Name: comment Parameter Description: A comment a user can optionally save with the articulated part. More...
 
- Protected Attributes inherited from DtReaderWriter
const DtSymbolString myName
 
DtReaderWriterRegistry myRegistry
 
DtReaderWriterRegistrymyParentRegistry
 
bool myValueSpecified
 
bool myReadOnlyFlag
 
bool myIsVariableReference
 
DtSymbolString myVariableName
 
bool myVariableIsBound
 
DtReaderWritermyDefaultValue
 
aliasContainer myAliases
 Container for the aliases which represent alternative names for the object. More...
 
bool myInvalid
 Set to true if there is a problem reading this item. More...
 
bool myChangedFlag
 Set to true when value changes Set to false when value checked with changedSinceLastChecked. More...
 

Additional Inherited Members

- Public Types inherited from DtRwArtPartState
enum  MergeRule { AllSpecifiedValues, OnlyIfMyValueIsUnspecified, AllSpecifiedValuesExceptRates }
 
- 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 )()
 
- Static Public Member Functions inherited from DtRwArtPartState
static double defaultRotationRate ()
 The rotation rate to be used when a part is not configured with one, in radians/sec. More...
 
static void setDefaultRotationRate (double rate)
 
static double defaultTranslationRate ()
 The rotation rate to be used when a part is not configured with one, in m/s. More...
 
static void setDefaultTranslationRate (double rate)
 
- 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 chartheXmlType ()
 The type that is used when archiving to an XML stream. More...
 
static const DtFilename & appPath ()
 Gets the current working directory. More...
 
static void setFactoryCreatorFunction (DtReaderWriterFactoryCreatorFcn fcn)
 Sets the function to create the DtReaderWriterFactory. More...
 
static void createReaderWriterFactory ()
 
static void cleanupFactory ()
 
static DtReaderWriterFactoryfactory ()
 
static void setOutputStream (DtOutputStream *stream)
 
static DtOutputStream & outputStream ()
 
static DtReaderWritercreateFromXmlFile (const DtFilename &, bool createAsProperty=false)
 Given a filename, returns a newly created reader/writer object from the object found within. More...
 
static DtReaderWritercreateFromXml (const DtString &, bool createAsProperty=false)
 Given a xml string, returns a newly created reader/writer object from the object found within. More...
 
static DtReaderWritercreateFromEnvironment (DtEnvironmentSP, bool createAsProperty=false)
 Given a xml environment, returns a newly created reader/writer object from the object found within. More...
 
static DtString getAttribute (DtEnvironmentSP env, const DtString &name, DtEnvValueSP root)
 Gets the named attribute from a DtEnvValueSP. More...
 
- Static Protected Attributes inherited from DtRwArtPartState
static double theDefaultRotationRate
 
static double theDefaultTranslationRate
 
- Static Protected Attributes inherited from DtReaderWriter
static DtString theUnspecifiedValue
 
static DtGetSelfCallbackInfo thePostGetSelfCallback
 
static DtPutSelfCallbackInfo thePrePutSelfCallback
 
static const DtVariableBindingsList theEmptyVariableBindingsList
 
static bool theCreatorFcnSet
 
static DtReaderWriterFactorytheFactory
 
static
DtReaderWriterFactoryCreatorFcn 
theFactoryCreatorFcn
 
static bool thePutIndent
 
static DtOutputStream * theOutputStream
 

Detailed Description

The DtArticulatedPartStateRepository class is used to represent articulated parts for an entity.

When an entity is created, a tree of articulated part state repository objects gets constructed based on the contents of the parameter database entry. The parameter database entry indicates the type of part to create, which part is should be attached to, and what parameter(s) should be set for the part. The base state repository for this tree is the state repository for the entity.

Constructor & Destructor Documentation

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

Constructor.

DtArticulatedPartStateRepository::DtArticulatedPartStateRepository ( const DtSymbolString rwName,
DtReaderWriterRegistry parentRegistry = 0 
)

Constructor.

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

Copy constructor.

virtual DtArticulatedPartStateRepository::~DtArticulatedPartStateRepository ( )
virtual

Destructor.

Member Function Documentation

virtual void DtArticulatedPartStateRepository::attachTo ( DtVrfObject parentObj)
virtual

Attaches the articulated part directly to an entity.

virtual void DtArticulatedPartStateRepository::attachTo ( DtVrfObject parentObj,
DtArticulatedPartStateRepository parentPart 
)
virtual

Attaches the articulated part to another part on an entity.

virtual DtArtPartType DtArticulatedPartStateRepository::parentPartType ( ) const
virtual

Returns the part type of the parent.

virtual DtArticulatedPartStateRepository* DtArticulatedPartStateRepository::parentPart ( )
virtual

The part which we are attached to.

Returns null if attached directly to the parent object.

virtual const DtArticulatedPartStateRepository* DtArticulatedPartStateRepository::parentPart ( ) const
virtual
virtual DtVrfObject* DtArticulatedPartStateRepository::parentObject ( )
virtual

The sim object to which we are ultimately attached, even if not directly.

virtual const DtVrfObject* DtArticulatedPartStateRepository::parentObject ( ) const
virtual
const DtArticulatedPartStateRepository& DtArticulatedPartStateRepository::operator= ( const DtArticulatedPartStateRepository orig)

Assignment operator.

virtual DtArticulatedPartStateRepository* DtArticulatedPartStateRepository::clone ( const DtString rwName = DtString::nullString(),
DtReaderWriterRegistry parentRegistry = 0 
) const
virtual

Clone this repository.

Reimplemented from DtRwArtPartState.

virtual bool DtArticulatedPartStateRepository::mergeSpecifiedParameters ( const DtArticulatedPartStateRepository other,
MergeRule  rule = AllSpecifiedValues 
)
virtual

Sets local parameter values to that of the other part, as long as the other part has that parameter set.

Returns true if any parameters were updated.

virtual DtString DtArticulatedPartStateRepository::type ( ) const
virtual

returns DtSimObjectStateRepositoryType

virtual DtArtPartType DtArticulatedPartStateRepository::partType ( ) const
virtual

The part type.

virtual void DtArticulatedPartStateRepository::setPartType ( DtArtPartType  type)
virtual
virtual DtVector DtArticulatedPartStateRepository::attachPointWithRespectToObject ( ) const
virtual

The attach point of this part with respect to the base, given that all parts are in their 0 orientations.

virtual DtVector DtArticulatedPartStateRepository::bodyPosition ( ) const
virtual

Determines the body relative position of the part based on its attachPoint and those of its parent parts.

virtual DtVector DtArticulatedPartStateRepository::localPosition ( ) const
virtual

Determines the local position of the part based on its attachPoint and those of its parent parts.

virtual DtVector DtArticulatedPartStateRepository::endPointlocalPosition ( ) const
virtual

Determines the local position of the part's end point based on its endPoint, attachPoint, and those of its parent parts.

virtual DtVector DtArticulatedPartStateRepository::worldPosition ( ) const
virtual

Determines the world position of the part based on its attachPoint and those of its parent parts.

virtual DtTaitBryan DtArticulatedPartStateRepository::bodyOrientation ( ) const
virtual

The orientation of the part relative to the parent object body.

virtual DtDcm DtArticulatedPartStateRepository::localOrientationMatrix ( ) const
virtual

The part orientation matrix in local database coordinates.

virtual const DtArtPartMap& DtArticulatedPartStateRepository::parts ( ) const
virtual

The list of parts which are attached to this part.

virtual DtArtPartMap& DtArticulatedPartStateRepository::parts ( )
virtual
virtual DtArticulatedPartStateRepository* DtArticulatedPartStateRepository::attachPart ( DtArtPartType  partType)
virtual

Attach a part of the given type to this part.

Returns a pointer to the new part if successful.

virtual DtArticulatedPartStateRepository* DtArticulatedPartStateRepository::attachPart ( DtArtPartType  partType,
const DtArticulatedPartStateRepository partState 
)
virtual

Attach an existing part of the given type to this part.

Returns a pointer to the new part if successful.

DtReal DtArticulatedPartStateRepository::azimuthNeutralOffset ( ) const

The azimuth which the current azimuth is offset from.

void DtArticulatedPartStateRepository::setAzimuthNeutralOffset ( DtReal  offset,
bool  isSpecified = true 
)
DtReal DtArticulatedPartStateRepository::elevationNeutralOffset ( ) const

The azimuth which the current azimuth is offset from.

void DtArticulatedPartStateRepository::setElevationNeutralOffset ( DtReal  offset,
bool  isSpecified = true 
)
virtual void DtArticulatedPartStateRepository::addParameterType ( DtArtParamType  paramType)
virtual

Add a new parameter type that this part supports.

virtual void DtArticulatedPartStateRepository::clearParameterTypes ( )
virtual

Clears the list of parameter types that this part supports.

virtual bool DtArticulatedPartStateRepository::hasParameterType ( DtArtParamType  paramType) const
virtual

Returns true if the part has the specified parameter type.

const DtRwTemplatedIntList& DtArticulatedPartStateRepository::parameterTypes ( ) const

Returns the list of parameter types.

virtual void DtArticulatedPartStateRepository::mergeInPartAttachments ( const DtArticulatedPartStateRepository other)
virtual

Updates part attachments (adding missing parts) from the other part.

virtual void DtArticulatedPartStateRepository::setAllValuesUnspecified ( )
virtual

Marks all values as unspecified.

virtual void DtArticulatedPartStateRepository::prePutSelf ( )
virtual

Ensures configuration specific values are not saved to scenario.

Reimplemented from DtReaderWriter.

void DtArticulatedPartStateRepository::preventConfigValueReadAndWrite ( )
protected

Prevents reading and writing of configuration values.

Only run time settings will be read or written.

virtual void DtArticulatedPartStateRepository::copyParts ( const DtArticulatedPartStateRepository orig)
protectedvirtual
virtual void DtArticulatedPartStateRepository::setParentsForAllParts ( )
protectedvirtual

Traverses all child parts and updates their parents.

Member Data Documentation

DtRwInt DtArticulatedPartStateRepository::myPartType
protected
DtArtPartMap DtArticulatedPartStateRepository::myParts
protected
DtVrfObject* DtArticulatedPartStateRepository::myParentObject
protected
DtArticulatedPartStateRepository* DtArticulatedPartStateRepository::myParentPart
protected
DtRwReal DtArticulatedPartStateRepository::myAzimuthNeutralOffset
protected
DtRwReal DtArticulatedPartStateRepository::myElevationNeutralOffset
protected
DtRwTemplatedIntList DtArticulatedPartStateRepository::myParameterTypes
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)