VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
diGuyIntrinsicAnimationMap.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2022 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
13 
15 
16 #include <vlutil/vlFilename.h>
17 #include <vlutil/vlString.h>
18 
19 #include <list>
20 #include <map>
21 
29 {
30 public:
31 
32  typedef std::list<DtDiGuyAnimationSharedPtr> AnimationList;
33  typedef AnimationList::iterator AnimationListIterator;
34  typedef AnimationList::const_iterator const_AnimationListIterator;
35  typedef DtBoost::shared_ptr<AnimationList> AnimationListSharedPtr;
36 
37  typedef std::map<DtLifeformStaticPosture,AnimationListSharedPtr> IntrinsicAnimationMap;
38  typedef IntrinsicAnimationMap::iterator IntrinsicAnimationMapIterator;
39  typedef IntrinsicAnimationMap::const_iterator const_IntrinsicAnimationMapIterator;
40 
41  typedef std::list<DtLifeformStaticPosture> PostureList;
42  typedef std::map<DtLifeformStaticPosture,PostureList> BackupPostureMap;
43 
44 public:
45 
47 
48  DtDiGuyIntrinsicAnimationMap( const DtFilename& name );
49 
51 
53 
55 
56  virtual void init();
57 
58  virtual const DtDiGuyAnimation* findClosestAnimation( DtLifeformStaticPosture,
59  double speed, const DtString& demeanor ) const;
60 
61  virtual const DtDiGuyAnimation* lookupAnimationByName( const DtString& name ) const;
62  virtual const DtDiGuyAnimation* lookupAnimationByName( AnimationListSharedPtr list, const DtString& name ) const;
63 
64  virtual const DtDiGuyAnimation* lookupAnimationByVariant( const DtString& variant ) const;
65  virtual const DtDiGuyAnimation* lookupAnimationByVariant( AnimationListSharedPtr list, const DtString& variant ) const;
66 
67  virtual const AnimationListSharedPtr lookupAnimationList( DtLifeformStaticPosture post ) const;
68 
69  virtual void addAnimationToList( AnimationListSharedPtr list, DtDiGuyAnimationSharedPtr animation );
70 
71  virtual void addAnimationToMap( DtDiGuyAnimationSharedPtr animation );
72 
73  virtual void setDebugOutputStream( DtOutputStream* stream ) const;
74 
75 protected:
76 
80 
81  mutable DtOutputStream* myDebugOutputStream;
82 
83 };
std::map< DtLifeformStaticPosture, PostureList > BackupPostureMap
Definition: diGuyIntrinsicAnimationMap.h:42
IntrinsicAnimationMap::const_iterator const_IntrinsicAnimationMapIterator
Definition: diGuyIntrinsicAnimationMap.h:39
DtBoost::shared_ptr< AnimationList > AnimationListSharedPtr
Definition: diGuyIntrinsicAnimationMap.h:35
IntrinsicAnimationMap::iterator IntrinsicAnimationMapIterator
Definition: diGuyIntrinsicAnimationMap.h:38
IntrinsicAnimationMap myIntrinsicAnimationMap
Definition: diGuyIntrinsicAnimationMap.h:78
std::map< DtLifeformStaticPosture, AnimationListSharedPtr > IntrinsicAnimationMap
Definition: diGuyIntrinsicAnimationMap.h:37
std::list< DtDiGuyAnimationSharedPtr > AnimationList
Definition: diGuyIntrinsicAnimationMap.h:32
DtFilename myIntrinsicAnimationMapFile
Definition: diGuyIntrinsicAnimationMap.h:77
The DtDiGuyAnimation class is a class that stores the DI-Guy animation information that is used to en...
Definition: diGuyAnimation.h:29
DtLifeformStaticPosture
These are the available static postures for lifeform (human) entities. Static postures are equivalent...
Definition: lifeformStaticPostures.h:22
The DtDIGuyIntrinsicAnimationMap class is a class that stores the DI-Guy animations that are intrinsi...
Definition: diGuyIntrinsicAnimationMap.h:28
Contains the DtLifeformStaticPosture enumeration declaration.
voidpf stream
Definition: ioapi.h:39
Contains the DtDiGuyAnimation class declaration.
std::list< DtLifeformStaticPosture > PostureList
Definition: diGuyIntrinsicAnimationMap.h:41
DtOutputStream * myDebugOutputStream
Definition: diGuyIntrinsicAnimationMap.h:81
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
AnimationList::iterator AnimationListIterator
Definition: diGuyIntrinsicAnimationMap.h:33
BackupPostureMap myBackupPostures
Definition: diGuyIntrinsicAnimationMap.h:79
#define DT_DLL_vrfDiGuy
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfDiGuyDefines.h:34
AnimationList::const_iterator const_AnimationListIterator
Definition: diGuyIntrinsicAnimationMap.h:34
DtBoost::shared_ptr< DtDiGuyAnimation > DtDiGuyAnimationSharedPtr
Definition: diGuyAnimation.h:124

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)