![]() |
gVirtualXRay
2.0.10
VirtualX-RayImagingLibraryonGPU
|
Material is a class to handle materials. More...
#include <Material.h>
Public Member Functions | |
Material () | |
Default constructor. More... | |
Material (const Material &aMaterial) | |
Copy constructor. More... | |
~Material () | |
Destructor. More... | |
Material & | operator= (const Material &aMaterial) |
Copy operator. More... | |
void | setAmbientColour (float aRedChannel, float aGreenChannel, float aBlueChannel, float aAlphaChannel) |
Set the ambient colour. More... | |
void | setDiffuseColour (float aRedChannel, float aGreenChannel, float aBlueChannel, float aAlphaChannel) |
Set the diffuse colour. More... | |
void | setSpecularColour (float aRedChannel, float aGreenChannel, float aBlueChannel, float aAlphaChannel) |
Set the specular colour. More... | |
void | setShininess (float aShininessValue) |
Set the shininess of the material. More... | |
const float * | getAmbientColour () const |
Accessor on the ambient colour. More... | |
const float * | getDiffuseColour () const |
Accessor on the diffuse colour. More... | |
const float * | getSpecularColour () const |
Accessor on the specular colour. More... | |
float | getShininess () const |
Accessor on the shininess of the material. More... | |
Protected Attributes | |
float | m_p_ambient_colour [4] |
Ambient colour. More... | |
float | m_p_diffuse_colour [4] |
Diffuse colour. More... | |
float | m_p_specular_colour [4] |
Specular colour. More... | |
float | m_shininess |
Shininess. More... | |
Material is a class to handle materials.
Definition at line 86 of file Material.h.
|
inline |
Default constructor.
Ambient colour
Diffuse colour
Specular colour
Definition at line 68 of file Material.inl.
|
inline |
Copy constructor.
Definition at line 93 of file Material.inl.
|
inline |
Destructor.
Definition at line 101 of file Material.inl.
|
inline |
Accessor on the ambient colour.
Definition at line 179 of file Material.inl.
|
inline |
Accessor on the diffuse colour.
Definition at line 187 of file Material.inl.
|
inline |
Accessor on the shininess of the material.
Definition at line 203 of file Material.inl.
|
inline |
Accessor on the specular colour.
Definition at line 195 of file Material.inl.
Copy operator.
Definition at line 108 of file Material.inl.
|
inline |
Set the ambient colour.
aRedChannel | red channel of the colour |
aGreenChannel | green channel of the colour |
aBlueChannel | blue channel of the colour |
aAlphaChannel | alpha channel of the colour |
Definition at line 129 of file Material.inl.
|
inline |
Set the diffuse colour.
aRedChannel | red channel of the colour |
aGreenChannel | green channel of the colour |
aBlueChannel | blue channel of the colour |
aAlphaChannel | alpha channel of the colour |
Definition at line 143 of file Material.inl.
|
inline |
Set the shininess of the material.
aShininessValue | amount of shininess |
Definition at line 172 of file Material.inl.
|
inline |
Set the specular colour.
aRedChannel | red channel of the colour |
aGreenChannel | green channel of the colour |
aBlueChannel | blue channel of the colour |
aAlphaChannel | alpha channel of the colour |
Definition at line 158 of file Material.inl.
|
protected |
Ambient colour.
Definition at line 208 of file Material.h.
|
protected |
Diffuse colour.
Definition at line 212 of file Material.h.
|
protected |
Specular colour.
Definition at line 216 of file Material.h.
|
protected |
Shininess.
Definition at line 220 of file Material.h.