VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCDBBaseMaterialTable.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 
11 #include "DtCDBExport.h"
12 #include <osgDB/XmlParser>
13 #include <osg/Referenced>
14 #include <string>
15 #include <map>
16 
17 namespace makVrv { namespace oe { namespace CDB
18 {
19  class DtCDBBaseMaterial;
20 
26  class DT_DLL_OSGEARTH_CDB_UTILS DtCDBBaseMaterialTable : public osg::Referenced
27  {
28  public:
30  typedef std::map <std::string, osg::ref_ptr<DtCDBBaseMaterial> > BaseMaterialMap;
31 
33  DtCDBBaseMaterialTable(const std::string& baseMaterialFile);
35  virtual ~DtCDBBaseMaterialTable();
37  bool isValidMaterial(const std::string& baseMaterial);
39  unsigned int getProceduralClassIndex(const std::string& baseMaterial) const;
41  std::string getGroundMCOD(const std::string& baseMaterial) const;
43  std::string getModelMCOD(const std::string& baseMaterial) const;
45  BaseMaterialMap& getBaseMaterialMap();
46 
47  protected:
48 
50  void loadXmlFile(const std::string& baseMaterialFile);
51 
52  private:
53 
56 
57  };
58 
59 }}} // namespace mak::osgEarth::CDB
60 
#define DT_DLL_OSGEARTH_CDB_UTILS
Definition: DtCDBExport.h:18
BaseMaterialMap myBaseMaterialMap
GT instance map of models.
Definition: DtCDBBaseMaterialTable.h:55
CDB Base Material class. Hold Base Material name table / description osgdb_osgearth_cdbraster will us...
Definition: DtCDBBaseMaterialTable.h:26
std::map< std::string, osg::ref_ptr< DtCDBBaseMaterial > > BaseMaterialMap
CDB Base Material Map.
Definition: DtCDBBaseMaterialTable.h:30

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)