API Reference > Classes > Database Classes > OdBmMaterialElem Class
OdBmMaterialElem Class
Syntax
C++
class OdBmMaterialElem : public OdBmElement;

BmMaterialElem.h

This class represents a material element.

Creates material element with default settings and given name
 
Returns the material color as an object of OdBmCmColor class. 
Returns the cut pattern color as an object of OdBmCmColor class. 
Returns a copy of material object stored inside this material element as a pointer to an OdBmMaterial object. 
Returns the material ID by name. If the material does not exist, then returns OdBmObjectId::kNull.
 
Returns the material path map as an OdBmMap object.
 
Returns the material name as an OdString value. 
Returns the ID of the structural asset object as object of OdBmObjectId class. 
Returns the surface pattern color as an object of OdBmCmColor class. 
Returns the ID of the thermal asset object as object of OdBmObjectId class. 
Returns the copy of thumbnail(sketch) of the material as a pointer to an OdBmARasterImage object. 
Returns true if material uses render appearance assets. 
Checks whether the material element name is unique in the database.
 
Sets the material color.
 
Sets the cut pattern color.
 
Sets the material object. The material will be copied and stored in the MaterialElem
 
Sets a material path map.
 
Sets the material name.
 
Sets the ID of the structural asset object.
 
Sets the surface pattern color.
 
Sets the ID of the thermal asset object.
 
Sets a thumbnail(sketch) of this material.
 
Sets the flag that determines whether material uses render appearance assets.
 
Called by setDatabaseDefaults() after the values are set.
 
Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.