VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtInstanceUtils.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 #include <vrvOsg/DtInstanceState.h>
15 
17 
18 #include <vector>
19 #include <map>
20 
21 namespace makVrv
22 {
23  class DtDe;
24  class DtModelDefinition;
25  class DtOsgModelInstance;
26  class DtArticulatedModelParser;
27 
32  {
33  public:
34  typedef std::map<std::string, unsigned int> InstancedAnimationMap;
35  typedef std::vector<ArrayRange> ArrayRangeList;
36  typedef std::map<std::string, ArrayRangeList> InstancedAnnotationMap;
37 
39  typedef std::vector<unsigned int> InstancedPartVec;
40 
45  typedef std::map<unsigned int, InstancedPartVec> PartToInstancedPartMap;
46 
48  {
49  public:
50  virtual ~PartMapCache();
52  };
53 
59  {
60  public:
61  virtual ~AnimationMapCache();
63  };
64 
70  {
71  public:
72  virtual ~BoundingBoxCache();
75  };
76 
80  {
81  public:
82  virtual ~AnnotationCache();
84  };
85 
87  static void registerIfNecessary(DtModelDefinition& modelDef, DtDe& de, DtOsgModelInstance& mi,
88  /* output parameters: */
89  DtVector& boundMinOut,
90  DtVector& boundMaxOut,
91  AnnotationCache*& annotationCacheOut,
92  BoundingBoxCache*& boundingBoxCacheOut,
93  AnimationMapCache*& animationMapCacheOut,
94  PartMapCache& partMapCacheOut,
95  PartMapCache& stateMapCacheOut
96  );
97  };
98 }

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)