VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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 Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)