#include <appear.H>
Inheritance diagram for APPEAR:
Property Accessors | |
virtual void | set_ambient_color (CCOLOR &c) |
virtual void | unset_ambient_color () |
virtual bool | has_ambient_color () const |
virtual CCOLOR & | ambient_color () const |
virtual void | set_color (CCOLOR &c) |
virtual void | unset_color () |
virtual bool | has_color () const |
virtual CCOLOR & | color () const |
virtual void | set_specular_color (CCOLOR &c) |
virtual void | unset_specular_color () |
virtual bool | has_specular_color () const |
virtual CCOLOR & | specular_color () const |
virtual void | set_shininess (double s) |
virtual void | unset_shininess () |
virtual bool | has_shininess () const |
virtual double | shininess () const |
virtual void | set_transp (double t) |
virtual void | unset_transp () |
virtual bool | has_transp () const |
virtual double | transp () const |
virtual void | set_texture (CTEXTUREptr &t) |
virtual void | unset_texture () |
virtual bool | has_texture () const |
virtual CTEXTUREptr & | texture () const |
virtual mlib::CWtransf & | tex_xform () const |
virtual void | set_tex_xform (mlib::CWtransf &t) |
Public Member Functions | |
Constructors | |
APPEAR () | |
APPEAR (APPEAR *a) | |
virtual | ~APPEAR () |
Protected Member Functions | |
STDdstream & | decode_local (STDdstream &ds) |
STDdstream & | format_local (STDdstream &ds) const |
Protected Attributes | |
COLOR | _ambient_color |
Ambient color. | |
bool | _has_ambient_color |
true if it has ambient color | |
COLOR | _color |
Diffuse color. | |
bool | _has_color |
true if it has diffuse color | |
COLOR | _specular_color |
Specular color. | |
bool | _has_specular_color |
true if it has specular color | |
double | _shininess |
Specular shininess. | |
bool | _has_shininess |
true if it has shininess | |
double | _transp |
transparency (AKA alpha, in OpenGL) | |
bool | _has_transp |
true if it has transparency | |
TEXTUREptr | _texture |
What the texture is. | |
bool | _has_texture |
true if we are textured | |
mlib::Wtransf | _tex_xform |
Texture transformation. |
Properties include:
Definition at line 33 of file appear.H.
|
|
|
|
|
|
|
Definition at line 100 of file appear.H. References _ambient_color, _has_ambient_color, and color(). Referenced by SmoothShadeTexture::draw(), and GtexUtil::setup_material(). |
|
Reimplemented in Patch. Definition at line 109 of file appear.H. References _color, _has_color, and COLOR::white. Referenced by ambient_color(), Patch::color(), and GtexUtil::setup_material(). |
|
|
|
|
|
Reimplemented in Patch. Definition at line 161 of file appear.H. References _color, and _has_color. Referenced by GEOM::tags(). |
|
Reimplemented in Patch. Definition at line 16 of file appear.C. References _has_texture, _tex_xform, _texture, and Config::JOT_ROOT(). Referenced by GEOM::tags(). |
|
Definition at line 160 of file appear.H. References _has_transp, and _transp. Referenced by GEOM::tags(). |
|
Definition at line 98 of file appear.H. References _has_ambient_color. |
|
Reimplemented in Patch. Definition at line 107 of file appear.H. References _has_color. Referenced by Patch::has_color(). |
|
Definition at line 125 of file appear.H. References _has_shininess. |
|
Definition at line 116 of file appear.H. References _has_specular_color. |
|
Definition at line 145 of file appear.H. References _has_texture. Referenced by Patch::apply_texture(), OGLTexture::check_patch_texture_map(), SmoothShadeTexture::draw(), FlatShadeTexture::draw(), and Patch::write_stream(). |
|
Reimplemented in Patch. Definition at line 136 of file appear.H. References _has_transp. Referenced by Patch::has_transp(), GEOM::needs_blend(), and toggle_transp(). |
|
Reimplemented in Patch. Definition at line 163 of file appear.H. References _color, _has_color, and TAGformat::id(). Referenced by GEOM::tags(). |
|
Definition at line 32 of file appear.C. References _has_texture, _tex_xform, _texture, TAGformat::end_id(), TAGformat::id(), and Config::JOT_ROOT(). Referenced by GEOM::tags(). |
|
Definition at line 164 of file appear.H. References _has_transp, _transp, and TAGformat::id(). Referenced by GEOM::tags(). |
|
Definition at line 94 of file appear.H. References _ambient_color, and _has_ambient_color. |
|
Reimplemented in GEOM, and Patch. Definition at line 103 of file appear.H. References _color, and _has_color. Referenced by Patch::set_color(), and GEOM::set_color(). |
|
Definition at line 121 of file appear.H. References _has_shininess, and _shininess. |
|
Definition at line 112 of file appear.H. References _has_specular_color, and _specular_color. |
|
Definition at line 152 of file appear.H. References _tex_xform. |
|
Reimplemented in GEOM, and Patch. Definition at line 141 of file appear.H. References _has_texture, and _texture. Referenced by Patch::set_texture(), and GEOM::set_texture(). |
|
Reimplemented in Patch. Definition at line 132 of file appear.H. References _has_transp, and _transp. Referenced by GEOM::set_pickable(), Patch::set_transp(), and toggle_transp(). |
|
Definition at line 127 of file appear.H. References _has_shininess, _shininess, and Config::get_var_dbl(). Referenced by SmoothShadeTexture::draw(), and GtexUtil::setup_material(). |
|
Definition at line 118 of file appear.H. References _has_specular_color, _specular_color, and COLOR::white. Referenced by SmoothShadeTexture::draw(), and GtexUtil::setup_material(). |
|
Definition at line 150 of file appear.H. References _tex_xform. |
|
Definition at line 147 of file appear.H. References _texture. |
|
Reimplemented in Patch. Definition at line 138 of file appear.H. References _has_transp, and _transp. Referenced by GEOM::needs_blend(), GtexUtil::setup_material(), and Patch::transp(). |
|
Definition at line 96 of file appear.H. References _has_ambient_color. |
|
Reimplemented in GEOM, and Patch. Definition at line 105 of file appear.H. References _has_color. Referenced by Patch::unset_color(), and GEOM::unset_color(). |
|
Definition at line 123 of file appear.H. References _has_shininess. |
|
Definition at line 114 of file appear.H. References _has_specular_color. |
|
Reimplemented in GEOM, and Patch. Definition at line 143 of file appear.H. References _has_texture. Referenced by Patch::unset_texture(), and GEOM::unset_texture(). |
|
Reimplemented in Patch. Definition at line 134 of file appear.H. References _has_transp. Referenced by GEOM::set_pickable(), toggle_transp(), and Patch::unset_transp(). |
|
Ambient color.
Definition at line 40 of file appear.H. Referenced by ambient_color(), and set_ambient_color(). |
|
Diffuse color.
Definition at line 42 of file appear.H. Referenced by color(), Patch::color_(), TEXT2D::draw(), GEOM::draw(), get_color(), put_color(), set_color(), and Patch::write_stream(). |
|
true if it has ambient color
Definition at line 41 of file appear.H. Referenced by ambient_color(), has_ambient_color(), set_ambient_color(), and unset_ambient_color(). |
|
true if it has diffuse color
Definition at line 43 of file appear.H. Referenced by color(), TEXT2D::draw(), GEOM::draw(), get_color(), has_color(), put_color(), set_color(), unset_color(), and Patch::write_stream(). |
|
true if it has shininess
Definition at line 47 of file appear.H. Referenced by has_shininess(), set_shininess(), shininess(), and unset_shininess(). |
|
true if it has specular color
Definition at line 45 of file appear.H. Referenced by has_specular_color(), set_specular_color(), specular_color(), and unset_specular_color(). |
|
true if we are textured
Definition at line 51 of file appear.H. Referenced by get_texture(), has_texture(), put_texture(), set_texture(), and unset_texture(). |
|
true if it has transparency
Definition at line 49 of file appear.H. Referenced by GEOM::draw(), get_transp(), has_transp(), put_transp(), set_transp(), transp(), and unset_transp(). |
|
Specular shininess.
Definition at line 46 of file appear.H. Referenced by set_shininess(), and shininess(). |
|
Specular color.
Definition at line 44 of file appear.H. Referenced by set_specular_color(), and specular_color(). |
|
Texture transformation.
Definition at line 52 of file appear.H. Referenced by Patch::apply_texture(), get_texture(), put_texture(), set_tex_xform(), and tex_xform(). |
|
What the texture is.
Reimplemented in ICON2D. Definition at line 50 of file appear.H. Referenced by Patch::apply_texture(), get_texture(), put_texture(), set_texture(), texture(), and Patch::write_stream(). |
|
transparency (AKA alpha, in OpenGL)
Definition at line 48 of file appear.H. Referenced by GEOM::draw(), get_transp(), put_transp(), set_transp(), and transp(). |