VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCDBBaseMaterial.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
11 #pragma once
12 
14 #include <osgDB/XmlParser>
15 #include <osg/Referenced>
16 #include <string>
17 #include <map>
18 
19 namespace makVrv { namespace oe { namespace CDB
20 {
21 
26  class DT_DLL_OSGEARTH_CDB_UTILS DtCDBBaseMaterial : public osg::Referenced
27  {
28  public:
29 
35  virtual ~DtCDBBaseMaterial();
37  DtCDBBaseMaterial& operator=(const DtCDBBaseMaterial& rhs);
39  bool readXmlNode(osgDB::XmlNode::Children::iterator& matIter);
41  std::string getName() const;
43  std::string getDescription() const;
45  unsigned int getWeight() const;
47  unsigned int getProceduralClassIndex() const;
49  std::string getGroundMCOD() const;
51  std::string getModelMCOD() const;
53  friend bool operator< (const DtCDBBaseMaterial& lhs, const DtCDBBaseMaterial& rhs)
54  {
55  return lhs.myWeight < rhs.myWeight;
56  }
57  protected:
58 
59 
60  private:
61 
63  std::string myName;
65  std::string myDescription;
67  unsigned int myWeight;
69  unsigned int myProceduralClassIndex;
72  std::string myGroundMCOD;
75  std::string myModelMCOD;
76  };
77 
78 }}} // namespace mak::osgEarth::CDB
79 
std::string myDescription
Base Material Description (Base Material Table)
Definition: DtCDBBaseMaterial.h:65
unsigned int myWeight
Base Material weight in a substrate (Composite Material)
Definition: DtCDBBaseMaterial.h:67
#define DT_DLL_OSGEARTH_CDB_UTILS
Definition: DtCDBExport.h:18
CDB Base Material in a substrate and in Material Table (can also be used to load CDBMaterials_ToProce...
Definition: DtCDBBaseMaterial.h:26
unsigned int myProceduralClassIndex
(non CDB field) contain the procedural class index associated to this material
Definition: DtCDBBaseMaterial.h:69
std::string myName
Base Material Name.
Definition: DtCDBBaseMaterial.h:63
std::string myGroundMCOD
(non CDB field) MCOD (Material Classification On Demand) JRM Sensor string found in ...
Definition: DtCDBBaseMaterial.h:72
std::string myModelMCOD
(non CDB field) MCOD (Material Classification On Demand) for models JRM Sensor string found in ...
Definition: DtCDBBaseMaterial.h:75

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)