VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCDBModelRangeTable.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 #pragma once
6 
10 
11 #include <string>
12 #include <map>
13 
15 
16 namespace makVrv { namespace oe { namespace CDB {
18  typedef std::map<int, float> LodMap;
19 
23  {
24  public:
30  void setRange(int lod, float fRange);
32  float getRange(int lod) const;
33  private:
36  };
37 
38 
40  typedef std::map<DatasetInfo, LodMap> DatasetsModelRangeTable;
41 
45  {
46  public:
48  static void loadFromXML(DtCDBModelRangeTable& modelRangeTable, DatasetsModelRangeTable& datasetsModelRangeTable, const std::string& filename);
49  };
50 
51 }}}
std::map< DatasetInfo, LodMap > DatasetsModelRangeTable
Possible list of map that can contain specific paging values for specific datasets.
Definition: DtCDBModelRangeTable.h:40
CDB Class that hold the Dataset informationNote: A DUPLICATED class also exist in the Openflight Plug...
CDB Model Tile paging range class utility to read xml file.
Definition: DtCDBModelRangeTable.h:44
static void loadFromXML(DtCDBModelRangeTable &modelRangeTable, DatasetsModelRangeTable &datasetsModelRangeTable, const std::string &filename)
Load paging distance confif from Model_PagingDistance.xml.
LodMap myModelRangeTable
Table with LOd switch paging distance.
Definition: DtCDBModelRangeTable.h:35
float getRange(int lod) const
get the switch range of a lod
void setRange(int lod, float fRange)
set the switch range of a lod
std::map< int, float > LodMap
Create a type for the lod paging map.
Definition: DtCDBModelRangeTable.h:18
CDB Model Tile paging range.
Definition: DtCDBModelRangeTable.h:22

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)