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

gfx::Color3 Class Reference

Collaboration diagram for gfx::Color3:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Color3 ()
 Color3 (const String &name)
 Color3 (const Color3 &c)
 Color3 (Real rc, Real gc, Real bc)
 ~Color3 ()
Color3operator= (const Color3 &c)
bool operator== (const Color3 &c) const
bool equals (const Color3 &c, Real epsilon=consts::epsilon) const
void setZero ()
Color3operator *= (Real s)
Real * c_array ()

Static Public Member Functions

Color3 interpolate (const Color3 &c1, const Color3 &c2, Real t)

Public Attributes

Real r
Real g
Real b

Static Protected Member Functions

Color3 lookupColor (const String &name)

Static Protected Attributes

ColorDatabaseEntry colorDatabase []

Constructor & Destructor Documentation

gfx::Color3::Color3  )  [inline]
 

Definition at line 37 of file Color3.

References g.

Referenced by interpolate().

gfx::Color3::Color3 const String &  name  )  [inline]
 

Definition at line 38 of file Color3.

References lookupColor().

gfx::Color3::Color3 const Color3 c  )  [inline]
 

Definition at line 39 of file Color3.

References b, g, and r.

gfx::Color3::Color3 Real  rc,
Real  gc,
Real  bc
[inline]
 

Definition at line 40 of file Color3.

References g.

gfx::Color3::~Color3  )  [inline]
 

Definition at line 42 of file Color3.


Member Function Documentation

Real* gfx::Color3::c_array  )  [inline]
 

Definition at line 61 of file Color3.

bool gfx::Color3::equals const Color3 c,
Real  epsilon = consts::epsilon
const [inline]
 

Definition at line 50 of file Color3.

References b, base::equals(), g, and r.

Color3 gfx::Color3::interpolate const Color3 c1,
const Color3 c2,
Real  t
[inline, static]
 

Definition at line 58 of file Color3.

References b, Color3(), g, and r.

Color3 gfx::Color3::lookupColor const String &  name  )  [static, protected]
 

Referenced by Color3().

Color3& gfx::Color3::operator *= Real  s  )  [inline]
 

Definition at line 55 of file Color3.

References base::abs(), and g.

Color3& gfx::Color3::operator= const Color3 c  )  [inline]
 

Definition at line 44 of file Color3.

References b, g, and r.

bool gfx::Color3::operator== const Color3 c  )  const [inline]
 

Definition at line 47 of file Color3.

References b, g, and r.

void gfx::Color3::setZero  )  [inline]
 

Definition at line 53 of file Color3.

References g.


Member Data Documentation

Real gfx::Color3::b
 

Definition at line 63 of file Color3.

Referenced by Color3(), gfx::Color4::Color4(), equals(), interpolate(), gfx::operator<<(), gfx::Color4::operator=(), operator=(), and operator==().

ColorDatabaseEntry gfx::Color3::colorDatabase[] [static, protected]
 

Definition at line 71 of file Color3.

Real gfx::Color3::g
 

Definition at line 63 of file Color3.

Referenced by Color3(), gfx::Color4::Color4(), equals(), interpolate(), operator *=(), gfx::operator<<(), gfx::Color4::operator=(), operator=(), operator==(), and setZero().

Real gfx::Color3::r
 

Definition at line 63 of file Color3.

Referenced by Color3(), gfx::Color4::Color4(), equals(), interpolate(), gfx::operator<<(), gfx::Color4::operator=(), operator=(), and operator==().


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:39:48 2004 for OpenSim by doxygen 1.3.6