VR-Forces 5.0.3 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) 2018 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;
48 
50  friend bool operator< (const DtCDBBaseMaterial& lhs, const DtCDBBaseMaterial& rhs)
51  {
52  return lhs.myWeight < rhs.myWeight;
53  }
54  protected:
55 
56 
57  private:
58 
60  std::string myName;
62  std::string myDescription;
64  unsigned int myWeight;
66  unsigned int myProceduralClassIndex;
67  };
68 
69 }}} // namespace mak::osgEarth::CDB
70 
std::string myDescription
Base Material Description (Base Material Table)
Definition: DtCDBBaseMaterial.h:62
unsigned int myWeight
Base Material weigth in a substrate (Composite Material)
Definition: DtCDBBaseMaterial.h:64
used to export/import dll function from this dll to another (osgdb_osgearth_cdb)
#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:66
std::string myName
Base Material Name.
Definition: DtCDBBaseMaterial.h:60

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)