LLColor3 Class Reference

#include <v3color.h>

Collaboration diagram for LLColor3:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLColor3 ()
 LLColor3 (F32 r, F32 g, F32 b)
 LLColor3 (const F32 *vec)
 LLColor3 (char *color_string)
 LLColor3 (const LLColor4 &color4)
 LLColor3 (const LLVector4 &vector4)
 LLColor3 (const LLSD &sd)
LLSD getValue () const
void setValue (const LLSD &sd)
void calcHSL (F32 *hue, F32 *saturation, F32 *luminance) const
const LLColor3setToBlack ()
const LLColor3setToWhite ()
const LLColor3setVec (F32 x, F32 y, F32 z)
const LLColor3setVec (const LLColor3 &vec)
const LLColor3setVec (const F32 *vec)
F32 magVec () const
F32 magVecSquared () const
F32 normVec ()
F32 brightness () const
const LLColor3operator= (const LLColor4 &a)
void clamp ()
void exp ()

Public Attributes

F32 mV [LENGTHOFCOLOR3]

Static Public Attributes

static LLColor3 white
static LLColor3 black
static LLColor3 grey

Friends

std::ostream & operator<< (std::ostream &s, const LLColor3 &a)
LLColor3 operator+ (const LLColor3 &a, const LLColor3 &b)
LLColor3 operator- (const LLColor3 &a, const LLColor3 &b)
const LLColor3operator+= (LLColor3 &a, const LLColor3 &b)
const LLColor3operator-= (LLColor3 &a, const LLColor3 &b)
const LLColor3operator*= (LLColor3 &a, const LLColor3 &b)
LLColor3 operator* (const LLColor3 &a, const LLColor3 &b)
LLColor3 operator* (const LLColor3 &a, F32 k)
LLColor3 operator* (F32 k, const LLColor3 &a)
bool operator== (const LLColor3 &a, const LLColor3 &b)
bool operator!= (const LLColor3 &a, const LLColor3 &b)
const LLColor3operator*= (LLColor3 &a, F32 k)
LLColor3 operator- (const LLColor3 &a)


Detailed Description

Definition at line 46 of file v3color.h.


Constructor & Destructor Documentation

LLColor3::LLColor3 ( void   )  [inline]

Definition at line 155 of file v3color.h.

References mV.

Referenced by lerp(), operator*(), operator+(), and operator-().

Here is the caller graph for this function:

LLColor3::LLColor3 ( F32  r,
F32  g,
F32  b 
) [inline]

Definition at line 162 of file v3color.h.

References mV, VX, VY, and VZ.

LLColor3::LLColor3 ( const F32 vec  )  [inline]

Definition at line 170 of file v3color.h.

References mV, VX, VY, and VZ.

LLColor3::LLColor3 ( char *  color_string  )  [inline]

Definition at line 177 of file v3color.h.

References mV, NULL, VX, VY, and VZ.

LLColor3::LLColor3 ( const LLColor4 color4  )  [explicit]

Definition at line 42 of file v3color.cpp.

References LLColor4::mV, and mV.

LLColor3::LLColor3 ( const LLVector4 vector4  )  [explicit]

Definition at line 49 of file v3color.cpp.

References LLVector4::mV, and mV.

LLColor3::LLColor3 ( const LLSD sd  ) 

Definition at line 56 of file v3color.cpp.

References mV.


Member Function Documentation

LLSD LLColor3::getValue (  )  const [inline]

Definition at line 65 of file v3color.h.

References mV.

Referenced by LLControlGroup::declareColor3().

Here is the caller graph for this function:

void LLColor3::setValue ( const LLSD sd  )  [inline]

Definition at line 74 of file v3color.h.

References mV.

Referenced by LLFloaterSettingsDebug::onCommitSettings(), and LLFloaterSettingsDebug::updateControl().

Here is the caller graph for this function:

void LLColor3::calcHSL ( F32 hue,
F32 saturation,
F32 luminance 
) const

Definition at line 77 of file v3color.cpp.

References H, mV, VBLUE, VGREEN, and VRED.

const LLColor3 & LLColor3::setToBlack ( void   )  [inline]

Definition at line 197 of file v3color.h.

References mV.

Referenced by LLHaze::LLHaze(), and LLHeavenBody::LLHeavenBody().

Here is the caller graph for this function:

const LLColor3 & LLColor3::setToWhite ( void   )  [inline]

Definition at line 205 of file v3color.h.

References mV.

const LLColor3 & LLColor3::setVec ( F32  x,
F32  y,
F32  z 
) [inline]

Definition at line 213 of file v3color.h.

References mV.

Referenced by LLVOSky::updateSky().

Here is the caller graph for this function:

const LLColor3 & LLColor3::setVec ( const LLColor3 vec  )  [inline]

Definition at line 221 of file v3color.h.

References mV.

const LLColor3 & LLColor3::setVec ( const F32 vec  )  [inline]

Definition at line 229 of file v3color.h.

References mV.

F32 LLColor3::magVec ( void   )  const [inline]

Definition at line 242 of file v3color.h.

References fsqrtf, and mV.

Referenced by LLVOSky::updateSky().

Here is the caller graph for this function:

F32 LLColor3::magVecSquared ( void   )  const [inline]

Definition at line 247 of file v3color.h.

References mV.

F32 LLColor3::normVec ( void   )  [inline]

Definition at line 252 of file v3color.h.

References fsqrtf, and mV.

Referenced by LLDrawPoolWater::shade().

Here is the caller graph for this function:

F32 LLColor3::brightness ( void   )  const [inline]

Definition at line 237 of file v3color.h.

References mV.

Referenced by LLVOSky::calcSkyColorInDir(), and LLVOSky::calcSkyColorWLVert().

Here is the caller graph for this function:

const LLColor3 & LLColor3::operator= ( const LLColor4 a  ) 

Definition at line 63 of file v3color.cpp.

References LLColor4::mV, and mV.

void LLColor3::clamp (  )  [inline]

Definition at line 122 of file v3color.h.

References mV.

Referenced by LLVOSky::calcAtmospherics(), and LLVOSky::updateReflectionGeometry().

Here is the caller graph for this function:

void LLColor3::exp (  )  [inline]

Definition at line 267 of file v3color.h.

References LL_FAST_EXP, and mV.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const LLColor3 a 
) [friend]

Definition at line 71 of file v3color.cpp.

LLColor3 operator+ ( const LLColor3 a,
const LLColor3 b 
) [friend]

Definition at line 281 of file v3color.h.

LLColor3 operator- ( const LLColor3 a,
const LLColor3 b 
) [friend]

Definition at line 289 of file v3color.h.

const LLColor3& operator+= ( LLColor3 a,
const LLColor3 b 
) [friend]

Definition at line 337 of file v3color.h.

const LLColor3& operator-= ( LLColor3 a,
const LLColor3 b 
) [friend]

Definition at line 345 of file v3color.h.

const LLColor3& operator*= ( LLColor3 a,
const LLColor3 b 
) [friend]

Definition at line 329 of file v3color.h.

LLColor3 operator* ( const LLColor3 a,
const LLColor3 b 
) [friend]

Definition at line 297 of file v3color.h.

LLColor3 operator* ( const LLColor3 a,
F32  k 
) [friend]

Definition at line 305 of file v3color.h.

LLColor3 operator* ( F32  k,
const LLColor3 a 
) [friend]

Definition at line 310 of file v3color.h.

bool operator== ( const LLColor3 a,
const LLColor3 b 
) [friend]

Definition at line 315 of file v3color.h.

bool operator!= ( const LLColor3 a,
const LLColor3 b 
) [friend]

Definition at line 322 of file v3color.h.

const LLColor3& operator*= ( LLColor3 a,
F32  k 
) [friend]

Definition at line 353 of file v3color.h.

LLColor3 operator- ( const LLColor3 a  )  [friend]

Definition at line 361 of file v3color.h.


Member Data Documentation

Definition at line 52 of file v3color.h.

Definition at line 53 of file v3color.h.


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:42:54 2008 for SecondLife by  doxygen 1.5.5