VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCDBCompositeMaterial.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
11 #include <map>
12 
13 namespace makVrv { namespace oe { namespace CDB
14 {
15 
39  class DT_DLL_OSGEARTH_CDB_UTILS DtCDBCompositeMaterial : public osg::Referenced
40  {
41  public:
42 
46  virtual ~DtCDBCompositeMaterial();
48  bool readXmlNode(osgDB::XmlNode::Children::iterator& compMatIter);
50  std::string getName() const;
52  int getIndex() const;
54  const DtCDBSubstrate* getSurfaceSubstrate() const;
56  const DtCDBSubstrate* getPrimarySubstrate() const;
57  // TODO add a getter for the secondary substrate list
58 
59  private:
60 
62  int myIndex;
64  std::string myName;
70  std::vector<osg::ref_ptr<DtCDBSubstrate> > mySecondarySubstrates;
71 
72  };
73 
74 }}} // namespace mak::osgEarth::CDB
75 
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
Definition: featureContext.h:37
int myIndex
Composite Material Index.
Definition: DtCDBCompositeMaterial.h:62
osg::ref_ptr< DtCDBSubstrate > mySurfaceSubstrate
Surface Substrate (optional)
Definition: DtCDBCompositeMaterial.h:66
std::string myName
Composite Material Name.
Definition: DtCDBCompositeMaterial.h:64
CDB Base Material class. Hold Base Material name / description.
Definition: DtCDBSubstrate.h:11
osg::ref_ptr< DtCDBSubstrate > myPrimarySubstrate
Primary Substrate (mandatory)
Definition: DtCDBCompositeMaterial.h:68
std::vector< osg::ref_ptr< DtCDBSubstrate > > mySecondarySubstrates
Secondary Substrate (optional)
Definition: DtCDBCompositeMaterial.h:70

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)