#include <llvolumemessage.h>
Static Public Member Functions | |
static bool | constrainVolumeParams (LLVolumeParams ¶ms) |
This method constrains any volume params to make them valid. | |
static bool | packVolumeParams (const LLVolumeParams *params, LLMessageSystem *mesgsys) |
static bool | packVolumeParams (const LLVolumeParams *params, LLDataPacker &dp) |
static bool | unpackVolumeParams (LLVolumeParams *params, LLMessageSystem *mesgsys, char *block_name, S32 block_num=0) |
static bool | unpackVolumeParams (LLVolumeParams *params, LLDataPacker &dp) |
Static Protected Member Functions | |
static bool | packProfileParams (const LLProfileParams *params, LLMessageSystem *mesgsys) |
static bool | packProfileParams (const LLProfileParams *params, LLDataPacker &dp) |
static bool | unpackProfileParams (LLProfileParams *params, LLMessageSystem *mesgsys, char *block_name, S32 block_num=0) |
static bool | unpackProfileParams (LLProfileParams *params, LLDataPacker &dp) |
static bool | packPathParams (const LLPathParams *params, LLMessageSystem *mesgsys) |
static bool | packPathParams (const LLPathParams *params, LLDataPacker &dp) |
static bool | unpackPathParams (LLPathParams *params, LLMessageSystem *mesgsys, char *block_name, S32 block_num=0) |
static bool | unpackPathParams (LLPathParams *params, LLDataPacker &dp) |
Definition at line 41 of file llvolumemessage.h.
bool LLVolumeMessage::packProfileParams | ( | const LLProfileParams * | params, | |
LLMessageSystem * | mesgsys | |||
) | [static, protected] |
Definition at line 44 of file llvolumemessage.cpp.
References _PREHASH_ProfileBegin, _PREHASH_ProfileCurve, _PREHASH_ProfileEnd, _PREHASH_ProfileHollow, LLMessageSystem::addU16Fast(), LLMessageSystem::addU8Fast(), CUT_QUANTA, LLProfileParams::getBegin(), LLProfileParams::getCurveType(), LLProfileParams::getEnd(), LLProfileParams::getHollow(), HOLLOW_QUANTA, LL_PCODE_PROFILE_CIRCLE, and llround().
Referenced by packVolumeParams().
bool LLVolumeMessage::packProfileParams | ( | const LLProfileParams * | params, | |
LLDataPacker & | dp | |||
) | [static, protected] |
Definition at line 72 of file llvolumemessage.cpp.
References CUT_QUANTA, LLProfileParams::getBegin(), LLProfileParams::getCurveType(), LLProfileParams::getEnd(), LLProfileParams::getHollow(), HOLLOW_QUANTA, LL_PCODE_PROFILE_CIRCLE, llround(), LLDataPacker::packU16(), and LLDataPacker::packU8().
bool LLVolumeMessage::unpackProfileParams | ( | LLProfileParams * | params, | |
LLMessageSystem * | mesgsys, | |||
char * | block_name, | |||
S32 | block_num = 0 | |||
) | [static, protected] |
Definition at line 99 of file llvolumemessage.cpp.
References _PREHASH_ProfileBegin, _PREHASH_ProfileCurve, _PREHASH_ProfileEnd, _PREHASH_ProfileHollow, CUT_QUANTA, LLMessageSystem::getU16Fast(), LLMessageSystem::getU8Fast(), HOLLOW_QUANTA, llendl, llwarns, LLProfileParams::setBegin(), LLProfileParams::setCurveType(), LLProfileParams::setEnd(), and LLProfileParams::setHollow().
Referenced by unpackVolumeParams().
bool LLVolumeMessage::unpackProfileParams | ( | LLProfileParams * | params, | |
LLDataPacker & | dp | |||
) | [static, protected] |
Definition at line 157 of file llvolumemessage.cpp.
References CUT_QUANTA, HOLLOW_QUANTA, llendl, llwarns, LLProfileParams::setBegin(), LLProfileParams::setCurveType(), LLProfileParams::setEnd(), LLProfileParams::setHollow(), LLDataPacker::unpackU16(), and LLDataPacker::unpackU8().
bool LLVolumeMessage::packPathParams | ( | const LLPathParams * | params, | |
LLMessageSystem * | mesgsys | |||
) | [static, protected] |
Definition at line 213 of file llvolumemessage.cpp.
References _PREHASH_PathBegin, _PREHASH_PathCurve, _PREHASH_PathEnd, _PREHASH_PathRadiusOffset, _PREHASH_PathRevolutions, _PREHASH_PathScaleX, _PREHASH_PathScaleY, _PREHASH_PathShearX, _PREHASH_PathShearY, _PREHASH_PathSkew, _PREHASH_PathTaperX, _PREHASH_PathTaperY, _PREHASH_PathTwist, _PREHASH_PathTwistBegin, LLMessageSystem::addS8Fast(), LLMessageSystem::addU16Fast(), LLMessageSystem::addU8Fast(), CUT_QUANTA, LLPathParams::getBegin(), LLPathParams::getCurveType(), LLPathParams::getEnd(), LLPathParams::getRadiusOffset(), LLPathParams::getRevolutions(), LLPathParams::getScaleX(), LLPathParams::getScaleY(), LLPathParams::getShearX(), LLPathParams::getShearY(), LLPathParams::getSkew(), LLPathParams::getTaperX(), LLPathParams::getTaperY(), LLPathParams::getTwist(), LLPathParams::getTwistBegin(), LL_PCODE_PATH_LINE, llround(), REV_QUANTA, SCALE_QUANTA, SHEAR_QUANTA, and TAPER_QUANTA.
Referenced by packVolumeParams().
bool LLVolumeMessage::packPathParams | ( | const LLPathParams * | params, | |
LLDataPacker & | dp | |||
) | [static, protected] |
Definition at line 270 of file llvolumemessage.cpp.
References CUT_QUANTA, LLPathParams::getBegin(), LLPathParams::getCurveType(), LLPathParams::getEnd(), LLPathParams::getRadiusOffset(), LLPathParams::getRevolutions(), LLPathParams::getScaleX(), LLPathParams::getScaleY(), LLPathParams::getShearX(), LLPathParams::getShearY(), LLPathParams::getSkew(), LLPathParams::getTaperX(), LLPathParams::getTaperY(), LLPathParams::getTwist(), LLPathParams::getTwistBegin(), LL_PCODE_PATH_LINE, llround(), LLDataPacker::packU16(), LLDataPacker::packU8(), REV_QUANTA, SCALE_QUANTA, SHEAR_QUANTA, and TAPER_QUANTA.
bool LLVolumeMessage::unpackPathParams | ( | LLPathParams * | params, | |
LLMessageSystem * | mesgsys, | |||
char * | block_name, | |||
S32 | block_num = 0 | |||
) | [static, protected] |
Definition at line 327 of file llvolumemessage.cpp.
References _PREHASH_PathBegin, _PREHASH_PathCurve, _PREHASH_PathEnd, _PREHASH_PathRadiusOffset, _PREHASH_PathRevolutions, _PREHASH_PathScaleX, _PREHASH_PathScaleY, _PREHASH_PathShearX, _PREHASH_PathShearY, _PREHASH_PathSkew, _PREHASH_PathTaperX, _PREHASH_PathTaperY, _PREHASH_PathTwist, _PREHASH_PathTwistBegin, CUT_QUANTA, LLMessageSystem::getS8Fast(), LLMessageSystem::getU16Fast(), LLMessageSystem::getU8Fast(), REV_QUANTA, SCALE_QUANTA, LLPathParams::setBegin(), LLPathParams::setCurveType(), LLPathParams::setEnd(), LLPathParams::setRadiusOffset(), LLPathParams::setRevolutions(), LLPathParams::setScale(), LLPathParams::setShear(), LLPathParams::setSkew(), LLPathParams::setTaper(), LLPathParams::setTwist(), LLPathParams::setTwistBegin(), SHEAR_QUANTA, and TAPER_QUANTA.
Referenced by unpackVolumeParams().
bool LLVolumeMessage::unpackPathParams | ( | LLPathParams * | params, | |
LLDataPacker & | dp | |||
) | [static, protected] |
Definition at line 399 of file llvolumemessage.cpp.
References CUT_QUANTA, REV_QUANTA, SCALE_QUANTA, LLPathParams::setBegin(), LLPathParams::setCurveType(), LLPathParams::setEnd(), LLPathParams::setRadiusOffset(), LLPathParams::setRevolutions(), LLPathParams::setScale(), LLPathParams::setShear(), LLPathParams::setSkew(), LLPathParams::setTaperX(), LLPathParams::setTaperY(), LLPathParams::setTwist(), LLPathParams::setTwistBegin(), SHEAR_QUANTA, TAPER_QUANTA, LLDataPacker::unpackU16(), and LLDataPacker::unpackU8().
bool LLVolumeMessage::constrainVolumeParams | ( | LLVolumeParams & | params | ) | [static] |
This method constrains any volume params to make them valid.
[in,out] | Possibly | invalid params in, always valid out. |
Definition at line 461 of file llvolumemessage.cpp.
References LLPathParams::getBegin(), LLProfileParams::getBegin(), LLPathParams::getCurveType(), LLProfileParams::getCurveType(), LLPathParams::getEnd(), LLProfileParams::getEnd(), LLProfileParams::getHollow(), LLVolumeParams::getPathParams(), LLVolumeParams::getProfileParams(), LLPathParams::getRadiusOffset(), LLPathParams::getRevolutions(), LLPathParams::getScaleX(), LLPathParams::getScaleY(), LLPathParams::getShearX(), LLPathParams::getShearY(), LLPathParams::getSkew(), LLPathParams::getTaperX(), LLPathParams::getTaperY(), LLPathParams::getTwistBegin(), LLPathParams::getTwistEnd(), llendl, llformat(), llwarns, LLVolumeParams::setBeginAndEndS(), LLVolumeParams::setBeginAndEndT(), LLVolumeParams::setHollow(), LLVolumeParams::setRadiusOffset(), LLVolumeParams::setRatio(), LLVolumeParams::setRevolutions(), LLVolumeParams::setShear(), LLVolumeParams::setSkew(), LLVolumeParams::setTaper(), LLVolumeParams::setTwistBegin(), LLVolumeParams::setTwistEnd(), and LLVolumeParams::setType().
Referenced by unpackVolumeParams().
bool LLVolumeMessage::packVolumeParams | ( | const LLVolumeParams * | params, | |
LLMessageSystem * | mesgsys | |||
) | [static] |
Definition at line 495 of file llvolumemessage.cpp.
References LLVolumeParams::getPathParams(), LLVolumeParams::getProfileParams(), packPathParams(), and packProfileParams().
Referenced by LLToolPlacer::addObject(), and LLViewerObject::sendShapeUpdate().
bool LLVolumeMessage::packVolumeParams | ( | const LLVolumeParams * | params, | |
LLDataPacker & | dp | |||
) | [static] |
Definition at line 511 of file llvolumemessage.cpp.
References LLVolumeParams::getPathParams(), LLVolumeParams::getProfileParams(), packPathParams(), and packProfileParams().
bool LLVolumeMessage::unpackVolumeParams | ( | LLVolumeParams * | params, | |
LLMessageSystem * | mesgsys, | |||
char * | block_name, | |||
S32 | block_num = 0 | |||
) | [static] |
Definition at line 527 of file llvolumemessage.cpp.
References constrainVolumeParams(), LLVolumeParams::getPathParams(), LLVolumeParams::getProfileParams(), unpackPathParams(), and unpackProfileParams().
Referenced by LLVOVolume::processUpdateMessage().
bool LLVolumeMessage::unpackVolumeParams | ( | LLVolumeParams * | params, | |
LLDataPacker & | dp | |||
) | [static] |
Definition at line 549 of file llvolumemessage.cpp.
References constrainVolumeParams(), LLVolumeParams::getPathParams(), LLVolumeParams::getProfileParams(), unpackPathParams(), and unpackProfileParams().