![]() |
VR-Forces 5.0.3 Developer's Guide
|
Stores data representing all the possible appearances, animations, hand items, heads, etc. that are available to a particular character type. It is used by the sim engine at runtime. Populated from both DI-Guy instance and character_animations_table.mtl file.

Public Types | |
| typedef std::map< DtString, DtDiGuyAnimationSharedPtr > | TaskAnimationMap |
| typedef TaskAnimationMap::iterator | TaskAnimationMapIterator |
| typedef TaskAnimationMap::const_iterator | const_TaskAnimationMapIterator |
| typedef std::list < DtDiGuyAnimationSharedPtr > | UnprocessedAnimationList |
| typedef UnprocessedAnimationList::iterator | UnprocessedAnimationListIterator |
| typedef UnprocessedAnimationList::const_iterator | const_UnprocessedAnimationListIterator |
Static Public Member Functions | |
| static void | setCreatorFcn (const DtDiGuyIntrinsicAnimationMapCreatorFcn &fcn) |
Protected Member Functions | |
| virtual void | readInAnimationDataFromDiGuyScenario () |
| void | setUpTypeFieldToIntMap () |
Static Protected Attributes | |
| static std::map< DtString, int > | myTypeFieldNameToIntMap |
| static std::vector< DtString > | myTypeFieldNameVect |
| static DtDiGuyIntrinsicAnimationMapCreatorFcn | theDiGuyIntrinsicAnimationMapCreatorFcn |
| typedef std::map<DtString, DtDiGuyAnimationSharedPtr> DtDiGuyCharacterData::TaskAnimationMap |
| typedef TaskAnimationMap::iterator DtDiGuyCharacterData::TaskAnimationMapIterator |
| typedef TaskAnimationMap::const_iterator DtDiGuyCharacterData::const_TaskAnimationMapIterator |
| typedef std::list<DtDiGuyAnimationSharedPtr> DtDiGuyCharacterData::UnprocessedAnimationList |
| typedef UnprocessedAnimationList::iterator DtDiGuyCharacterData::UnprocessedAnimationListIterator |
| typedef UnprocessedAnimationList::const_iterator DtDiGuyCharacterData::const_UnprocessedAnimationListIterator |
| DtDiGuyCharacterData::DtDiGuyCharacterData | ( | ) |
| DtDiGuyCharacterData::DtDiGuyCharacterData | ( | const DtString & | name | ) |
| DtDiGuyCharacterData::DtDiGuyCharacterData | ( | const DtDiGuyCharacterData & | orig | ) |
|
virtual |
| DtDiGuyCharacterData& DtDiGuyCharacterData::operator= | ( | const DtDiGuyCharacterData & | orig | ) |
|
virtual |
|
virtual |
The name of the character type.
|
virtual |
The name of the character type.
|
virtual |
|
virtual |
|
virtual |
Look up a particular animation.
|
virtual |
The list of possible appearances for this character.
|
virtual |
Add a new possible appearance for the character.
|
virtual |
Add a new possible gesture for the character.
|
virtual |
|
virtual |
The list of possible hand items for this character.
|
virtual |
Add a new possible hand item for the character.
|
virtual |
The list of possible heads for this character and body appearance.
|
virtual |
Add a new possible head for the character.
|
virtual |
Adds the value to the next type map field that hasn't yet been set.
Gets the name of a type map field (i.e. name of category)
Get the index of a type map field name.
|
virtual |
Returns string list of all the animations and their user friendly display name.
| void DtDiGuyCharacterData::addAnimation | ( | DtDiGuyAnimationSharedPtr | animation | ) |
readInAnimationDataFromDiGuyScenario() will later classify all added animations into taskable or instrinsic.
|
virtual |
The taskable animationsReturns the map of all taskable animations.
|
virtual |
Returns string list of all the taskable animations and their user friendly display name.
|
virtual |
The taskable animationsReturns the map of all taskable animations.
|
virtual |
The intrinsic animations.
|
virtual |
The intrinsic animations.
|
virtual |
|
virtual |
Returns a newly created clone of this class.
Reimplemented in DtVrvDiGuyCharacterData.
| void DtDiGuyCharacterData::setAnimationTable | ( | DtDiGuyCharacterAnimationsTable * | table | ) |
| bool DtDiGuyCharacterData::readInAnimationDataFromTable | ( | DtDiGuyAnimationSharedPtr | animation | ) |
Checks for override entries for the action in the character animations table. If an entry is present, the taskable vs. intrinsic flag for the action is set to use the value from the character animations table instead of the value derived from diguy data. This method expects both animation name and display name to be set.
| void DtDiGuyCharacterData::setPrintInfo | ( | bool | set_print | ) |
If set_print is true, calls to debugPrint() will print info to stdout.
| void DtDiGuyCharacterData::debugPrint | ( | const char * | fmt, |
| ... | |||
| ) |
|
virtual |
|
virtual |
|
static |
By default, this class creates a DtDiGuyIntrinsicAnimationMap data member, used in determining the appropriate animation for a given posture, speed, and demeanor. To override and replace this with your own derived DtDiGuyIntrinsicAnimationMap class, create a function that returns a new instance of your derived class, and then pass it in to this function before calling init().
|
protectedvirtual |
This is rather slow, because it causes creation of many things inside DI-Guy, so calls should be deferred until it's time to actually display an animation.
Reimplemented in DtVrvDiGuyCharacterData.
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Will hold animation references until they can be classified as taskable or intrinsic.
|
protected |
Holds refs to taskable animations.
|
protected |
Holds refs to intrinsic animations.
|
protected |
|
protected |
List of names of all animations available.
|
protected |
Keep death animation separate 1) don't need to loop thru the lists to match– dead is dead 2) prevents matching death as closest animation to people in prone posture even though they are alive.
|
protected |
This will be generated from the data in character_animations_table.mtl Its main importance is holding user-readable names and info about whether an animation is taskable or instrinsic.
|
protected |
flag to indicate that animation data has been gathered from DIGuy
|
protected |
|
staticprotected |