CAD Exchanger SDK
cadex::ModelData_Material Class Reference

Provides a data container for material. More...

Public Member Functions

 ModelData_Material ()
 Constructor. More...
 
 ModelData_Material (const ModelData_Color &theAmbientColor, const ModelData_Color &theDiffuseColor, const ModelData_Color &theSpecularColor, const ModelData_Color &theEmissionColor, float theShininess)
 Constructor.
 
 ModelData_Material (const ModelData_Color &theDiffuseColor)
 Constructor. More...
 
const ModelData_ColorAmbientColor () const
 
ModelData_ColorAmbientColor ()
 
const ModelData_ColorDiffuseColor () const
 
ModelData_ColorDiffuseColor ()
 
const ModelData_ColorSpecularColor () const
 
ModelData_ColorSpecularColor ()
 
const ModelData_ColorEmissionColor () const
 
ModelData_ColorEmissionColor ()
 
float Shininess () const
 
float & Shininess ()
 

Detailed Description

Provides a data container for material.

Constructor & Destructor Documentation

◆ ModelData_Material() [1/2]

cadex::ModelData_Material::ModelData_Material ( )

Constructor.

Sets default values following conventions described at http://www.opengl.org/sdk/docs/man2/xhtml/glMaterial.xml.

◆ ModelData_Material() [2/2]

cadex::ModelData_Material::ModelData_Material ( const ModelData_Color theDiffuseColor)

Constructor.

Creates a material from a color. Sets other colors to default values following conventions described at http://www.opengl.org/sdk/docs/man2/xhtml/glMaterial.xml.

Member Function Documentation

◆ AmbientColor() [1/2]

const ModelData_Color& cadex::ModelData_Material::AmbientColor ( ) const
inline

Returns the AmbientColor property.

◆ AmbientColor() [2/2]

ModelData_Color& cadex::ModelData_Material::AmbientColor ( )
inline

Returns the AmbientColor property.

◆ DiffuseColor() [1/2]

ModelData_Color& cadex::ModelData_Material::DiffuseColor ( )
inline

Returns the DiffuseColor property.

◆ DiffuseColor() [2/2]

const ModelData_Color& cadex::ModelData_Material::DiffuseColor ( ) const
inline

Returns the DiffuseColor property.

◆ EmissionColor() [1/2]

ModelData_Color& cadex::ModelData_Material::EmissionColor ( )
inline

Returns the EmissionColor property.

◆ EmissionColor() [2/2]

const ModelData_Color& cadex::ModelData_Material::EmissionColor ( ) const
inline

Returns the EmissionColor property.

◆ Shininess() [1/2]

float& cadex::ModelData_Material::Shininess ( )
inline

Returns the Shininess property.

◆ Shininess() [2/2]

float cadex::ModelData_Material::Shininess ( ) const
inline

theValue must be in the [0, 128] range.

Returns the Shininess property.

◆ SpecularColor() [1/2]

ModelData_Color& cadex::ModelData_Material::SpecularColor ( )
inline

Returns the SpecularColor property.

◆ SpecularColor() [2/2]

const ModelData_Color& cadex::ModelData_Material::SpecularColor ( ) const
inline

Returns the SpecularColor property.