#include <llprimitive.h>


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 |
Definition at line 131 of file llprimitive.h.
| LLLightParams::LLLightParams | ( | ) |
Definition at line 1767 of file llprimitive.cpp.
References mColor, mCutoff, mFalloff, mRadius, LLNetworkData::mType, LLNetworkData::PARAMS_LIGHT, and LLColor4::setToWhite().

| 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.

| 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().

| bool LLLightParams::operator== | ( | const LLNetworkData & | data | ) | const [virtual] |
Implements LLNetworkData.
Definition at line 1808 of file llprimitive.cpp.
References mColor, mCutoff, mFalloff, mRadius, LLNetworkData::mType, and LLNetworkData::PARAMS_LIGHT.
| 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().


| LLLightParams::operator LLSD | ( | ) | const [inline] |
Definition at line 148 of file llprimitive.h.
References asLLSD().

| 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().

| 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().


| 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().


| 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().


| 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().


| 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().

| F32 LLLightParams::getRadius | ( | ) | const [inline] |
Definition at line 158 of file llprimitive.h.
References mRadius.
Referenced by asLLSD(), LLVOVolume::getLightRadius(), and LLVOVolume::setLightRadius().

| F32 LLLightParams::getFalloff | ( | ) | const [inline] |
Definition at line 159 of file llprimitive.h.
References mFalloff.
Referenced by asLLSD(), LLVOVolume::getLightFalloff(), and LLVOVolume::setLightFalloff().

| F32 LLLightParams::getCutoff | ( | ) | const [inline] |
Definition at line 160 of file llprimitive.h.
References mCutoff.
Referenced by asLLSD(), LLVOVolume::getLightCutoff(), and LLVOVolume::setLightCutoff().

LLColor4 LLLightParams::mColor [protected] |
Definition at line 134 of file llprimitive.h.
Referenced by copy(), getColor(), LLLightParams(), operator==(), pack(), and setColor().
F32 LLLightParams::mRadius [protected] |
Definition at line 135 of file llprimitive.h.
Referenced by copy(), getRadius(), LLLightParams(), operator==(), pack(), and setRadius().
F32 LLLightParams::mFalloff [protected] |
Definition at line 136 of file llprimitive.h.
Referenced by copy(), getFalloff(), LLLightParams(), operator==(), pack(), and setFalloff().
F32 LLLightParams::mCutoff [protected] |
Definition at line 137 of file llprimitive.h.
Referenced by copy(), getCutoff(), LLLightParams(), operator==(), pack(), and setCutoff().
1.5.5