API Reference > OdDb Classes > OdDbMaterial Class
OdDbMaterial Class
OdDbMaterialOdDbMaterial
Syntax
C++
class OdDbMaterial : public OdDbObject;

DbMaterial.h

This class represents Material properties for shaded entities. 

 

 
Name 
Description 
 
This is OdDbMaterial, a member of class OdDbMaterial. 
 
Name 
Description 
 
Returns the ambient (shadow) component of this Material object.
 
 
bump 
Returns the bump component of this Material object.
 
 
Returns the channel flags of this material object. 
 
Returns the color bleed scale of this Material object. 
 
Returns the description of this Material object. 
 
Returns the diffuse (main) component of this Material object.
 
 
Returns a pointer to the OdGiDrawable for the object. If the object doesn't have an associated OdGiDrawable object, this function returns NULL. 
 
Reads the .dwg file data of this object.
 
 
Writes the .dwg file data of this object.
 
 
Reads the DXF data of this object.
 
 
Writes the DXF data of this object.
 
 
Returns the final gather mode of this Material object. 
 
Returns the global illumination mode of this Material object. 
 
Returns the illumination model of this Material object. 
 
Returns the indirect bump scale of this Material object. 
 
Returns the anonymous material mode of this Material object. 
 
Returns the luminance of this Material object. 
 
Returns the luminance mode of this Material object. 
 
mode 
Returns the mode of this Material object. 
 
name 
Returns the name of this Material object. 
 
Returns the normalMap component of this Material object.  
 
This is ODDB_DECLARE_MEMBERS, a member of class OdDbMaterial. 
 
Returns the opacity component of this Material object.
 
 
Returns the reflectance scale of this Material object. 
 
Returns the reflection component of this Material object.
 
 
Returns the refelectivity of this Material object. 
 
Returns the refraction component of this Material object.
 
 
Returns the self-illumination of this Material object. 
 
Sets the ambient (shadow) component of this Material object.
 
 
Sets the anonymous material mode of this Material object.  
 
Sets the bump component of this Material object.
 
 
Sets the channel flags for this material object. 
 
Sets the color bleed scale of this Material object.  
 
Sets the description of this Material object.
 
 
Sets the diffuse (main) component of this Material object.
 
 
Sets the final gather mode of this Material object.  
 
Sets the global illumination mode of this Material object.  
 
Sets the illumination model of this Material object.  
 
Sets the indirect bump scale of this Material object.  
 
Sets the luminance of this Material object.  
 
Sets the luminance mode of this Material object.  
 
Sets the mode of this Material object.  
 
Sets the name of this Material object.
 
 
Sets the normalMap component of this Material object.
 
 
Sets the opacity component of this Material object.
 
 
Sets the reflectance scale of this Material object.  
 
Sets the reflection component of this Material object.
 
 
Sets the reflectivity of this Material object.  
 
Sets the refraction component of this Material object.
 
 
Sets the self-illumination of this material object  
 
Sets the shininess of this Material object. 
 
Sets the specular (reflection) component of this Material object.
 
 
Sets the translucence of this Material object.  
 
Sets the transmittance scale of this Material object.  
 
Sets the two sided mode of this Material object.  
 
Returns the shininess of this Material object. 
 
Returns the specular (reflection) component of this Material object.
 
 
Called as the first operation as this object is being erased or unerased.
 
 
overridables 
 
Sets the values of this object's subentity traits, and returns with the calling object's subentity traits.
 
 
Returns the translucence of this Material object. 
 
Returns the transmittance scale of this Material object. 
 
Returns the two sided mode of this Material object. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.