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

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.

Inheritance diagram for makVrf::DtArticulatedPartStateRepository:
Inheritance graph
[legend]

Classes

class  DtArtPartMap
 

Public Member Functions

 DtArticulatedPartStateRepository (const DtSymbolString &rwName=DtSymbolString("art-part"), DtReaderWriterRegistry *parentRegistry=nullptr)
 
virtual void attachTo (DtStateData *parentObj)
 
virtual void attachTo (DtStateData *parentObj, DtArticulatedPartStateRepository *parentPart)
 
virtual DtArtPartType parentPartType () const
 
const
DtArticulatedPartStateRepository & 
operator= (const DtArticulatedPartStateRepository &orig)
 
virtual ~DtArticulatedPartStateRepository () override
 
virtual bool mergeSpecifiedParameters (const DtArticulatedPartStateRepository &other, MergeRule rule=AllSpecifiedValues)
 
virtual DtVector attachPointWithRespectToObject () const
 
virtual DtVector bodyPosition () const
 
virtual DtVector localPosition () const
 
virtual DtVector endPointlocalPosition () const
 
virtual DtVector worldPosition () const
 
virtual DtTaitBryan bodyOrientation () const
 
virtual DtDcm localOrientationMatrix () const
 
virtual
DtArticulatedPartStateRepository * 
attachPart (DtArtPartType partType)
 
virtual
DtArticulatedPartStateRepository * 
attachPart (DtArtPartType partType, const DtArticulatedPartStateRepository &partState)
 
virtual void addParameterType (DtArtParamType paramType)
 
virtual void clearParameterTypes ()
 
virtual bool hasParameterType (DtArtParamType paramType) const
 
const DtRwTemplatedIntList & parameterTypes () const
 
virtual void mergeInPartAttachments (const DtArticulatedPartStateRepository &other)
 
virtual void setAllValuesUnspecified ()
 
void setCoordinateSystem (const Coordinate_System *cs)
 
virtual void prePutSelf () override
 
virtual void setPublishOnLegionNetwork (bool publish, bool isWritable)
 
bool publishOnLegionNetwork () const
 
virtual void updateDataStorage (const std::vector< DtArticulatedPart::ParameterMetric > &parameterMetrics)
 
virtual void addPartDeletedCallback (DtArticulatedPartStateRepositoryDeletedCallbackList::DtCallbackFunctionType fcn, void *usrData) const
 
virtual void removePartDeletedCallback (DtArticulatedPartStateRepositoryDeletedCallbackList::DtCallbackFunctionType fcn, void *usrData) const
 
virtual
DtArticulatedPartStateRepository * 
parentPart ()
 
virtual const
DtArticulatedPartStateRepository * 
parentPart () const
 
virtual DtStateData * parentObject ()
 
virtual const DtStateData * parentObject () const
 
virtual DtArtPartType partType () const
 
virtual void setPartType (DtArtPartType type)
 
virtual const DtArtPartMap & parts () const
 
virtual DtArtPartMap & parts ()
 
DtReal azimuthNeutralOffset () const
 
void setAzimuthNeutralOffset (DtReal offset, bool isSpecified=true)
 
bool isAzimuthNeutralOffsetSpecified () const
 
DtReal elevationNeutralOffset () const
 
void setElevationNeutralOffset (DtReal offset, bool isSpecified=true)
 
bool isElevationNeutralOffsetSpecified () const
 
virtual void setAttachPoint (const DtVector &attachPoint, bool isSpecified=true) override
 
virtual void setEndPoint (const DtVector &loc, bool isSpecified=true) override
 
virtual void setPosition (double val, bool isSpecified=true) override
 
virtual void setPositionRate (double val, bool isSpecified=true) override
 
virtual void setMaxPositionRate (double val, bool isSpecified=true) override
 
virtual void setExtension (double val, bool isSpecified=true) override
 
virtual void setExtensionRate (double val, bool isSpecified=true) override
 
virtual void setMaxExtensionRate (double val, bool isSpecified=true) override
 
virtual void setTranslation (const DtVector &val, bool isSpecified=true) override
 
virtual void setMinTranslation (const DtVector &val, bool isSpecified=true) override
 
virtual void setMaxTranslation (const DtVector &val, bool isSpecified=true) override
 
virtual void setTranslationRate (const DtVector &val, bool isSpecified=true) override
 
virtual void setMaxTranslationRate (const DtVector &val, bool isSpecified=true) override
 
virtual void setAzimuth (double angle, bool isSpecified=true) override
 
virtual void setMinAzimuth (double angle, bool isSpecified=true) override
 
virtual void setMaxAzimuth (double angle, bool isSpecified=true) override
 
virtual void setAzimuthRate (double rate, bool isSpecified=true) override
 
virtual void setMaxAzimuthRate (double rate, bool isSpecified=true) override
 
virtual void setElevation (double angle, bool isSpecified=true) override
 
virtual void setMinElevation (double angle, bool isSpecified=true) override
 
virtual void setMaxElevation (double angle, bool isSpecified=true) override
 
virtual void setElevationRate (double rate, bool isSpecified=true) override
 
virtual void setMaxElevationRate (double rate, bool isSpecified=true) override
 
virtual void setRotation (double angle, bool isSpecified=true) override
 
virtual void setMinRotation (double angle, bool isSpecified=true) override
 
virtual void setMaxRotation (double angle, bool isSpecified=true) override
 
virtual void setRotationRate (double rate, bool isSpecified=true) override
 
virtual void setMaxRotationRate (double rate, bool isSpecified=true) override
 
- Public Member Functions inherited from DtRwArtPartState
 DtRwArtPartState ()
 
 DtRwArtPartState (const DtString &partName, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtRwArtPartState (const DtSymbolString &partName, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtRwArtPartState (const DtRwArtPartState &orig, const DtString &partName, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtRwArtPartState (const DtRwArtPartState &orig, const DtSymbolString &partName, DtReaderWriterRegistry *parentRegistry=NULL)
 
const DtRwArtPartState & operator= (const DtRwArtPartState &orig)
 
virtual ~DtRwArtPartState () override
 
virtual DtRwArtPartState * clone (const DtString &partName, DtReaderWriterRegistry *parentRegistry=NULL) const
 
virtual DtRwArtPartState * clone (const DtSymbolString &partName, DtReaderWriterRegistry *parentRegistry=NULL) const
 
virtual bool mergeSpecifiedParameters (const DtRwArtPartState &other, MergeRule rule=AllSpecifiedValues)
 
virtual void markMatchingFieldsUnspecified (const DtRwArtPartState &other)
 
virtual bool fullAzimuthRotation () const
 
bool operator== (const DtRwArtPartState &rhs) const
 
bool operator!= (const DtRwArtPartState &rhs) const
 
virtual DtVector attachPoint () const
 
virtual bool attachPointSpecified () const
 
virtual DtVector endPoint () const
 
virtual bool endPointSpecified () const
 
virtual double position () const
 
virtual bool positionSpecified () const
 
virtual double positionRate () const
 
virtual bool positionRateSpecified () const
 
virtual double maxPositionRate () const
 
virtual bool maxPositionRateSpecified () const
 
virtual double extension () const
 
virtual bool extensionSpecified () const
 
virtual double maxExtension () const
 
virtual void setMaxExtension (double val, bool isSpecified=true)
 
virtual bool maxExtensionSpecified () const
 
virtual double extensionRate () const
 
virtual bool extensionRateSpecified () const
 
virtual double maxExtensionRate () const
 
virtual bool maxExtensionRateSpecified () const
 
virtual DtVector translation () const
 
virtual bool translationSpecified () const
 
virtual DtVector minTranslation () const
 
virtual bool minTranslationSpecified () const
 
virtual DtVector maxTranslation () const
 
virtual bool maxTranslationSpecified () const
 
virtual DtVector translationRate () const
 
virtual bool translationRateSpecified () const
 
virtual DtVector maxTranslationRate () const
 
virtual bool maxTranslationRateSpecified () const
 
virtual double azimuth () const
 
virtual bool azimuthSpecified () const
 
virtual double minAzimuth () const
 
virtual bool minAzimuthSpecified () const
 
virtual double maxAzimuth () const
 
virtual bool maxAzimuthSpecified () const
 
virtual double azimuthRate () const
 
virtual bool azimuthRateSpecified () const
 
virtual double maxAzimuthRate () const
 
virtual bool maxAzimuthRateSpecified () const
 
virtual double elevation () const
 
virtual bool elevationSpecified () const
 
virtual double minElevation () const
 
virtual bool minElevationSpecified () const
 
virtual double maxElevation () const
 
virtual bool maxElevationSpecified () const
 
virtual double elevationRate () const
 
virtual bool elevationRateSpecified () const
 
virtual double maxElevationRate () const
 
virtual bool maxElevationRateSpecified () const
 
virtual double rotation () const
 
virtual bool rotationSpecified () const
 
virtual double minRotation () const
 
virtual bool minRotationSpecified () const
 
virtual double maxRotation () const
 
virtual bool maxRotationSpecified () const
 
virtual double rotationRate () const
 
virtual bool rotationRateSpecified () const
 
virtual double maxRotationRate () const
 
virtual bool maxRotationRateSpecified () const
 
virtual const DtString & associatedComponent () const
 
virtual void setAssociatedComponent (const DtString &component, bool isSpecified=true)
 
virtual bool associatedComponentSpecified () const
 
virtual const DtString & comment () const
 
virtual void setComment (const DtString &component, bool isSpecified=true)
 
virtual bool commentSpecified () const
 
virtual const std::set
< DtString > & 
configSources () const
 
virtual void setConfigSources (const std::set< DtString > &srcs)
 
virtual void addConfigSource (const DtString &src)
 
- 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 getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
 
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)
 

Protected Types

typedef std::map< int, UInt64 > LegionParameterMetrics
 

Protected Member Functions

virtual void partUpdated ()
 
void preventConfigValueReadAndWrite ()
 
virtual void copyParts (const DtArticulatedPartStateRepository &orig)
 
virtual void setParentsForAllParts ()
 
virtual DtTaitBryan parentLocalOrientation () const
 
virtual void destroyLegionParts ()
 
- Protected Member Functions inherited from DtReaderWriter
virtual void bindToRwAsVariable (const DtReaderWriter *rw)
 

Protected Attributes

const Coordinate_System * myCoordinateSystem
 
DtRwInt myPartType
 
DtArtPartMap myParts
 
DtStateData * myParentObject
 
DtArticulatedPartStateComponent * myParentComponent
 
DtArticulatedPartStateRepository * myParentPart
 
DtRwReal myAzimuthNeutralOffset
 
DtRwReal myElevationNeutralOffset
 
DtRwTemplatedIntList myParameterTypes
 
bool myPublishOnLegionNetwork
 
bool myIsWritable
 
UInt64 myArticulatedPartInstanceHandle
 
LegionParameterMetrics myLegionParameterMetrics
 
DtArticulatedPartStateRepositoryDeletedCallbackList myCallbackList
 
- Protected Attributes inherited from DtRwArtPartState
std::set< DtString > myConfigSources
 
DtRwOffsetVector myAttachPoint
 
DtRwOffsetVector myEndPoint
 
DtRwVector myTranslation
 
DtRwVector myMinTranslation
 
DtRwVector myMaxTranslation
 
DtRwVector myTranslationRate
 
DtRwVector myMaxTranslationRate
 
DtRwReal myPosition
 
DtRwReal myPositionRate
 
DtRwReal myMaxPositionRate
 
DtRwReal myExtension
 
DtRwReal myMaxExtension
 
DtRwReal myExtensionRate
 
DtRwReal myMaxExtensionRate
 
DtRwReal myAzimuth
 
DtRwReal myMinAzimuth
 
DtRwReal myMaxAzimuth
 
DtRwReal myAzimuthRate
 
DtRwReal myMaxAzimuthRate
 
DtRwReal myElevation
 
DtRwReal myMinElevation
 
DtRwReal myMaxElevation
 
DtRwReal myElevationRate
 
DtRwReal myMaxElevationRate
 
DtRwReal myRotation
 
DtRwReal myMinRotation
 
DtRwReal myMaxRotation
 
DtRwReal myRotationRate
 
DtRwReal myMaxRotationRate
 
DtRwString myAssociatedComponent
 
DtRwString myComment
 
- 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 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 ()
 
static void setDefaultRotationRate (double rate)
 
static double defaultTranslationRate ()
 
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 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)
 
- 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 DtReaderWriterFactory * theFactory
 
static
DtReaderWriterFactoryCreatorFcn 
theFactoryCreatorFcn
 
static bool thePutIndent
 
static DtOutputStream * theOutputStream
 

Member Typedef Documentation

Maps parameter metric indices to their corresponding Legion HLA instance handles.

Constructor & Destructor Documentation

makVrf::DtArticulatedPartStateRepository::DtArticulatedPartStateRepository ( const DtSymbolString &  rwName = DtSymbolString("art-part"),
DtReaderWriterRegistry *  parentRegistry = nullptr 
)

Constructor.

virtual makVrf::DtArticulatedPartStateRepository::~DtArticulatedPartStateRepository ( )
overridevirtual

Destructor.

Member Function Documentation

virtual void makVrf::DtArticulatedPartStateRepository::attachTo ( DtStateData *  parentObj)
virtual

Attaches the articulated part directly to an entity.

virtual void makVrf::DtArticulatedPartStateRepository::attachTo ( DtStateData *  parentObj,
DtArticulatedPartStateRepository *  parentPart 
)
virtual

Attaches the articulated part to another part on an entity.

virtual DtArtPartType makVrf::DtArticulatedPartStateRepository::parentPartType ( ) const
virtual

Returns the part type of the parent.

virtual DtArticulatedPartStateRepository* makVrf::DtArticulatedPartStateRepository::parentPart ( )
virtual

The part which we are attached to. Returns null if attached directly to the parent object.

virtual const DtArticulatedPartStateRepository* makVrf::DtArticulatedPartStateRepository::parentPart ( ) const
virtual

The part which we are attached to. Returns null if attached directly to the parent object.

virtual DtStateData* makVrf::DtArticulatedPartStateRepository::parentObject ( )
virtual

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

virtual const DtStateData* makVrf::DtArticulatedPartStateRepository::parentObject ( ) const
virtual

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

const DtArticulatedPartStateRepository& makVrf::DtArticulatedPartStateRepository::operator= ( const DtArticulatedPartStateRepository &  orig)

Assignment operator.

virtual bool makVrf::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 DtArtPartType makVrf::DtArticulatedPartStateRepository::partType ( ) const
virtual

The part type.

virtual void makVrf::DtArticulatedPartStateRepository::setPartType ( DtArtPartType  type)
virtual

The part type.

virtual DtVector makVrf::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 makVrf::DtArticulatedPartStateRepository::bodyPosition ( ) const
virtual

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

virtual DtVector makVrf::DtArticulatedPartStateRepository::localPosition ( ) const
virtual

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

virtual DtVector makVrf::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 makVrf::DtArticulatedPartStateRepository::worldPosition ( ) const
virtual

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

virtual DtTaitBryan makVrf::DtArticulatedPartStateRepository::bodyOrientation ( ) const
virtual

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

virtual DtDcm makVrf::DtArticulatedPartStateRepository::localOrientationMatrix ( ) const
virtual

The part orientation matrix in local database coordinates.

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

The list of parts which are attached to this part.

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

The list of parts which are attached to this part.

virtual DtArticulatedPartStateRepository* makVrf::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* makVrf::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 makVrf::DtArticulatedPartStateRepository::azimuthNeutralOffset ( ) const

The azimuth which the current azimuth is offset from.

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

The azimuth which the current azimuth is offset from.

bool makVrf::DtArticulatedPartStateRepository::isAzimuthNeutralOffsetSpecified ( ) const

The azimuth which the current azimuth is offset from.

DtReal makVrf::DtArticulatedPartStateRepository::elevationNeutralOffset ( ) const

The elevation which the current elevation is offset from.

void makVrf::DtArticulatedPartStateRepository::setElevationNeutralOffset ( DtReal  offset,
bool  isSpecified = true 
)

The elevation which the current elevation is offset from.

bool makVrf::DtArticulatedPartStateRepository::isElevationNeutralOffsetSpecified ( ) const

The elevation which the current elevation is offset from.

virtual void makVrf::DtArticulatedPartStateRepository::addParameterType ( DtArtParamType  paramType)
virtual

Add a new parameter type that this part supports.

virtual void makVrf::DtArticulatedPartStateRepository::clearParameterTypes ( )
virtual

Clears the list of parameter types that this part supports.

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

Returns true if the part has the specified parameter type.

const DtRwTemplatedIntList& makVrf::DtArticulatedPartStateRepository::parameterTypes ( ) const

Returns the list of parameter types.

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

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

virtual void makVrf::DtArticulatedPartStateRepository::setAllValuesUnspecified ( )
virtual

Marks all values as unspecified.

void makVrf::DtArticulatedPartStateRepository::setCoordinateSystem ( const Coordinate_System *  cs)

Sets the coordinate system used for local and world position/orientation calculations. Also propagates the coordinate system to all child parts.

Parameters
csThe coordinate system to use.
virtual void makVrf::DtArticulatedPartStateRepository::prePutSelf ( )
overridevirtual

Ensures configuration specific values are not saved to scenario.

Reimplemented from DtReaderWriter.

virtual void makVrf::DtArticulatedPartStateRepository::setPublishOnLegionNetwork ( bool  publish,
bool  isWritable 
)
virtual

Sets whether this part publishes state to the Legion HLA network. Propagates the setting to all child parts. If set to false, destroys any existing Legion object instances.

Parameters
publishTrue to enable Legion network publishing.
isWritableTrue if this part is locally owned and writable.
bool makVrf::DtArticulatedPartStateRepository::publishOnLegionNetwork ( ) const
inline

Returns true if this part publishes state to the Legion HLA network.

virtual void makVrf::DtArticulatedPartStateRepository::updateDataStorage ( const std::vector< DtArticulatedPart::ParameterMetric > &  parameterMetrics)
virtual

Creates or updates Legion HLA data store entries for this part's parameter metrics. Creates the articulated part instance if it does not yet exist, then writes each parameter value to the corresponding Legion instance.

Parameters
parameterMetricsThe list of parameter metrics to publish.
virtual void makVrf::DtArticulatedPartStateRepository::setAttachPoint ( const DtVector &  attachPoint,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setEndPoint ( const DtVector &  loc,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setPosition ( double  val,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setPositionRate ( double  val,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setMaxPositionRate ( double  val,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setExtension ( double  val,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setExtensionRate ( double  val,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setMaxExtensionRate ( double  val,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setTranslation ( const DtVector &  val,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setMinTranslation ( const DtVector &  val,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setMaxTranslation ( const DtVector &  val,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setTranslationRate ( const DtVector &  val,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setMaxTranslationRate ( const DtVector &  val,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setAzimuth ( double  angle,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setMinAzimuth ( double  angle,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setMaxAzimuth ( double  angle,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setAzimuthRate ( double  rate,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setMaxAzimuthRate ( double  rate,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setElevation ( double  angle,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setMinElevation ( double  angle,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setMaxElevation ( double  angle,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setElevationRate ( double  rate,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setMaxElevationRate ( double  rate,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setRotation ( double  angle,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setMinRotation ( double  angle,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setMaxRotation ( double  angle,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setRotationRate ( double  rate,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::setMaxRotationRate ( double  rate,
bool  isSpecified = true 
)
overridevirtual

Overridden such that the main component can be marked as updated, hopefully allowing for better performance.

Reimplemented from DtRwArtPartState.

virtual void makVrf::DtArticulatedPartStateRepository::addPartDeletedCallback ( DtArticulatedPartStateRepositoryDeletedCallbackList::DtCallbackFunctionType  fcn,
void *  usrData 
) const
virtual

Registers a callback to be invoked when this articulated part is destroyed.

Parameters
fcnThe callback function to register.
usrDataUser data pointer passed to the callback.
virtual void makVrf::DtArticulatedPartStateRepository::removePartDeletedCallback ( DtArticulatedPartStateRepositoryDeletedCallbackList::DtCallbackFunctionType  fcn,
void *  usrData 
) const
virtual

Removes a previously registered deletion callback.

Parameters
fcnThe callback function to remove.
usrDataUser data pointer that was passed when the callback was registered.
virtual void makVrf::DtArticulatedPartStateRepository::partUpdated ( )
protectedvirtual

Notifies the parent articulated part state component that this part's state has changed.

void makVrf::DtArticulatedPartStateRepository::preventConfigValueReadAndWrite ( )
protected

Prevents reading and writing of configuration values. Only run time settings will be read or written.

virtual void makVrf::DtArticulatedPartStateRepository::copyParts ( const DtArticulatedPartStateRepository &  orig)
protectedvirtual

Copies all child part attachments from another repository.

Parameters
origThe repository to copy parts from.
virtual void makVrf::DtArticulatedPartStateRepository::setParentsForAllParts ( )
protectedvirtual

Traverses all child parts and updates their parents.

virtual DtTaitBryan makVrf::DtArticulatedPartStateRepository::parentLocalOrientation ( ) const
protectedvirtual

Returns the local database orientation of the parent entity. Used to transform between body and local coordinate frames.

virtual void makVrf::DtArticulatedPartStateRepository::destroyLegionParts ( )
protectedvirtual

Destroys the Legion HLA object instances associated with this part and clears the instance handle and parameter metric map.

Member Data Documentation

const Coordinate_System* makVrf::DtArticulatedPartStateRepository::myCoordinateSystem
protected

Coordinate system used for local and world position/orientation calculations.

DtRwInt makVrf::DtArticulatedPartStateRepository::myPartType
protected

The DIS/RPR articulated part type identifier for this part.

DtArtPartMap makVrf::DtArticulatedPartStateRepository::myParts
protected

Map of child articulated part repositories attached to this part, keyed by part type.

DtStateData* makVrf::DtArticulatedPartStateRepository::myParentObject
protected

The entity state data object that this part is ultimately attached to.

DtArticulatedPartStateComponent* makVrf::DtArticulatedPartStateRepository::myParentComponent
protected

Cached pointer to the parent entity's articulated part state component.

DtArticulatedPartStateRepository* makVrf::DtArticulatedPartStateRepository::myParentPart
protected

The parent articulated part this part is attached to, or null if attached directly to the entity.

DtRwReal makVrf::DtArticulatedPartStateRepository::myAzimuthNeutralOffset
protected

Azimuth neutral offset in radians; the azimuth is measured relative to this value.

DtRwReal makVrf::DtArticulatedPartStateRepository::myElevationNeutralOffset
protected

Elevation neutral offset in radians; the elevation is measured relative to this value.

DtRwTemplatedIntList makVrf::DtArticulatedPartStateRepository::myParameterTypes
protected

List of parameter types (e.g., position, azimuth, elevation) supported by this part.

bool makVrf::DtArticulatedPartStateRepository::myPublishOnLegionNetwork
protected

True if this part publishes its state to the Legion HLA network.

bool makVrf::DtArticulatedPartStateRepository::myIsWritable
protected

True if this part's Legion HLA instance is locally owned and writable.

UInt64 makVrf::DtArticulatedPartStateRepository::myArticulatedPartInstanceHandle
protected

Legion HLA instance handle for this articulated part's network object.

LegionParameterMetrics makVrf::DtArticulatedPartStateRepository::myLegionParameterMetrics
protected

Legion HLA instance handles for each parameter metric published by this part.

DtArticulatedPartStateRepositoryDeletedCallbackList makVrf::DtArticulatedPartStateRepository::myCallbackList
mutableprotected

Callbacks invoked just before this part is destroyed.


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)