VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfutil
diGuyIntrinsicAnimationMap.h
Go to the documentation of this file.
1
/*******************************************************************************
5
/*******************************************************************************
10
11
12
13
#ifndef diGuyIntrinsicAnimationMap_H_
14
#define diGuyIntrinsicAnimationMap_H_
15
16
#include <vlutil/vlString.h>
17
#include <vlutil/vlFilename.h>
18
#include <map>
19
#include <list>
20
21
#include "vrfutil/lifeformStaticPostures.h"
22
#include "vrfutil/diGuyAnimation.h"
23
#include "vrfutil/vrfutilDefines.h"
24
29
class DT_DLL_vrfutil DtDIGuyIntrinsicAnimationMap
30
{
31
public:
32
33
typedef std::list<DtDIGuyAnimationSharedPtr> AnimationList;
34
typedef AnimationList::iterator AnimationListIterator;
35
typedef AnimationList::const_iterator const_AnimationListIterator;
36
typedef DtBoost::shared_ptr<AnimationList> AnimationListSharedPtr;
37
38
typedef std::map<DtLifeformStaticPosture, AnimationListSharedPtr> IntrinsicAnimationMap;
39
typedef IntrinsicAnimationMap::iterator IntrinsicAnimationMapIterator;
40
typedef IntrinsicAnimationMap::const_iterator const_IntrinsicAnimationMapIterator;
41
42
DtDIGuyIntrinsicAnimationMap();
43
44
DtDIGuyIntrinsicAnimationMap(const DtFilename& name);
45
46
DtDIGuyIntrinsicAnimationMap(const DtDIGuyIntrinsicAnimationMap& orig);
47
48
DtDIGuyIntrinsicAnimationMap& operator=(const DtDIGuyIntrinsicAnimationMap& orig);
49
50
virtual ~DtDIGuyIntrinsicAnimationMap();
51
52
virtual void init();
53
54
virtual DtDIGuyAnimation * findClosestAnimation(DtLifeformStaticPosture,double speed,
55
const DtString & demeanor,bool randomize=true);
56
57
virtual DtDIGuyAnimation * lookupAnimationByName(const DtString & name);
58
virtual DtDIGuyAnimation * lookupAnimationByName(AnimationListSharedPtr list,const DtString & name);
59
60
virtual AnimationListSharedPtr lookupAnimationList(DtLifeformStaticPosture post);
61
62
virtual void addAnimationToList(AnimationListSharedPtr list,DtDIGuyAnimationSharedPtr animation);
63
64
virtual void addAnimationToMap( DtDIGuyAnimationSharedPtr animation);
65
66
protected:
67
68
DtFilename myIntrinsicAnimationMapFile;
69
IntrinsicAnimationMap myIntrinsicAnimationMap;
70
};
71
72
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)