VR-Forces 4.7 Class Documentation
 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 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)