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

gfx::Color4 Class Reference

Collaboration diagram for gfx::Color4:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

Real r
Real g
Real b
Real a

Constructor & Destructor Documentation

gfx::Color4::Color4  )  [inline]
 

Definition at line 38 of file Color4.

Referenced by interpolate().

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

Definition at line 39 of file Color4.

References a, b, g, and r.

gfx::Color4::Color4 const String &  name,
Real  ac = Real(1)
[inline]
 

Definition at line 40 of file Color4.

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

Definition at line 41 of file Color4.

References gfx::Color3::b, gfx::Color3::g, and gfx::Color3::r.

gfx::Color4::Color4 Real  rc,
Real  gc,
Real  bc,
Real  ac = Real(1)
[inline]
 

Definition at line 42 of file Color4.

gfx::Color4::~Color4  )  [inline]
 

Definition at line 44 of file Color4.


Member Function Documentation

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

Definition at line 67 of file Color4.

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

Definition at line 55 of file Color4.

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

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

Definition at line 64 of file Color4.

References a, b, Color4(), g, and r.

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

Definition at line 61 of file Color4.

References base::abs().

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

Definition at line 49 of file Color4.

References gfx::Color3::b, gfx::Color3::g, and gfx::Color3::r.

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

Definition at line 46 of file Color4.

References a, b, g, and r.

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

Definition at line 52 of file Color4.

References a, b, g, and r.

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

Definition at line 59 of file Color4.


Member Data Documentation

Real gfx::Color4::a
 

Definition at line 70 of file Color4.

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

Real gfx::Color4::b
 

Definition at line 70 of file Color4.

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

Real gfx::Color4::g
 

Definition at line 70 of file Color4.

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

Real gfx::Color4::r
 

Definition at line 70 of file Color4.

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


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