OpenLexocad  27.1
MaterialConstituent.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <OpenLxApp/Material.h>
6 
7 FORWARD_DECL(App, MaterialConstituent)
8 
9 namespace OpenLxApp
10 {
26 class LX_OPENLXAPP_EXPORT MaterialConstituent : public MaterialDefinition, public MaterialSelect
27 {
28  PROXY_HEADER(MaterialConstituent, App::MaterialConstituent, IFCMATERIALCONSTITUENT)
29 
32  DECL_PROPERTY(MaterialConstituent, Fraction, double)
34 
35 public:
37 
38  void setMaterial(std::shared_ptr<Material> aMaterial);
39  std::shared_ptr<Material> getMaterial() const;
40 
41 private:
43 };
44 
45 } // namespace OpenLxApp
Super-class of all Materials.
Definition: MaterialDefinition.h:25
MaterialSelect provides selection of either a material definition or a material usage definition that...
Definition: MaterialSelect.h:30
#define PROXY_HEADER(_openlexocadclass_, _corelexocadclass_, _type_)
Definition: Globals.h:146
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:23
Definition: ActiveScript.h:7
#define DECL_PROPERTY(_class_, _name_, _type_)
DECL_PROPERTY and DEFINE_PROPERTY are macros used for mapping between the properties of Lexocad objec...
Definition: Globals.h:242
IfcMaterialConstituent is a single and identifiable part of an element which is constructed of a numb...
Definition: MaterialConstituent.h:26
#define FORWARD_DECL(x, y)
Definition: Globals.h:93