Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

APPEAR Class Reference

Generic class representing appearance properties associated with a piece of surface. More...

#include <appear.H>

Inheritance diagram for APPEAR:

Inheritance graph
[legend]
Collaboration diagram for APPEAR:

Collaboration graph
[legend]
List of all members.

Property Accessors

virtual void set_ambient_color (CCOLOR &c)
virtual void unset_ambient_color ()
virtual bool has_ambient_color () const
virtual CCOLORambient_color () const
virtual void set_color (CCOLOR &c)
virtual void unset_color ()
virtual bool has_color () const
virtual CCOLORcolor () const
virtual void set_specular_color (CCOLOR &c)
virtual void unset_specular_color ()
virtual bool has_specular_color () const
virtual CCOLORspecular_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::CWtransftex_xform () const
virtual void set_tex_xform (mlib::CWtransf &t)

Public Member Functions

Constructors
 APPEAR ()
 APPEAR (APPEAR *a)
virtual ~APPEAR ()

Protected Member Functions

STDdstreamdecode_local (STDdstream &ds)
STDdstreamformat_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.

Detailed Description

Generic class representing appearance properties associated with a piece of surface.

Properties include:

Definition at line 33 of file appear.H.


Constructor & Destructor Documentation

APPEAR::APPEAR  )  [inline]
 

Definition at line 59 of file appear.H.

APPEAR::APPEAR APPEAR a  )  [inline]
 

Definition at line 72 of file appear.H.

virtual APPEAR::~APPEAR  )  [inline, virtual]
 

Definition at line 87 of file appear.H.


Member Function Documentation

virtual CCOLOR& APPEAR::ambient_color  )  const [inline, virtual]
 

Definition at line 100 of file appear.H.

References _ambient_color, _has_ambient_color, and color().

Referenced by SmoothShadeTexture::draw(), and GtexUtil::setup_material().

virtual CCOLOR& APPEAR::color  )  const [inline, virtual]
 

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

STDdstream& APPEAR::decode_local STDdstream ds  )  [protected]
 

STDdstream& APPEAR::format_local STDdstream ds  )  const [protected]
 

void APPEAR::get_color TAGformat d  )  [inline]
 

Reimplemented in Patch.

Definition at line 161 of file appear.H.

References _color, and _has_color.

Referenced by GEOM::tags().

void APPEAR::get_texture TAGformat d  ) 
 

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

void APPEAR::get_transp TAGformat d  )  [inline]
 

Definition at line 160 of file appear.H.

References _has_transp, and _transp.

Referenced by GEOM::tags().

virtual bool APPEAR::has_ambient_color  )  const [inline, virtual]
 

Definition at line 98 of file appear.H.

References _has_ambient_color.

virtual bool APPEAR::has_color  )  const [inline, virtual]
 

Reimplemented in Patch.

Definition at line 107 of file appear.H.

References _has_color.

Referenced by Patch::has_color().

virtual bool APPEAR::has_shininess  )  const [inline, virtual]
 

Definition at line 125 of file appear.H.

References _has_shininess.

virtual bool APPEAR::has_specular_color  )  const [inline, virtual]
 

Definition at line 116 of file appear.H.

References _has_specular_color.

virtual bool APPEAR::has_texture  )  const [inline, virtual]
 

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

virtual bool APPEAR::has_transp  )  const [inline, virtual]
 

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

void APPEAR::put_color TAGformat d  )  const [inline]
 

Reimplemented in Patch.

Definition at line 163 of file appear.H.

References _color, _has_color, and TAGformat::id().

Referenced by GEOM::tags().

void APPEAR::put_texture TAGformat d  )  const
 

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

void APPEAR::put_transp TAGformat d  )  const [inline]
 

Definition at line 164 of file appear.H.

References _has_transp, _transp, and TAGformat::id().

Referenced by GEOM::tags().

virtual void APPEAR::set_ambient_color CCOLOR c  )  [inline, virtual]
 

Definition at line 94 of file appear.H.

References _ambient_color, and _has_ambient_color.

virtual void APPEAR::set_color CCOLOR c  )  [inline, virtual]
 

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

virtual void APPEAR::set_shininess double  s  )  [inline, virtual]
 

Definition at line 121 of file appear.H.

References _has_shininess, and _shininess.

virtual void APPEAR::set_specular_color CCOLOR c  )  [inline, virtual]
 

Definition at line 112 of file appear.H.

References _has_specular_color, and _specular_color.

virtual void APPEAR::set_tex_xform mlib::CWtransf t  )  [inline, virtual]
 

Definition at line 152 of file appear.H.

References _tex_xform.

virtual void APPEAR::set_texture CTEXTUREptr &  t  )  [inline, virtual]
 

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

virtual void APPEAR::set_transp double  t  )  [inline, virtual]
 

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

virtual double APPEAR::shininess  )  const [inline, virtual]
 

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

virtual CCOLOR& APPEAR::specular_color  )  const [inline, virtual]
 

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

virtual mlib::CWtransf& APPEAR::tex_xform  )  const [inline, virtual]
 

Definition at line 150 of file appear.H.

References _tex_xform.

virtual CTEXTUREptr& APPEAR::texture  )  const [inline, virtual]
 

Definition at line 147 of file appear.H.

References _texture.

virtual double APPEAR::transp  )  const [inline, virtual]
 

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

virtual void APPEAR::unset_ambient_color  )  [inline, virtual]
 

Definition at line 96 of file appear.H.

References _has_ambient_color.

virtual void APPEAR::unset_color  )  [inline, virtual]
 

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

virtual void APPEAR::unset_shininess  )  [inline, virtual]
 

Definition at line 123 of file appear.H.

References _has_shininess.

virtual void APPEAR::unset_specular_color  )  [inline, virtual]
 

Definition at line 114 of file appear.H.

References _has_specular_color.

virtual void APPEAR::unset_texture  )  [inline, virtual]
 

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

virtual void APPEAR::unset_transp  )  [inline, virtual]
 

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


Member Data Documentation

COLOR APPEAR::_ambient_color [protected]
 

Ambient color.

Definition at line 40 of file appear.H.

Referenced by ambient_color(), and set_ambient_color().

COLOR APPEAR::_color [protected]
 

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

bool APPEAR::_has_ambient_color [protected]
 

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

bool APPEAR::_has_color [protected]
 

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

bool APPEAR::_has_shininess [protected]
 

true if it has shininess

Definition at line 47 of file appear.H.

Referenced by has_shininess(), set_shininess(), shininess(), and unset_shininess().

bool APPEAR::_has_specular_color [protected]
 

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

bool APPEAR::_has_texture [protected]
 

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

bool APPEAR::_has_transp [protected]
 

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

double APPEAR::_shininess [protected]
 

Specular shininess.

Definition at line 46 of file appear.H.

Referenced by set_shininess(), and shininess().

COLOR APPEAR::_specular_color [protected]
 

Specular color.

Definition at line 44 of file appear.H.

Referenced by set_specular_color(), and specular_color().

mlib::Wtransf APPEAR::_tex_xform [protected]
 

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

TEXTUREptr APPEAR::_texture [protected]
 

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

double APPEAR::_transp [protected]
 

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


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:44:15 2006 for jot by  doxygen 1.4.4