![]() |
VR-Link API Documentation for DIS
|
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... | |
| DtDIGuyObjectStateRepository & | operator= (const DtDIGuyObjectStateRepository &orig) |
| Assignment Operator. More... | |
| virtual DtStateRepository * | clone (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 DtEntityIdentifier & | entityIdentifier () 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 DtString & | type () const |
| virtual void | setBodyAppearance (const DtString &val) |
| Set/Get body appearance. More... | |
| virtual const DtString & | bodyAppearance () 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 DtString & | headAppearance () 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 DtString & | itemAppearance () 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 DtString & | accessoryAppearance (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 DtString & | action () const |
| Set/Get action. More... | |
| virtual bool | useActionPositioning () const |
| Set/Get action. More... | |
| virtual const DtVector & | actionOffset () 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 DtVector & | characterScale () 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 DtPatchIdentifier & | unit () 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 DtPatchIdentifier & | personalUnit () 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 DtPatchIdentifier & | rank () 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 DtString & | name () 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... | |
| DtStateRepository & | operator= (const DtStateRepository &orig) |
| assignment operator More... | |
| virtual void | setGlobalId (const DtGlobalObjectDesignator &id) |
| Get/Set global identifier, or name. More... | |
| virtual const DtGlobalObjectDesignator & | globalId () const |
| virtual unsigned int | numberOfAttributeRecords () const |
| virtual void | setAttributeRecords (const DtAttributeRecordSet &records) |
| The following functions are related to the extendability part of DIS 7. More... | |
| virtual void | setAttributeRecords (const DtStandardVariableRecordPtrVector &records) |
| Replace the attribute record set with the records in the given vector. More... | |
| virtual const DtAttributeRecordSet & | attributeRecordSet () const |
| Return the attribute record set. More... | |
| virtual DtAttributeRecordSet & | attributeRecordSet () |
| Return the attribute record set. More... | |
| virtual const DtStandardVariableRecordPtrVector & | attributeRecords () const |
| Return the attribute records Any changes to the returned record(s) will modify the records in the recordSet. More... | |
| virtual const DtStandardVariableRecordPtrVector & | attributeRecords (unsigned int recordType) const |
| Return the attribute records of the given type (all records if type is 0) Any changes to the returned record(s) will modify the records in the recordSet. More... | |
| virtual DtStandardVariableRecord * | attributeRecord (unsigned int recordType) const |
| Return the (first) attribute record of the given type (first record if type is 0) Any changes to the returned record will modify the record in the recordSet. More... | |
| virtual int | removeAttributeRecord (unsigned int recordType, bool removeAll=true) |
| Remove and discard the first record of the given record type (if there is one) or all them. More... | |
| virtual DtStandardVariableRecordPtrVector & | getAttributeRecords (unsigned int recordType, DtStandardVariableRecordPtrVector &vec) const |
| Get the attribute records of the given type (all if type is 0) Any changes to the returned record(s) will modify the records in the recordSet. More... | |
| virtual DtStandardVariableRecordPtrVector & | getAttributeRecords (DtStandardVariableRecordPtrVector &vec) const |
| Get the attribute records Any changes to the returned record(s) will modify the records in the recordSet. More... | |
| virtual void | addAttributeRecord (DtStandardVariableRecord *record) |
| Add a clone of given record to the attribute record set. More... | |
| virtual void | addAttributeRecord (std::auto_ptr< DtStandardVariableRecord > record) |
| Add the given record to the attribute record set. More... | |
| virtual void | clearAttributeRecords () |
| Clear all records. 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< DtString > | stateRepositoryExtensionNames () 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< DtString > | myAccessoryAppearance |
| 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 DtDiGuyPixelData & | shapeVariation (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 DtDiGuyLinkShapeMap & | shapeVariations () const |
| Set/Get share variations (only supported in DI-Guy 13 and later) More... | |
| virtual DtDiGuyLinkShapeMap & | shapeVariations () |
| 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 DtDiGuyPixelData & | shapeVariation (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 | |
| DtGlobalObjectDesignator | myGlobalId |
| DtAttributeRecordSet | myAttributeRecords |
| DtStandardVariableRecordPtrVector | myReturnedRecords |
| DtStateRepositoryExtensionMap | myStateRepositoryExtensionMap |
Static Public Attributes inherited from DtStateRepository | |
| static std::map< DtString, DtSrExtCreatorFnc > | theStateRepositoryExtensionCreatorMap |
Instances of DtDIGuyObjectStateRepository are used to store state data for DIGuyObject objects.
| DtDIGuyObjectStateRepository::DtDIGuyObjectStateRepository | ( | ) |
Constructor.
|
virtual |
Destructor.
| DtDIGuyObjectStateRepository::DtDIGuyObjectStateRepository | ( | const DtDIGuyObjectStateRepository & | orig | ) |
Copy Constructor.
|
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 |
Set/Get the accessory appearance count (only supported in DI-Guy 13 and later).
|
virtual |
Set/Get action.
|
virtual |
Set/Get action.
|
virtual |
Set/Get action speed.
|
virtual |
Set/Get share variations (only supported in DI-Guy 13 and later)
|
virtual |
Set/Get body appearance.
|
virtual |
Set/Get body weight.
|
virtual |
Set/Get character scale (only supported in DI-Guy 13 and later)
|
virtual |
Clears dirty flag.
|
virtual |
Return a copy/empty object of the same type as this.
Reimplemented from DtStateRepository.
|
static |
Create a DtDIGuyObjectStateRepository.
|
virtual |
Get the EntityIdentifier.".
|
virtual |
Set/Get share variations (only supported in DI-Guy 13 and later)
|
virtual |
Set/Get head appearance (only supported in DI-Guy 13 and later)
|
virtual |
Set/Get action pause state.
|
virtual |
Indicates if variation data received over the network was flagged as changed or has been modified since last network update.
|
virtual |
Set/Get visible state.
|
virtual |
Set/Get item appearance (only supported in DI-Guy 13 and later)
|
virtual |
Set/Get patch values for Rank, Unit, Personal Unit, and Name.
|
virtual |
Get the HostObjectIdentifier.".
| DtDIGuyObjectStateRepository& DtDIGuyObjectStateRepository::operator= | ( | const DtDIGuyObjectStateRepository & | orig | ) |
Assignment Operator.
|
virtual |
Set/Get patch values for Rank, Unit, Personal Unit, and Name.
|
virtual |
Print data to the DtInfo stream.
Reimplemented from DtStateRepository.
|
virtual |
Print data to the specified stream.
Reimplemented from DtStateRepository.
|
virtual |
Set/Get patch values for Rank, Unit, Personal Unit, and Name.
|
virtual |
Set/Get share variations (only supported in DI-Guy 13 and later)
|
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 |
Set/Get the accessory appearance count (only supported in DI-Guy 13 and later).
|
virtual |
Set/Get action.
|
virtual |
Set/Get action.
|
virtual |
Set/Get action pause state.
|
virtual |
Set/Get action speed.
|
virtual |
Set/Get body appearance.
|
virtual |
Set/Get body weight.
|
virtual |
Set/Get character scale (only supported in DI-Guy 13 and later)
|
virtual |
Set the EntityIdentifier.
|
virtual |
Set/Get head appearance (only supported in DI-Guy 13 and later)
|
virtual |
Set/Get item appearance (only supported in DI-Guy 13 and later)
|
virtual |
Set/Get patch values for Rank, Unit, Personal Unit, and Name.
|
virtual |
Set the HostObjectIdentifier.
|
virtual |
Set/Get patch values for Rank, Unit, Personal Unit, and Name.
|
virtual |
Set/Get patch values for Rank, Unit, Personal Unit, and Name.
|
virtual |
Set/Get share variations (only supported in DI-Guy 13 and later)
|
virtual |
Flags the shape variation data as dirty.
|
virtual |
Set/Get transition speed.
|
virtual |
When updating type, it will typically make sense to also update the Appearance.
Prefer the setType form that also updates appearance.
|
virtual |
|
virtual |
Set/Get patch values for Rank, Unit, Personal Unit, and Name.
|
virtual |
Set/Get visible state.
|
virtual |
Set/Get share variations (only supported in DI-Guy 13 and later)
|
static |
Set/Get share variations (only supported in DI-Guy 13 and later)
|
virtual |
Set/Get share variations (only supported in DI-Guy 13 and later)
|
virtual |
Set/Get share variations (only supported in DI-Guy 13 and later)
|
virtual |
Set/Get transition speed.
|
virtual |
|
virtual |
Set/Get patch values for Rank, Unit, Personal Unit, and Name.
|
virtual |
Set/Get action.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |