![]() |
VR-Forces 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 DI-Guy.

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 |
| typedef std::map< DtString, DtDiGuyGestureSharedPtr > | GestureMap |
| typedef std::map< DtString, double > | GestureDurationMap |
| typedef GestureMap::iterator | GestureMapIterator |
| typedef GestureMap::const_iterator | const_GestureMapIterator |
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 |
| typedef std::map<DtString, DtDiGuyGestureSharedPtr> DtDiGuyCharacterData::GestureMap |
| typedef std::map<DtString, double> DtDiGuyCharacterData::GestureDurationMap |
| typedef GestureMap::iterator DtDiGuyCharacterData::GestureMapIterator |
| typedef GestureMap::const_iterator DtDiGuyCharacterData::const_GestureMapIterator |
| 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 |
Animation lookup methods.
|
virtual |
Animation lookup methods.
|
virtual |
Animation lookup methods.
|
virtual |
Animation lookup methods.
|
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 |
Convenience overload for callers that only have the gesture name.
|
virtual |
|
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 |
Returns a newly created clone of this class.
Reimplemented in DtVrvDiGuyCharacterData.
| void DtDiGuyCharacterData::setAnimationTable | ( | DtDiGuyCharacterAnimationsTable * | table | ) |
| 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, |
| ... | |||
| ) |
|
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 |
|
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 |
Holds user-readable names and action usage info (taskable vs. intrinsic) for DI-Guy actions.
|
protected |
flag to indicate that animation data has been gathered from DIGuy
|
protected |
|
staticprotected |