#include <llvolume.h>
Collaboration diagram for LLVolumeParams:
Public Member Functions | |
LLVolumeParams () | |
LLVolumeParams (LLProfileParams &profile, LLPathParams &path, LLUUID sculpt_id=LLUUID::null, U8 sculpt_type=LL_SCULPT_TYPE_NONE) | |
bool | operator== (const LLVolumeParams ¶ms) const |
bool | operator!= (const LLVolumeParams ¶ms) const |
bool | operator< (const LLVolumeParams ¶ms) const |
void | copyParams (const LLVolumeParams ¶ms) |
const LLProfileParams & | getProfileParams () const |
LLProfileParams & | getProfileParams () |
const LLPathParams & | getPathParams () const |
LLPathParams & | getPathParams () |
BOOL | importFile (FILE *fp) |
BOOL | exportFile (FILE *fp) const |
BOOL | importLegacyStream (std::istream &input_stream) |
BOOL | exportLegacyStream (std::ostream &output_stream) const |
LLSD | asLLSD () const |
operator LLSD () const | |
bool | fromLLSD (LLSD &sd) |
bool | setType (U8 profile, U8 path) |
bool | setBeginAndEndS (const F32 begin, const F32 end) |
bool | setBeginAndEndT (const F32 begin, const F32 end) |
bool | setHollow (const F32 hollow) |
bool | setRatio (const F32 x) |
bool | setShear (const F32 x) |
bool | setRatio (const F32 x, const F32 y) |
bool | setShear (const F32 x, const F32 y) |
bool | setTwistBegin (const F32 twist_begin) |
bool | setTwistEnd (const F32 twist_end) |
bool | setTwist (const F32 twist) |
bool | setTaper (const F32 x, const F32 y) |
bool | setTaperX (const F32 v) |
bool | setTaperY (const F32 v) |
bool | setRevolutions (const F32 revolutions) |
bool | setRadiusOffset (const F32 radius_offset) |
bool | setSkew (const F32 skew) |
bool | setSculptID (const LLUUID sculpt_id, U8 sculpt_type) |
const F32 & | getBeginS () const |
const F32 & | getBeginT () const |
const F32 & | getEndS () const |
const F32 & | getEndT () const |
const F32 & | getHollow () const |
const F32 & | getTwist () const |
const F32 & | getRatio () const |
const F32 & | getRatioX () const |
const F32 & | getRatioY () const |
const F32 & | getShearX () const |
const F32 & | getShearY () const |
const F32 & | getTwistBegin () const |
const F32 & | getRadiusOffset () const |
const F32 & | getTaper () const |
const F32 & | getTaperX () const |
const F32 & | getTaperY () const |
const F32 & | getRevolutions () const |
const F32 & | getSkew () const |
const LLUUID & | getSculptID () const |
const U8 & | getSculptType () const |
BOOL | isConvex () const |
void | reduceS (F32 begin, F32 end) |
void | reduceT (F32 begin, F32 end) |
Static Public Member Functions | |
static bool | validate (U8 prof_curve, F32 prof_begin, F32 prof_end, F32 hollow, U8 path_curve, F32 path_begin, F32 path_end, F32 scx, F32 scy, F32 shx, F32 shy, F32 twistend, F32 twistbegin, F32 radiusoffset, F32 tx, F32 ty, F32 revolutions, F32 skew) |
Protected Attributes | |
LLProfileParams | mProfileParams |
LLPathParams | mPathParams |
LLUUID | mSculptID |
U8 | mSculptType |
Friends | |
std::ostream & | operator<< (std::ostream &s, const LLVolumeParams &volume_params) |
Classes | |
struct | compare |
Definition at line 521 of file llvolume.h.
LLVolumeParams::LLVolumeParams | ( | ) | [inline] |
Definition at line 524 of file llvolume.h.
LLVolumeParams::LLVolumeParams | ( | LLProfileParams & | profile, | |
LLPathParams & | path, | |||
LLUUID | sculpt_id = LLUUID::null , |
|||
U8 | sculpt_type = LL_SCULPT_TYPE_NONE | |||
) | [inline] |
Definition at line 528 of file llvolume.h.
LLSD LLVolumeParams::asLLSD | ( | ) | const |
Definition at line 3719 of file llvolume.cpp.
References mPathParams, mProfileParams, and tut::sd().
Referenced by operator LLSD().
void LLVolumeParams::copyParams | ( | const LLVolumeParams & | params | ) |
Definition at line 2060 of file llvolume.cpp.
References LLPathParams::copyParams(), LLProfileParams::copyParams(), mPathParams, mProfileParams, mSculptID, mSculptType, and params.
BOOL LLVolumeParams::exportFile | ( | FILE * | fp | ) | const |
Definition at line 3659 of file llvolume.cpp.
References LLProfileParams::exportFile(), LLPathParams::exportFile(), mPathParams, mProfileParams, and TRUE.
BOOL LLVolumeParams::exportLegacyStream | ( | std::ostream & | output_stream | ) | const |
Definition at line 3709 of file llvolume.cpp.
References LLProfileParams::exportLegacyStream(), LLPathParams::exportLegacyStream(), mPathParams, mProfileParams, and TRUE.
bool LLVolumeParams::fromLLSD | ( | LLSD & | sd | ) |
Definition at line 3727 of file llvolume.cpp.
References LLProfileParams::fromLLSD(), LLPathParams::fromLLSD(), mPathParams, mProfileParams, and tut::sd().
const F32& LLVolumeParams::getBeginS | ( | ) | const [inline] |
Definition at line 589 of file llvolume.h.
References LLProfileParams::getBegin(), and mProfileParams.
Referenced by LLPanelObject::getState().
const F32& LLVolumeParams::getBeginT | ( | ) | const [inline] |
Definition at line 590 of file llvolume.h.
References LLPathParams::getBegin(), and mPathParams.
Referenced by LLPanelObject::getState().
const F32& LLVolumeParams::getEndS | ( | ) | const [inline] |
Definition at line 591 of file llvolume.h.
References LLProfileParams::getEnd(), and mProfileParams.
Referenced by LLPanelObject::getState().
const F32& LLVolumeParams::getEndT | ( | ) | const [inline] |
Definition at line 592 of file llvolume.h.
References LLPathParams::getEnd(), and mPathParams.
Referenced by LLPanelObject::getState().
const F32& LLVolumeParams::getHollow | ( | ) | const [inline] |
Definition at line 594 of file llvolume.h.
References LLProfileParams::getHollow(), and mProfileParams.
Referenced by LLPanelObject::getState().
LLPathParams& LLVolumeParams::getPathParams | ( | ) | [inline] |
const LLPathParams& LLVolumeParams::getPathParams | ( | ) | const [inline] |
Definition at line 543 of file llvolume.h.
References mPathParams.
Referenced by LLVOVolume::canBeFlexible(), LLPanelObject::getState(), LLVolume::LLVolume(), operator!=(), operator<(), operator==(), LLVolumeImplFlexible::setAttributesOfAllSections(), and LLVOVolume::setVolume().
LLProfileParams& LLVolumeParams::getProfileParams | ( | ) | [inline] |
const LLProfileParams& LLVolumeParams::getProfileParams | ( | ) | const [inline] |
Definition at line 541 of file llvolume.h.
References mProfileParams.
Referenced by LLPanelObject::getState(), LLVOVolume::isFlexible(), LLVolume::LLVolume(), operator!=(), operator<(), operator==(), and LLVOVolume::setIsFlexible().
const F32& LLVolumeParams::getRadiusOffset | ( | ) | const [inline] |
Definition at line 603 of file llvolume.h.
References LLPathParams::getRadiusOffset(), and mPathParams.
Referenced by LLPanelObject::getState().
const F32& LLVolumeParams::getRatio | ( | ) | const [inline] |
const F32& LLVolumeParams::getRatioX | ( | ) | const [inline] |
Definition at line 597 of file llvolume.h.
References LLPathParams::getScaleX(), and mPathParams.
Referenced by LLPanelObject::getState(), and setSkew().
const F32& LLVolumeParams::getRatioY | ( | ) | const [inline] |
Definition at line 598 of file llvolume.h.
References LLPathParams::getScaleY(), and mPathParams.
Referenced by LLPanelObject::getState(), and setRadiusOffset().
const F32& LLVolumeParams::getRevolutions | ( | ) | const [inline] |
Definition at line 607 of file llvolume.h.
References LLPathParams::getRevolutions(), and mPathParams.
Referenced by LLPanelObject::getState(), and setSkew().
const LLUUID& LLVolumeParams::getSculptID | ( | ) | const [inline] |
Definition at line 609 of file llvolume.h.
References mSculptID.
Referenced by LLVolume::LLVolume().
const U8& LLVolumeParams::getSculptType | ( | ) | const [inline] |
Definition at line 610 of file llvolume.h.
References mSculptType.
Referenced by LLVolumeFace::createSide(), and LLVolume::sculpt().
const F32& LLVolumeParams::getShearX | ( | ) | const [inline] |
Definition at line 599 of file llvolume.h.
References LLPathParams::getShearX(), and mPathParams.
Referenced by LLPanelObject::getState().
const F32& LLVolumeParams::getShearY | ( | ) | const [inline] |
Definition at line 600 of file llvolume.h.
References LLPathParams::getShearY(), and mPathParams.
Referenced by LLPanelObject::getState().
const F32& LLVolumeParams::getSkew | ( | ) | const [inline] |
Definition at line 608 of file llvolume.h.
References LLPathParams::getSkew(), and mPathParams.
Referenced by LLPanelObject::getState().
const F32& LLVolumeParams::getTaper | ( | ) | const [inline] |
const F32& LLVolumeParams::getTaperX | ( | ) | const [inline] |
Definition at line 605 of file llvolume.h.
References LLPathParams::getTaperX(), and mPathParams.
Referenced by LLPanelObject::getState().
const F32& LLVolumeParams::getTaperY | ( | ) | const [inline] |
Definition at line 606 of file llvolume.h.
References LLPathParams::getTaperY(), and mPathParams.
Referenced by LLPanelObject::getState(), and setRadiusOffset().
const F32& LLVolumeParams::getTwist | ( | ) | const [inline] |
Definition at line 595 of file llvolume.h.
References LLPathParams::getTwist(), and mPathParams.
Referenced by LLPanelObject::getState().
const F32& LLVolumeParams::getTwistBegin | ( | ) | const [inline] |
Definition at line 602 of file llvolume.h.
References LLPathParams::getTwistBegin(), and mPathParams.
Referenced by LLPanelObject::getState().
BOOL LLVolumeParams::importFile | ( | FILE * | fp | ) |
Definition at line 3616 of file llvolume.cpp.
References BUFSIZE, LLPathParams::importFile(), LLProfileParams::importFile(), llendl, llwarns, mPathParams, mProfileParams, NULL, S32, and TRUE.
BOOL LLVolumeParams::importLegacyStream | ( | std::istream & | input_stream | ) |
Definition at line 3670 of file llvolume.cpp.
References BUFSIZE, LLPathParams::importLegacyStream(), LLProfileParams::importLegacyStream(), llendl, llwarns, mPathParams, mProfileParams, S32, and TRUE.
BOOL LLVolumeParams::isConvex | ( | ) | const |
Definition at line 3766 of file llvolume.cpp.
References f, FALSE, LLPathParams::getBegin(), LLProfileParams::getBegin(), LLProfileParams::getCurveType(), LLPathParams::getCurveType(), LLPathParams::getEnd(), LLProfileParams::getEnd(), LLProfileParams::getHollow(), LLPathParams::getTwist(), LLPathParams::getTwistBegin(), LL_PCODE_PATH_LINE, LL_PCODE_PROFILE_CIRCLE_HALF, LL_PCODE_PROFILE_MASK, mPathParams, mProfileParams, and TRUE.
Referenced by LLVolume::isConvex().
LLVolumeParams::operator LLSD | ( | ) | const [inline] |
bool LLVolumeParams::operator!= | ( | const LLVolumeParams & | params | ) | const |
Definition at line 2029 of file llvolume.cpp.
References getPathParams(), getProfileParams(), mSculptID, mSculptType, and params.
bool LLVolumeParams::operator< | ( | const LLVolumeParams & | params | ) | const |
Definition at line 2037 of file llvolume.cpp.
References getPathParams(), getProfileParams(), mSculptID, mSculptType, and params.
bool LLVolumeParams::operator== | ( | const LLVolumeParams & | params | ) | const |
Definition at line 2021 of file llvolume.cpp.
References getPathParams(), getProfileParams(), mSculptID, mSculptType, and params.
Definition at line 3734 of file llvolume.cpp.
References a, b, LLProfileParams::getBegin(), LLProfileParams::getEnd(), llclampf(), mProfileParams, LLProfileParams::setBegin(), and LLProfileParams::setEnd().
Definition at line 3750 of file llvolume.cpp.
References a, b, LLPathParams::getBegin(), LLPathParams::getEnd(), llclampf(), mPathParams, LLPathParams::setBegin(), and LLPathParams::setEnd().
Definition at line 2095 of file llvolume.cpp.
References end, f, limit_range(), MIN_CUT_DELTA, mProfileParams, LLProfileParams::setBegin(), and LLProfileParams::setEnd().
Referenced by add_object(), LLPanelObject::getVolumeParams(), LLVOTextBubble::LLVOTextBubble(), and validate().
Definition at line 2116 of file llvolume.cpp.
References end, f, limit_range(), MIN_CUT_DELTA, mPathParams, LLPathParams::setBegin(), and LLPathParams::setEnd().
Referenced by add_object(), LLPanelObject::getVolumeParams(), LLVOTextBubble::LLVOTextBubble(), and validate().
bool LLVolumeParams::setHollow | ( | const F32 | hollow | ) |
Definition at line 2136 of file llvolume.cpp.
References LLProfileParams::getCurveType(), HOLLOW_MAX, HOLLOW_MAX_SQUARE, HOLLOW_MIN, limit_range(), LL_PCODE_HOLE_MASK, LL_PCODE_HOLE_SQUARE, LL_PCODE_PROFILE_CIRCLE, LL_PCODE_PROFILE_CIRCLE_HALF, LL_PCODE_PROFILE_EQUALTRI, LL_PCODE_PROFILE_MASK, mProfileParams, and LLProfileParams::setHollow().
Referenced by LLPanelObject::getVolumeParams(), and validate().
bool LLVolumeParams::setRadiusOffset | ( | const F32 | radius_offset | ) |
Definition at line 2242 of file llvolume.cpp.
References approx_zero(), f, LLProfileParams::getCurveType(), LLPathParams::getCurveType(), getRatioY(), getTaperY(), LL_PCODE_PATH_CIRCLE, LL_PCODE_PROFILE_CIRCLE_HALF, LL_PCODE_PROFILE_MASK, mPathParams, mProfileParams, and LLPathParams::setRadiusOffset().
Referenced by LLPanelObject::getVolumeParams(), and validate().
Definition at line 2179 of file llvolume.cpp.
References LLProfileParams::getCurveType(), LLPathParams::getCurveType(), HOLE_X_MAX, HOLE_X_MIN, HOLE_Y_MAX, HOLE_Y_MIN, limit_range(), LL_PCODE_PATH_CIRCLE, LL_PCODE_PROFILE_CIRCLE_HALF, LL_PCODE_PROFILE_MASK, mPathParams, mProfileParams, RATIO_MAX, RATIO_MIN, and LLPathParams::setScale().
bool LLVolumeParams::setRatio | ( | const F32 | x | ) | [inline] |
Definition at line 567 of file llvolume.h.
Referenced by add_object(), LLPanelObject::getVolumeParams(), LLVOTextBubble::LLVOTextBubble(), and validate().
bool LLVolumeParams::setRevolutions | ( | const F32 | revolutions | ) |
Definition at line 2234 of file llvolume.cpp.
References limit_range(), mPathParams, REV_MAX, REV_MIN, and LLPathParams::setRevolutions().
Referenced by LLPanelObject::getVolumeParams(), and validate().
Definition at line 2325 of file llvolume.cpp.
References mSculptID, and mSculptType.
Referenced by LLPanelObject::getVolumeParams(), LLImagePreviewSculpted::LLImagePreviewSculpted(), LLPanelObject::onCommitParametric(), and LLVOVolume::processUpdateMessage().
Definition at line 2208 of file llvolume.cpp.
References limit_range(), mPathParams, LLPathParams::setShear(), SHEAR_MAX, and SHEAR_MIN.
bool LLVolumeParams::setShear | ( | const F32 | x | ) | [inline] |
Definition at line 568 of file llvolume.h.
Referenced by add_object(), LLPanelObject::getVolumeParams(), LLVOTextBubble::LLVOTextBubble(), and validate().
bool LLVolumeParams::setSkew | ( | const F32 | skew | ) |
Definition at line 2291 of file llvolume.cpp.
References approx_zero(), f, getRatioX(), getRevolutions(), llclamp(), mPathParams, LLPathParams::setSkew(), SKEW_MAX, and SKEW_MIN.
Referenced by LLPanelObject::getVolumeParams(), and validate().
Definition at line 575 of file llvolume.h.
References setTaperX(), and setTaperY().
Referenced by LLPanelObject::getVolumeParams(), and validate().
bool LLVolumeParams::setTaperX | ( | const F32 | v | ) |
Definition at line 2218 of file llvolume.cpp.
References limit_range(), mPathParams, LLPathParams::setTaperX(), TAPER_MAX, and TAPER_MIN.
Referenced by setTaper().
bool LLVolumeParams::setTaperY | ( | const F32 | v | ) |
Definition at line 2226 of file llvolume.cpp.
References limit_range(), mPathParams, LLPathParams::setTaperY(), TAPER_MAX, and TAPER_MIN.
Referenced by setTaper().
bool LLVolumeParams::setTwist | ( | const F32 | twist | ) | [inline] |
Definition at line 574 of file llvolume.h.
References setTwistEnd().
Referenced by LLPanelObject::getVolumeParams().
bool LLVolumeParams::setTwistBegin | ( | const F32 | twist_begin | ) |
Definition at line 2163 of file llvolume.cpp.
References limit_range(), mPathParams, LLPathParams::setTwistBegin(), TWIST_MAX, and TWIST_MIN.
Referenced by LLPanelObject::getVolumeParams(), and validate().
bool LLVolumeParams::setTwistEnd | ( | const F32 | twist_end | ) |
Definition at line 2171 of file llvolume.cpp.
References limit_range(), mPathParams, LLPathParams::setTwistEnd(), TWIST_MAX, and TWIST_MIN.
Referenced by LLPanelObject::getVolumeParams(), setTwist(), and validate().
Definition at line 2332 of file llvolume.cpp.
References LL_PCODE_HOLE_MASK, LL_PCODE_HOLE_MAX, LL_PCODE_PATH_LINE, LL_PCODE_PATH_MAX, LL_PCODE_PATH_MIN, LL_PCODE_PROFILE_MASK, LL_PCODE_PROFILE_MAX, LL_PCODE_PROFILE_SQUARE, llendl, llwarns, mPathParams, mProfileParams, LLPathParams::setCurveType(), and LLProfileParams::setCurveType().
Referenced by add_object(), LLPanelObject::getVolumeParams(), LLVOVolume::isFlexible(), LLImagePreviewSculpted::LLImagePreviewSculpted(), LLVOTextBubble::LLVOTextBubble(), LLVOVolume::setIsFlexible(), and validate().
bool LLVolumeParams::validate | ( | U8 | prof_curve, | |
F32 | prof_begin, | |||
F32 | prof_end, | |||
F32 | hollow, | |||
U8 | path_curve, | |||
F32 | path_begin, | |||
F32 | path_end, | |||
F32 | scx, | |||
F32 | scy, | |||
F32 | shx, | |||
F32 | shy, | |||
F32 | twistend, | |||
F32 | twistbegin, | |||
F32 | radiusoffset, | |||
F32 | tx, | |||
F32 | ty, | |||
F32 | revolutions, | |||
F32 | skew | |||
) | [static] |
Definition at line 2373 of file llvolume.cpp.
References setBeginAndEndS(), setBeginAndEndT(), setHollow(), setRadiusOffset(), setRatio(), setRevolutions(), setShear(), setSkew(), setTaper(), setTwistBegin(), setTwistEnd(), and setType().
std::ostream& operator<< | ( | std::ostream & | s, | |
const LLVolumeParams & | volume_params | |||
) | [friend] |
Definition at line 3916 of file llvolume.cpp.
LLPathParams LLVolumeParams::mPathParams [protected] |
Definition at line 632 of file llvolume.h.
Referenced by asLLSD(), copyParams(), exportFile(), exportLegacyStream(), fromLLSD(), getBeginT(), getEndT(), getPathParams(), getRadiusOffset(), getRatio(), getRatioX(), getRatioY(), getRevolutions(), getShearX(), getShearY(), getSkew(), getTaper(), getTaperX(), getTaperY(), getTwist(), getTwistBegin(), importFile(), importLegacyStream(), isConvex(), operator<<(), reduceT(), setBeginAndEndT(), setRadiusOffset(), setRatio(), setRevolutions(), setShear(), setSkew(), setTaperX(), setTaperY(), setTwistBegin(), setTwistEnd(), and setType().
LLProfileParams LLVolumeParams::mProfileParams [protected] |
Definition at line 631 of file llvolume.h.
Referenced by asLLSD(), copyParams(), exportFile(), exportLegacyStream(), fromLLSD(), getBeginS(), getEndS(), getHollow(), getProfileParams(), importFile(), importLegacyStream(), isConvex(), operator<<(), reduceS(), setBeginAndEndS(), setHollow(), setRadiusOffset(), setRatio(), and setType().
LLUUID LLVolumeParams::mSculptID [protected] |
Definition at line 633 of file llvolume.h.
Referenced by copyParams(), getSculptID(), operator!=(), operator<(), operator==(), and setSculptID().
U8 LLVolumeParams::mSculptType [protected] |
Definition at line 634 of file llvolume.h.
Referenced by copyParams(), getSculptType(), operator!=(), operator<(), operator==(), and setSculptID().