VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCDBCompositeMaterialTable.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
11 
12 namespace makVrv { namespace oe { namespace CDB
13 {
14 
18  {
19  public:
20 
22  typedef std::map<int, osg::ref_ptr<DtCDBCompositeMaterial> > compositeMapType;
23 
25  DtCDBCompositeMaterialTable(const std::string& compositeMaterialFile);
27  virtual ~DtCDBCompositeMaterialTable();
29  const DtCDBCompositeMaterial* getCompositeMaterial(int index) const;
31  const compositeMapType getCompositeMaterialList() const { return myCompositeMaterialMap; };
32 
33  protected:
34 
36  void loadXmlFile(const std::string& compositeMaterialFile);
37 
39  void parseCompositeMaterialTable(osgDB::XmlNode::Children::iterator itCompositeMaterialTable);
40 
41  private:
42 
45  };
46 
47 }}} // namespace mak::osgEarth::CDB
48 
CDB Composite MaterialHere is a an overview of a CDB Composite Material.
Definition: DtCDBCompositeMaterial.h:39
#define DT_DLL_OSGEARTH_CDB_UTILS
Definition: DtCDBExport.h:18
CDB Composite Material Table.
Definition: DtCDBCompositeMaterialTable.h:17
std::map< int, osg::ref_ptr< DtCDBCompositeMaterial > > compositeMapType
Composite Material Table Map type.
Definition: DtCDBCompositeMaterialTable.h:22
Utility class to manage CDB Composite Material.
const compositeMapType getCompositeMaterialList() const
Get the list of material to iterate.
Definition: DtCDBCompositeMaterialTable.h:31
compositeMapType myCompositeMaterialMap
Composite Material Table Map.
Definition: DtCDBCompositeMaterialTable.h:44

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)