VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
DtDIGuyObjectStateRepository Class Reference

Instances of DtDIGuyObjectStateRepository are used to store state data for DIGuyObject objects. More...

+ Inheritance diagram for DtDIGuyObjectStateRepository:
+ Collaboration diagram for DtDIGuyObjectStateRepository:

Public Member Functions

 DtDIGuyObjectStateRepository ()
 Constructor. More...
 
virtual ~DtDIGuyObjectStateRepository ()
 Destructor. More...
 
 DtDIGuyObjectStateRepository (const DtDIGuyObjectStateRepository &orig)
 Copy Constructor. More...
 
DtDIGuyObjectStateRepositoryoperator= (const DtDIGuyObjectStateRepository &orig)
 Assignment Operator. More...
 
virtual DtStateRepositoryclone (bool copy) const
 Return a copy/empty object of the same type as this. More...
 
virtual void printData () const
 Print data to the DtInfo stream. More...
 
virtual void printDataToStream (std::ostream &stream) const
 Print data to the specified stream. More...
 
virtual void setEntityIdentifier (const DtEntityIdentifier &val)
 Set the EntityIdentifier. More...
 
virtual const DtEntityIdentifierentityIdentifier () const
 Get the EntityIdentifier.". More...
 
virtual void setObjectIdentifier (const DtGlobalObjectDesignator &val)
 Set the HostObjectIdentifier. More...
 
virtual const
DtGlobalObjectDesignator
objectIdentifier () const
 Get the HostObjectIdentifier.". More...
 
virtual void setType (const DtString &newType, const DtString &newAppearance)
 When updating type, it will typically make sense to also update the Appearance. More...
 
virtual void setType (const DtString &val)
 
virtual const DtStringtype () const
 
virtual void setBodyAppearance (const DtString &val)
 Set/Get body appearance. More...
 
virtual const DtStringbodyAppearance () const
 Set/Get body appearance. More...
 
virtual void setHeadAppearance (const DtString &val)
 Set/Get head appearance (only supported in DI-Guy 13 and later) More...
 
virtual const DtStringheadAppearance () const
 Set/Get head appearance (only supported in DI-Guy 13 and later) More...
 
virtual void setBodyWeight (double val)
 Set/Get body weight. More...
 
virtual double bodyWeight () const
 Set/Get body weight. More...
 
virtual void setItemAppearance (const DtString &val)
 Set/Get item appearance (only supported in DI-Guy 13 and later) More...
 
virtual const DtStringitemAppearance () const
 Set/Get item appearance (only supported in DI-Guy 13 and later) More...
 
virtual bool setAccessoryAppearance (unsigned int index, const DtString &val)
 Set/Get accessory appearance (only supported in DI-Guy 13 and later) If the index is larger than the count, this will do nothing and return false. More...
 
virtual const DtStringaccessoryAppearance (unsigned int index) const
 Set/Get accessory appearance (only supported in DI-Guy 13 and later) If the index is larger than the count, this will do nothing and return false. More...
 
virtual void setAccessoryAppearanceCount (unsigned int index)
 Set/Get the accessory appearance count (only supported in DI-Guy 13 and later). More...
 
virtual unsigned int accessoryAppearanceCount () const
 Set/Get the accessory appearance count (only supported in DI-Guy 13 and later). More...
 
virtual void setAction (const DtString &val)
 Set/Get action. More...
 
virtual void setAction (const DtString &val, bool paused, double speed=0.0, bool useActionPositioning=false, const DtVector &offset=DtVector(0, 0, 0), double transitionSpeed=1.0)
 Set/Get action. More...
 
virtual const DtStringaction () const
 Set/Get action. More...
 
virtual bool useActionPositioning () const
 Set/Get action. More...
 
virtual const DtVectoractionOffset () const
 Set/Get action. More...
 
virtual void setActionPaused (bool paused)
 Set/Get action pause state. More...
 
virtual bool isActionPaused () const
 Set/Get action pause state. More...
 
virtual double actionSpeed () const
 Set/Get action speed. More...
 
virtual void setActionSpeed (double speed)
 Set/Get action speed. More...
 
virtual double transitionSpeed () const
 Set/Get transition speed. More...
 
virtual void setTransitionSpeed (double speed)
 Set/Get transition speed. More...
 
virtual void setVisible (bool visibile)
 Set/Get visible state. More...
 
virtual bool isVisible () const
 Set/Get visible state. More...
 
virtual const DtVectorcharacterScale () const
 Set/Get character scale (only supported in DI-Guy 13 and later) More...
 
virtual void setCharacterScale (const DtVector &scale)
 Set/Get character scale (only supported in DI-Guy 13 and later) More...
 
virtual void setUnit (const DtPatchIdentifier &patchId)
 Set/Get patch values for Rank, Unit, Personal Unit, and Name. More...
 
virtual const DtPatchIdentifierunit () const
 Set/Get patch values for Rank, Unit, Personal Unit, and Name. More...
 
virtual void setPersonalUnit (const DtPatchIdentifier &patchId)
 Set/Get patch values for Rank, Unit, Personal Unit, and Name. More...
 
virtual const DtPatchIdentifierpersonalUnit () const
 Set/Get patch values for Rank, Unit, Personal Unit, and Name. More...
 
virtual void setRank (const DtPatchIdentifier &patchId)
 Set/Get patch values for Rank, Unit, Personal Unit, and Name. More...
 
virtual const DtPatchIdentifierrank () const
 Set/Get patch values for Rank, Unit, Personal Unit, and Name. More...
 
virtual void setName (const DtString &val)
 Set/Get patch values for Rank, Unit, Personal Unit, and Name. More...
 
virtual const DtStringname () const
 Set/Get patch values for Rank, Unit, Personal Unit, and Name. More...
 
- Public Member Functions inherited from DtStateRepository
 DtStateRepository ()
 default constructor More...
 
 DtStateRepository (const DtStateRepository &orig)
 copy constructor More...
 
virtual ~DtStateRepository ()
 destructor More...
 
DtStateRepositoryoperator= (const DtStateRepository &orig)
 assignment operator More...
 
virtual void setGlobalId (const DtString &id)
 Get/Set global identifier, or name. More...
 
virtual const DtStringglobalId () const
 
virtual void setLocalId (const DtObjectId &id)
 Get/Set local identifier, or handle. More...
 
virtual const DtObjectIdlocalId () const
 
virtual bool publishesAttribute (const RTI::AttributeHandle &val) const
 Returns true if the attribute is published. More...
 
virtual void setAttributeByHandle (const RTI::AttributeHandle &attrHdl, const char *attrValue, unsigned size)
 Set the attribute with the given handle. More...
 
virtual const char * getAttributeByHandle (const RTI::AttributeHandle &attrHdl, unsigned &size) const
 Get a pointer to attribute value for the attribute with the given handle. More...
 
virtual void setAttributeByName (const DtString &attrName, const char *attrValue, unsigned size, DtHlaObject *hlaObj)
 Set the attribute with the given name. Note that in order to do this you must provide a DtHlaObject. More...
 
virtual const char * getAttributeByName (const DtString &attrName, unsigned &size, DtHlaObject *hlaObj) const
 Get a pointer to attribute value for the attribute with the given name. More...
 
virtual const char * getAttributeByHandleIfUpdated (const RTI::AttributeHandle &attrHdl, unsigned &size) const
 Get a pointer to attribute value for the attribute with the given handle, but only if it's been updated since the last time we read it. More...
 
virtual
DtStateRepositoryExtension
stateRepositoryExtension (DtString srExtName) const
 Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found. More...
 
virtual std::vector< DtStringstateRepositoryExtensionNames () const
 Returns a set of the registered state repository extension names. More...
 
virtual void setStateRepositoryExtensions (std::map< DtString, DtStateRepositoryExtension * > extensions)
 Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found. More...
 
virtual const std::map
< DtString,
DtStateRepositoryExtension * > 
stateRepositoryExtensions () const
 Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found. More...
 

Static Public Member Functions

static
DtDIGuyObjectStateRepository
create ()
 Create a DtDIGuyObjectStateRepository. More...
 
- Static Public Member Functions inherited from DtStateRepository
static bool addStateRepositoryExtension (DtString srExtName, DtSrExtCreatorFnc fnc)
 The following functions are for extending state repositories through State Repository Extension classes. More...
 

Protected Attributes

DtEntityIdentifier myEntityIdentifier
 
DtGlobalObjectDesignator myObjectIdentifier
 
DtString myAction
 
bool myActionPaused
 
double myActionSpeed
 
bool myVisible
 
DtString myBodyAppearance
 
DtString myHeadAppearance
 
DtString myItemAppearance
 
std::vector< DtStringmyAccessoryAppearance
 
DtString myType
 
DtDiGuyLinkShapeMap myShapeVariations
 
DtVector myCharacterScale
 
bool myIsShapeVariationsDirty
 
bool myUseActionPositioningFlag
 
DtVector myActionOffset
 
double myTransitionSpeed
 
double myBodyWeight
 
DtPatchIdentifier myUnit
 
DtPatchIdentifier myPersonalUnit
 
DtPatchIdentifier myRank
 
DtString myName
 
virtual void addShapeVariation (unsigned int linkIndex, unsigned int shapeIndex, const DtDiGuyPixelData &pixelData)
 Set/Get share variations (only supported in DI-Guy 13 and later) More...
 
virtual void removeShapeVariation (unsigned int linkIndex, unsigned int shapeIndex)
 Set/Get share variations (only supported in DI-Guy 13 and later) More...
 
virtual const DtDiGuyPixelDatashapeVariation (unsigned int linkIndex, unsigned int shapeIndex, bool &dataIsValid) const
 Set/Get share variations (only supported in DI-Guy 13 and later) More...
 
virtual bool getShapeVariation (unsigned int linkIndex, unsigned int shapeIndex, DtDiGuyPixelData &pixelData) const
 Set/Get share variations (only supported in DI-Guy 13 and later) More...
 
virtual void setShapeVariations (const DtDiGuyLinkShapeMap &variations)
 Set/Get share variations (only supported in DI-Guy 13 and later) More...
 
virtual const DtDiGuyLinkShapeMapshapeVariations () const
 Set/Get share variations (only supported in DI-Guy 13 and later) More...
 
virtual DtDiGuyLinkShapeMapshapeVariations ()
 Set/Get share variations (only supported in DI-Guy 13 and later) More...
 
virtual void setShapeVariationsDirty ()
 Flags the shape variation data as dirty. More...
 
virtual bool isShapeVariationsDirty () const
 Indicates if variation data received over the network was flagged as changed or has been modified since last network update. More...
 
virtual void clearShapeVariationsDirty () const
 Clears dirty flag. More...
 
static const DtDiGuyPixelDatashapeVariation (const DtDiGuyLinkShapeMap &shapeVariations, int linkIndex, unsigned int shapeIndex, bool &dataIsValid)
 Set/Get share variations (only supported in DI-Guy 13 and later) More...
 

Additional Inherited Members

- Public Types inherited from DtStateRepository
typedef std::map< DtString,
DtStateRepositoryExtension * > 
DtStateRepositoryExtensionMap
 
- Public Attributes inherited from DtStateRepository
DtString myGlobalId
 
DtObjectId myLocalId
 
std::map< RTI::AttributeHandle,
DtGenericAttributeInfo * > 
myAttributesByHandle
 Attributes by handle. More...
 
DtStateRepositoryExtensionMap myStateRepositoryExtensionMap
 
- Static Public Attributes inherited from DtStateRepository
static std::map< DtString,
DtSrExtCreatorFnc
theStateRepositoryExtensionCreatorMap
 

Detailed Description

Instances of DtDIGuyObjectStateRepository are used to store state data for DIGuyObject objects.

Constructor & Destructor Documentation

DtDIGuyObjectStateRepository::DtDIGuyObjectStateRepository ( )

Constructor.

virtual DtDIGuyObjectStateRepository::~DtDIGuyObjectStateRepository ( )
virtual

Destructor.

DtDIGuyObjectStateRepository::DtDIGuyObjectStateRepository ( const DtDIGuyObjectStateRepository orig)

Copy Constructor.

Member Function Documentation

virtual const DtString& DtDIGuyObjectStateRepository::accessoryAppearance ( unsigned int  index) const
virtual

Set/Get accessory appearance (only supported in DI-Guy 13 and later) If the index is larger than the count, this will do nothing and return false.

virtual unsigned int DtDIGuyObjectStateRepository::accessoryAppearanceCount ( ) const
virtual

Set/Get the accessory appearance count (only supported in DI-Guy 13 and later).

virtual const DtString& DtDIGuyObjectStateRepository::action ( ) const
virtual

Set/Get action.

virtual const DtVector& DtDIGuyObjectStateRepository::actionOffset ( ) const
virtual

Set/Get action.

virtual double DtDIGuyObjectStateRepository::actionSpeed ( ) const
virtual

Set/Get action speed.

virtual void DtDIGuyObjectStateRepository::addShapeVariation ( unsigned int  linkIndex,
unsigned int  shapeIndex,
const DtDiGuyPixelData pixelData 
)
virtual

Set/Get share variations (only supported in DI-Guy 13 and later)

virtual const DtString& DtDIGuyObjectStateRepository::bodyAppearance ( ) const
virtual

Set/Get body appearance.

virtual double DtDIGuyObjectStateRepository::bodyWeight ( ) const
virtual

Set/Get body weight.

virtual const DtVector& DtDIGuyObjectStateRepository::characterScale ( ) const
virtual

Set/Get character scale (only supported in DI-Guy 13 and later)

virtual void DtDIGuyObjectStateRepository::clearShapeVariationsDirty ( ) const
virtual

Clears dirty flag.

virtual DtStateRepository* DtDIGuyObjectStateRepository::clone ( bool  copy) const
virtual

Return a copy/empty object of the same type as this.

Reimplemented from DtStateRepository.

static DtDIGuyObjectStateRepository* DtDIGuyObjectStateRepository::create ( )
static
virtual const DtEntityIdentifier& DtDIGuyObjectStateRepository::entityIdentifier ( ) const
virtual

Get the EntityIdentifier.".

virtual bool DtDIGuyObjectStateRepository::getShapeVariation ( unsigned int  linkIndex,
unsigned int  shapeIndex,
DtDiGuyPixelData pixelData 
) const
virtual

Set/Get share variations (only supported in DI-Guy 13 and later)

virtual const DtString& DtDIGuyObjectStateRepository::headAppearance ( ) const
virtual

Set/Get head appearance (only supported in DI-Guy 13 and later)

virtual bool DtDIGuyObjectStateRepository::isActionPaused ( ) const
virtual

Set/Get action pause state.

virtual bool DtDIGuyObjectStateRepository::isShapeVariationsDirty ( ) const
virtual

Indicates if variation data received over the network was flagged as changed or has been modified since last network update.

virtual bool DtDIGuyObjectStateRepository::isVisible ( ) const
virtual

Set/Get visible state.

virtual const DtString& DtDIGuyObjectStateRepository::itemAppearance ( ) const
virtual

Set/Get item appearance (only supported in DI-Guy 13 and later)

virtual const DtString& DtDIGuyObjectStateRepository::name ( ) const
virtual

Set/Get patch values for Rank, Unit, Personal Unit, and Name.

virtual const DtGlobalObjectDesignator& DtDIGuyObjectStateRepository::objectIdentifier ( ) const
virtual

Get the HostObjectIdentifier.".

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

Assignment Operator.

virtual const DtPatchIdentifier& DtDIGuyObjectStateRepository::personalUnit ( ) const
virtual

Set/Get patch values for Rank, Unit, Personal Unit, and Name.

virtual void DtDIGuyObjectStateRepository::printData ( ) const
virtual

Print data to the DtInfo stream.

Reimplemented from DtStateRepository.

virtual void DtDIGuyObjectStateRepository::printDataToStream ( std::ostream &  stream) const
virtual

Print data to the specified stream.

Reimplemented from DtStateRepository.

virtual const DtPatchIdentifier& DtDIGuyObjectStateRepository::rank ( ) const
virtual

Set/Get patch values for Rank, Unit, Personal Unit, and Name.

virtual void DtDIGuyObjectStateRepository::removeShapeVariation ( unsigned int  linkIndex,
unsigned int  shapeIndex 
)
virtual

Set/Get share variations (only supported in DI-Guy 13 and later)

virtual bool DtDIGuyObjectStateRepository::setAccessoryAppearance ( unsigned int  index,
const DtString val 
)
virtual

Set/Get accessory appearance (only supported in DI-Guy 13 and later) If the index is larger than the count, this will do nothing and return false.

virtual void DtDIGuyObjectStateRepository::setAccessoryAppearanceCount ( unsigned int  index)
virtual

Set/Get the accessory appearance count (only supported in DI-Guy 13 and later).

virtual void DtDIGuyObjectStateRepository::setAction ( const DtString val)
virtual

Set/Get action.

virtual void DtDIGuyObjectStateRepository::setAction ( const DtString val,
bool  paused,
double  speed = 0.0,
bool  useActionPositioning = false,
const DtVector offset = DtVector(0, 0, 0),
double  transitionSpeed = 1.0 
)
virtual

Set/Get action.

virtual void DtDIGuyObjectStateRepository::setActionPaused ( bool  paused)
virtual

Set/Get action pause state.

virtual void DtDIGuyObjectStateRepository::setActionSpeed ( double  speed)
virtual

Set/Get action speed.

virtual void DtDIGuyObjectStateRepository::setBodyAppearance ( const DtString val)
virtual

Set/Get body appearance.

virtual void DtDIGuyObjectStateRepository::setBodyWeight ( double  val)
virtual

Set/Get body weight.

virtual void DtDIGuyObjectStateRepository::setCharacterScale ( const DtVector scale)
virtual

Set/Get character scale (only supported in DI-Guy 13 and later)

virtual void DtDIGuyObjectStateRepository::setEntityIdentifier ( const DtEntityIdentifier val)
virtual

Set the EntityIdentifier.

virtual void DtDIGuyObjectStateRepository::setHeadAppearance ( const DtString val)
virtual

Set/Get head appearance (only supported in DI-Guy 13 and later)

virtual void DtDIGuyObjectStateRepository::setItemAppearance ( const DtString val)
virtual

Set/Get item appearance (only supported in DI-Guy 13 and later)

virtual void DtDIGuyObjectStateRepository::setName ( const DtString val)
virtual

Set/Get patch values for Rank, Unit, Personal Unit, and Name.

virtual void DtDIGuyObjectStateRepository::setObjectIdentifier ( const DtGlobalObjectDesignator val)
virtual

Set the HostObjectIdentifier.

virtual void DtDIGuyObjectStateRepository::setPersonalUnit ( const DtPatchIdentifier patchId)
virtual

Set/Get patch values for Rank, Unit, Personal Unit, and Name.

virtual void DtDIGuyObjectStateRepository::setRank ( const DtPatchIdentifier patchId)
virtual

Set/Get patch values for Rank, Unit, Personal Unit, and Name.

virtual void DtDIGuyObjectStateRepository::setShapeVariations ( const DtDiGuyLinkShapeMap variations)
virtual

Set/Get share variations (only supported in DI-Guy 13 and later)

virtual void DtDIGuyObjectStateRepository::setShapeVariationsDirty ( )
virtual

Flags the shape variation data as dirty.

virtual void DtDIGuyObjectStateRepository::setTransitionSpeed ( double  speed)
virtual

Set/Get transition speed.

virtual void DtDIGuyObjectStateRepository::setType ( const DtString newType,
const DtString newAppearance 
)
virtual

When updating type, it will typically make sense to also update the Appearance.

Prefer the setType form that also updates appearance.

virtual void DtDIGuyObjectStateRepository::setType ( const DtString val)
virtual
virtual void DtDIGuyObjectStateRepository::setUnit ( const DtPatchIdentifier patchId)
virtual

Set/Get patch values for Rank, Unit, Personal Unit, and Name.

virtual void DtDIGuyObjectStateRepository::setVisible ( bool  visibile)
virtual

Set/Get visible state.

virtual const DtDiGuyPixelData& DtDIGuyObjectStateRepository::shapeVariation ( unsigned int  linkIndex,
unsigned int  shapeIndex,
bool dataIsValid 
) const
virtual

Set/Get share variations (only supported in DI-Guy 13 and later)

static const DtDiGuyPixelData& DtDIGuyObjectStateRepository::shapeVariation ( const DtDiGuyLinkShapeMap shapeVariations,
int  linkIndex,
unsigned int  shapeIndex,
bool dataIsValid 
)
static

Set/Get share variations (only supported in DI-Guy 13 and later)

virtual const DtDiGuyLinkShapeMap& DtDIGuyObjectStateRepository::shapeVariations ( ) const
virtual

Set/Get share variations (only supported in DI-Guy 13 and later)

virtual DtDiGuyLinkShapeMap& DtDIGuyObjectStateRepository::shapeVariations ( )
virtual

Set/Get share variations (only supported in DI-Guy 13 and later)

virtual double DtDIGuyObjectStateRepository::transitionSpeed ( ) const
virtual

Set/Get transition speed.

virtual const DtString& DtDIGuyObjectStateRepository::type ( ) const
virtual
virtual const DtPatchIdentifier& DtDIGuyObjectStateRepository::unit ( ) const
virtual

Set/Get patch values for Rank, Unit, Personal Unit, and Name.

virtual bool DtDIGuyObjectStateRepository::useActionPositioning ( ) const
virtual

Set/Get action.

Member Data Documentation

std::vector<DtString> DtDIGuyObjectStateRepository::myAccessoryAppearance
protected
DtString DtDIGuyObjectStateRepository::myAction
protected
DtVector DtDIGuyObjectStateRepository::myActionOffset
protected
bool DtDIGuyObjectStateRepository::myActionPaused
protected
double DtDIGuyObjectStateRepository::myActionSpeed
protected
DtString DtDIGuyObjectStateRepository::myBodyAppearance
protected
double DtDIGuyObjectStateRepository::myBodyWeight
protected
DtVector DtDIGuyObjectStateRepository::myCharacterScale
protected
DtEntityIdentifier DtDIGuyObjectStateRepository::myEntityIdentifier
protected
DtString DtDIGuyObjectStateRepository::myHeadAppearance
protected
bool DtDIGuyObjectStateRepository::myIsShapeVariationsDirty
mutableprotected
DtString DtDIGuyObjectStateRepository::myItemAppearance
protected
DtString DtDIGuyObjectStateRepository::myName
protected
DtGlobalObjectDesignator DtDIGuyObjectStateRepository::myObjectIdentifier
protected
DtPatchIdentifier DtDIGuyObjectStateRepository::myPersonalUnit
protected
DtPatchIdentifier DtDIGuyObjectStateRepository::myRank
protected
DtDiGuyLinkShapeMap DtDIGuyObjectStateRepository::myShapeVariations
protected
double DtDIGuyObjectStateRepository::myTransitionSpeed
protected
DtString DtDIGuyObjectStateRepository::myType
protected
DtPatchIdentifier DtDIGuyObjectStateRepository::myUnit
protected
bool DtDIGuyObjectStateRepository::myUseActionPositioningFlag
protected
bool DtDIGuyObjectStateRepository::myVisible
protected

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

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)