cgv
|
>simple class to hold the material properties of a phong material More...
#include <phong_material.h>
Public Types | |
typedef color< float, RGB, OPACITY > | color_type |
>used color type | |
Public Member Functions | |
phong_material () | |
construct default material | |
void | set_ambient (const color_type &c) |
void | set_diffuse (const color_type &c) |
void | set_specular (const color_type &c) |
void | set_emission (const color_type &c) |
void | set_shininess (float s) |
const color_type & | get_ambient () const |
const color_type & | get_diffuse () const |
const color_type & | get_specular () const |
const color_type & | get_emission () const |
float | get_shininess () const |
color_type & | ref_ambient () |
color_type & | ref_diffuse () |
color_type & | ref_specular () |
color_type & | ref_emission () |
float & | ref_shininess () |
Protected Attributes | |
color_type | ambient |
>ambient color component | |
color_type | diffuse |
>diffuse color component | |
color_type | specular |
>specular color component | |
color_type | emission |
>emissive color component | |
float | shininess |
>exponent of the specular cosine term | |
>simple class to hold the material properties of a phong material
Definition at line 11 of file phong_material.h.
typedef color<float,RGB,OPACITY> cgv::media::illum::phong_material::color_type |
>used color type
Definition at line 15 of file phong_material.h.
cgv::media::illum::phong_material::phong_material | ( | ) |
construct default material
Definition at line 7 of file phong_material.cxx.
const phong_material::color_type & cgv::media::illum::phong_material::get_ambient | ( | ) | const |
Definition at line 13 of file phong_material.cxx.
const phong_material::color_type & cgv::media::illum::phong_material::get_diffuse | ( | ) | const |
Definition at line 14 of file phong_material.cxx.
const phong_material::color_type & cgv::media::illum::phong_material::get_emission | ( | ) | const |
Definition at line 16 of file phong_material.cxx.
float cgv::media::illum::phong_material::get_shininess | ( | ) | const |
Definition at line 17 of file phong_material.cxx.
const phong_material::color_type & cgv::media::illum::phong_material::get_specular | ( | ) | const |
Definition at line 15 of file phong_material.cxx.
phong_material::color_type & cgv::media::illum::phong_material::ref_ambient | ( | ) |
Definition at line 18 of file phong_material.cxx.
phong_material::color_type & cgv::media::illum::phong_material::ref_diffuse | ( | ) |
Definition at line 19 of file phong_material.cxx.
phong_material::color_type & cgv::media::illum::phong_material::ref_emission | ( | ) |
Definition at line 21 of file phong_material.cxx.
float & cgv::media::illum::phong_material::ref_shininess | ( | ) |
Definition at line 22 of file phong_material.cxx.
phong_material::color_type & cgv::media::illum::phong_material::ref_specular | ( | ) |
Definition at line 20 of file phong_material.cxx.
void cgv::media::illum::phong_material::set_ambient | ( | const color_type & | c | ) |
Definition at line 8 of file phong_material.cxx.
void cgv::media::illum::phong_material::set_diffuse | ( | const color_type & | c | ) |
Definition at line 9 of file phong_material.cxx.
void cgv::media::illum::phong_material::set_emission | ( | const color_type & | c | ) |
Definition at line 11 of file phong_material.cxx.
void cgv::media::illum::phong_material::set_shininess | ( | float | s | ) |
Definition at line 12 of file phong_material.cxx.
void cgv::media::illum::phong_material::set_specular | ( | const color_type & | c | ) |
Definition at line 10 of file phong_material.cxx.
|
protected |
>ambient color component
Definition at line 18 of file phong_material.h.
|
protected |
>diffuse color component
Definition at line 20 of file phong_material.h.
|
protected |
>emissive color component
Definition at line 24 of file phong_material.h.
|
protected |
>exponent of the specular cosine term
Definition at line 26 of file phong_material.h.
|
protected |
>specular color component
Definition at line 22 of file phong_material.h.