Hide menu
Loading...
Searching...
No Matches
cadex::ModelData_Material Class Reference

Provides a data container for material. More...

#include <cadex/ModelData_Material.hxx>

Public Member Functions

 ModelData_Material ()
 Constructor.
 
 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.
 
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.

Examples
modification/coloring/Program.cs, and modification/coloring/main.cxx.

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]

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

Returns the AmbientColor property.

◆ AmbientColor() [2/2]

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

Returns the AmbientColor property.

Examples
modification/coloring/main.cxx.

◆ 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.

Examples
modification/coloring/main.cxx.

◆ 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.

Examples
modification/coloring/main.cxx.

◆ 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.

Examples
modification/coloring/main.cxx.

◆ 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.

Examples
modification/coloring/main.cxx.