VR-Forces 4.10 Class Documentation
 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) 2016 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:
29 
31  DtCDBBaseMaterialTable(const std::string& baseMaterialFile);
33  virtual ~DtCDBBaseMaterialTable();
35  bool isValidMaterial(const std::string& baseMaterial);
37  unsigned int getProceduralClassIndex(const std::string& baseMaterial) const;
38 
39  protected:
40 
42  void loadXmlFile(const std::string& baseMaterialFile);
43 
44  private:
45 
47  typedef std::map <std::string, osg::ref_ptr<DtCDBBaseMaterial> > BaseMaterialMap;
50 
51  };
52 
53 }}} // namespace mak::osgEarth::CDB
54 
used to export/import dll function from this dll to another (osgdb_osgearth_cdb)
#define DT_DLL_OSGEARTH_CDB_UTILS
Definition: DtCDBExport.h:18
BaseMaterialMap myBaseMaterialMap
GT instance map of models.
Definition: DtCDBBaseMaterialTable.h:49
CDB Base Material class.
Definition: DtCDBBaseMaterialTable.h:26
std::map< std::string, osg::ref_ptr< DtCDBBaseMaterial > > BaseMaterialMap
CDB Base Material Map.
Definition: DtCDBBaseMaterialTable.h:47

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)