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 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 ()
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 45 of file v3color.h.


Constructor & Destructor Documentation

LLColor3::LLColor3 (  )  [inline]

Definition at line 152 of file v3color.h.

References mV.

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

Definition at line 159 of file v3color.h.

References mV, VX, VY, and VZ.

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

Definition at line 166 of file v3color.h.

References mV, VX, VY, and VZ.

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

Definition at line 173 of file v3color.h.

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

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

Definition at line 41 of file v3color.cpp.

References a, and mV.

LLColor3::LLColor3 ( const LLSD sd  ) 

Definition at line 48 of file v3color.cpp.

References mV, and tut::sd().


Member Function Documentation

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

Definition at line 69 of file v3color.cpp.

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

void LLColor3::clamp (  )  [inline]

Definition at line 119 of file v3color.h.

References f, and mV.

Referenced by LLSkyTex::create(), and LLVOSky::updateReflectionGeometry().

void LLColor3::exp (  )  [inline]

Definition at line 258 of file v3color.h.

References LL_FAST_EXP, and mV.

Referenced by LLTranspMap::calcAirTranspDir(), and LLVOSky::calcSkyColorInDir().

LLSD LLColor3::getValue (  )  const [inline]

Definition at line 63 of file v3color.h.

References mV.

Referenced by LLControlGroup::declareColor3(), and LLControlGroup::loadFromFileLegacy().

F32 LLColor3::magVec (  )  const [inline]

Definition at line 233 of file v3color.h.

References fsqrtf, and mV.

Referenced by LLVOSky::updateFog(), and LLVOSky::updateSky().

F32 LLColor3::magVecSquared (  )  const [inline]

Definition at line 238 of file v3color.h.

References mV.

F32 LLColor3::normVec (  )  [inline]

Definition at line 243 of file v3color.h.

References fsqrtf, and mV.

Referenced by LLDrawPoolWater::shade().

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

Definition at line 55 of file v3color.cpp.

References a, and mV.

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

Definition at line 193 of file v3color.h.

References mV.

Referenced by LLVOSky::calcBrightnessScaleAndColors(), LLVOSky::calcInScatter(), LLVOSky::calcSkyColorInDir(), LLVOSky::calculateColors(), LLSkyTex::initEmpty(), LLHaze::LLHaze(), and LLHeavenBody::LLHeavenBody().

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

Definition at line 201 of file v3color.h.

References mV.

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

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

Definition at line 72 of file v3color.h.

References mV, and tut::sd().

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

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

Definition at line 225 of file v3color.h.

References mV.

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

Definition at line 217 of file v3color.h.

References mV.

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

Definition at line 209 of file v3color.h.

References mV.

Referenced by LLTranspMap::calcAirTransp(), and LLVOSky::updateSky().


Friends And Related Function Documentation

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

Definition at line 301 of file v3color.h.

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

Definition at line 296 of file v3color.h.

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

Definition at line 288 of file v3color.h.

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

Definition at line 344 of file v3color.h.

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

Definition at line 320 of file v3color.h.

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

Definition at line 313 of file v3color.h.

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

Definition at line 272 of file v3color.h.

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

Definition at line 328 of file v3color.h.

LLColor3 operator- ( const LLColor3 a  )  [friend]

Definition at line 352 of file v3color.h.

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

Definition at line 280 of file v3color.h.

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

Definition at line 336 of file v3color.h.

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

Definition at line 63 of file v3color.cpp.

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

Definition at line 306 of file v3color.h.


Member Data Documentation

LLColor3 LLColor3::black [static]

Definition at line 51 of file v3color.h.

LLColor3 LLColor3::grey [static]

Definition at line 52 of file v3color.h.

F32 LLColor3::mV[LENGTHOFCOLOR3]

Definition at line 48 of file v3color.h.

Referenced by LLTranspMap::calcAirTransp(), calcHSL(), LLVOSky::calcSkyColorInDir(), clamp(), color_div(), color_gamma_correct(), color_intens(), color_max(), color_min(), color_pow(), exp(), getValue(), LLColor3(), LLColor4::LLColor4(), LLControlGroup::loadFromFileLegacy(), magVec(), magVecSquared(), normVec(), operator=(), refr_ind_calc(), LLVolumeGeometryManager::registerFace(), LLHUDEffectLookAt::render(), setToBlack(), setToWhite(), setValue(), LLColor4::setVec(), setVec(), LLColor4U::setVecScaleClamp(), LLDrawPoolWater::shade(), LLVOSky::updateFog(), LLVOSky::updateHaze(), LLVOSky::updateSky(), and vec3to4().

LLColor3 LLColor3::white [static]

Definition at line 50 of file v3color.h.

Referenced by LLControlGroup::getColor3(), and LLVOSky::updateFog().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:12 2010 for Second Life Viewer by  doxygen 1.4.7