VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtModelInfo.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
14 
15 #include <tbb/concurrent_unordered_map.h>
16 #include <tbb/atomic.h>
17 
18 namespace makVrv
19 {
20  class DtLodId;
21 
26  {
27  public:
29  DtModelInfo();
30 
32  virtual ~DtModelInfo();
33 
35  virtual void setNameAndId(const std::string& modelName, int id);
36 
38  virtual const std::string& modelName(void) const;
39 
41  virtual int id(void) const;
42 
44  virtual const DtLodId& lodId(int lodId) const;
45 
48 
58  virtual bool insertLodEntryAndLod(int lodId);
59 
61  virtual int currNextLodId(void) const;
63  virtual void printInfo(void) const;
64  virtual int numOfEntries(void) const;
66 
68  virtual void setRange(float startVal, float endVal);
72  float startVal(void) const;
73  float endVal(void) const;
74  bool rangeValid(void) const;
76 
77  protected:
78  std::string myModelName;
79  int myId;
80 
86  tbb::atomic<int> myNextLodId;
87  typedef tbb::concurrent_unordered_map<int, DtLodId> LodIdToDtLodId;
89 
90  float myStartVal;
91  float myEndVal;
92  };
93 }
float myStartVal
Definition: DtModelInfo.h:90
DtModelInfo is a mapping of a &#39;model&#39; name to a &#39;model&#39; id A &#39;model&#39; can have a number of lods...
Definition: DtModelInfo.h:25
Dll export defines.
int myId
Definition: DtModelInfo.h:79
#define DT_DLL_VRVINDIRECTRENDERING
Definition: vrvIndirectRendering.h:19
tbb::atomic< int > myNextLodId
The calls to insertLodEntryAndLod can come from different threads and in any order.
Definition: DtModelInfo.h:86
Notion of an lod; essentially an id A &#39;model&#39; is made up of multiple lods, each with an unique id wit...
Definition: DtLodId.h:23
std::string myModelName
Definition: DtModelInfo.h:78
LodIdToDtLodId myLodIdToDtLodId
Definition: DtModelInfo.h:88
float myEndVal
Definition: DtModelInfo.h:91
DtLodId class declaration.
tbb::concurrent_unordered_map< int, DtLodId > LodIdToDtLodId
Definition: DtModelInfo.h:87

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)