VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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  typedef std::list<DtLifeformStaticPosture> PostureList;
43  typedef std::map<DtLifeformStaticPosture, PostureList> BackupPostureMap;
44 
45  DtDiGuyIntrinsicAnimationMap();
46 
47  DtDiGuyIntrinsicAnimationMap(const DtFilename& name);
48 
49  DtDiGuyIntrinsicAnimationMap(const DtDiGuyIntrinsicAnimationMap& orig);
50 
51  DtDiGuyIntrinsicAnimationMap& operator=(const DtDiGuyIntrinsicAnimationMap& orig);
52 
53  virtual ~DtDiGuyIntrinsicAnimationMap();
54 
55  virtual void init();
56 
57  virtual DtDiGuyAnimation * findClosestAnimation(DtLifeformStaticPosture,double speed,
58  const DtString & demeanor,bool randomize=true);
59 
60  virtual DtDiGuyAnimation * lookupAnimationByName(const DtString & name);
61  virtual DtDiGuyAnimation * lookupAnimationByName(AnimationListSharedPtr list,const DtString & name);
62 
63  virtual AnimationListSharedPtr lookupAnimationList(DtLifeformStaticPosture post);
64 
65  virtual void addAnimationToList(AnimationListSharedPtr list,DtDiGuyAnimationSharedPtr animation);
66 
67  virtual void addAnimationToMap( DtDiGuyAnimationSharedPtr animation);
68 
69 protected:
70 
71  DtFilename myIntrinsicAnimationMapFile;
72  IntrinsicAnimationMap myIntrinsicAnimationMap;
73  BackupPostureMap myBackupPostures;
74 };
75 
76 #endif

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)