LLLightParams Class Reference

#include <llprimitive.h>

Inheritance diagram for LLLightParams:

Inheritance graph
[legend]
Collaboration diagram for LLLightParams:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLLightParams ()
BOOL pack (LLDataPacker &dp) const
BOOL unpack (LLDataPacker &dp)
bool operator== (const LLNetworkData &data) const
void copy (const LLNetworkData &data)
LLSD asLLSD () const
 operator LLSD () const
bool fromLLSD (LLSD &sd)
void setColor (const LLColor4 &color)
void setRadius (F32 radius)
void setFalloff (F32 falloff)
void setCutoff (F32 cutoff)
LLColor4 getColor () const
F32 getRadius () const
F32 getFalloff () const
F32 getCutoff () const

Protected Attributes

LLColor4 mColor
F32 mRadius
F32 mFalloff
F32 mCutoff


Detailed Description

Definition at line 131 of file llprimitive.h.


Constructor & Destructor Documentation

LLLightParams::LLLightParams (  ) 

Definition at line 1767 of file llprimitive.cpp.

References mColor, mCutoff, mFalloff, mRadius, LLNetworkData::mType, LLNetworkData::PARAMS_LIGHT, and LLColor4::setToWhite().

Here is the call graph for this function:


Member Function Documentation

BOOL LLLightParams::pack ( LLDataPacker dp  )  const [virtual]

Implements LLNetworkData.

Definition at line 1777 of file llprimitive.cpp.

References mColor, mCutoff, mFalloff, mRadius, LLDataPacker::packColor4U(), LLDataPacker::packF32(), and TRUE.

Here is the call graph for this function:

BOOL LLLightParams::unpack ( LLDataPacker dp  )  [virtual]

Implements LLNetworkData.

Definition at line 1787 of file llprimitive.cpp.

References setColor(), setCutoff(), setFalloff(), setRadius(), TRUE, LLDataPacker::unpackColor4U(), and LLDataPacker::unpackF32().

Here is the call graph for this function:

bool LLLightParams::operator== ( const LLNetworkData data  )  const [virtual]

void LLLightParams::copy ( const LLNetworkData data  )  [virtual]

Implements LLNetworkData.

Definition at line 1825 of file llprimitive.cpp.

References mColor, mCutoff, mFalloff, mRadius, and LLNetworkData::mType.

LLSD LLLightParams::asLLSD (  )  const

Definition at line 1835 of file llprimitive.cpp.

References getColor(), getCutoff(), getFalloff(), getRadius(), ll_sd_from_color4(), and tut::sd().

Referenced by operator LLSD().

Here is the call graph for this function:

Here is the caller graph for this function:

LLLightParams::operator LLSD (  )  const [inline]

Definition at line 148 of file llprimitive.h.

References asLLSD().

Here is the call graph for this function:

bool LLLightParams::fromLLSD ( LLSD sd  ) 

Definition at line 1847 of file llprimitive.cpp.

References LLSD::has(), ll_color4_from_sd(), setColor(), setCutoff(), setFalloff(), and setRadius().

Here is the call graph for this function:

void LLLightParams::setColor ( const LLColor4 color  )  [inline]

Definition at line 152 of file llprimitive.h.

References LLColor4::clamp(), and mColor.

Referenced by fromLLSD(), LLVOVolume::setLightColor(), LLVOVolume::setLightIntensity(), and unpack().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLightParams::setRadius ( F32  radius  )  [inline]

Definition at line 153 of file llprimitive.h.

References LIGHT_MAX_RADIUS, LIGHT_MIN_RADIUS, llclamp(), and mRadius.

Referenced by fromLLSD(), LLVOVolume::setLightRadius(), and unpack().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLightParams::setFalloff ( F32  falloff  )  [inline]

Definition at line 154 of file llprimitive.h.

References LIGHT_MAX_FALLOFF, LIGHT_MIN_FALLOFF, llclamp(), and mFalloff.

Referenced by fromLLSD(), LLVOVolume::setLightFalloff(), and unpack().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLightParams::setCutoff ( F32  cutoff  )  [inline]

Definition at line 155 of file llprimitive.h.

References LIGHT_MAX_CUTOFF, LIGHT_MIN_CUTOFF, llclamp(), and mCutoff.

Referenced by fromLLSD(), LLVOVolume::setLightCutoff(), and unpack().

Here is the call graph for this function:

Here is the caller graph for this function:

LLColor4 LLLightParams::getColor (  )  const [inline]

Definition at line 157 of file llprimitive.h.

References mColor.

Referenced by asLLSD(), LLVOVolume::getLightBaseColor(), LLVOVolume::getLightColor(), LLVOVolume::getLightIntensity(), LLVOVolume::setLightColor(), and LLVOVolume::setLightIntensity().

Here is the caller graph for this function:

F32 LLLightParams::getRadius (  )  const [inline]

Definition at line 158 of file llprimitive.h.

References mRadius.

Referenced by asLLSD(), LLVOVolume::getLightRadius(), and LLVOVolume::setLightRadius().

Here is the caller graph for this function:

F32 LLLightParams::getFalloff (  )  const [inline]

Definition at line 159 of file llprimitive.h.

References mFalloff.

Referenced by asLLSD(), LLVOVolume::getLightFalloff(), and LLVOVolume::setLightFalloff().

Here is the caller graph for this function:

F32 LLLightParams::getCutoff (  )  const [inline]

Definition at line 160 of file llprimitive.h.

References mCutoff.

Referenced by asLLSD(), LLVOVolume::getLightCutoff(), and LLVOVolume::setLightCutoff().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 134 of file llprimitive.h.

Referenced by copy(), getColor(), LLLightParams(), operator==(), pack(), and setColor().

Definition at line 135 of file llprimitive.h.

Referenced by copy(), getRadius(), LLLightParams(), operator==(), pack(), and setRadius().

Definition at line 136 of file llprimitive.h.

Referenced by copy(), getFalloff(), LLLightParams(), operator==(), pack(), and setFalloff().

Definition at line 137 of file llprimitive.h.

Referenced by copy(), getCutoff(), LLLightParams(), operator==(), pack(), and setCutoff().


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

Generated on Fri May 16 08:51:27 2008 for SecondLife by  doxygen 1.5.5