#include <llvolume.h>
Public Member Functions | |
LLPathParams () | |
LLPathParams (U8 curve, F32 begin, F32 end, F32 scx, F32 scy, F32 shx, F32 shy, F32 twistend, F32 twistbegin, F32 radiusoffset, F32 tx, F32 ty, F32 revolutions, F32 skew) | |
LLPathParams (U8 curve, U16 begin, U16 end, U8 scx, U8 scy, U8 shx, U8 shy, U8 twistend, U8 twistbegin, U8 radiusoffset, U8 tx, U8 ty, U8 revolutions, U8 skew) | |
bool | operator== (const LLPathParams ¶ms) const |
bool | operator!= (const LLPathParams ¶ms) const |
bool | operator< (const LLPathParams ¶ms) const |
void | copyParams (const LLPathParams ¶ms) |
BOOL | importFile (LLFILE *fp) |
BOOL | exportFile (LLFILE *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) |
const F32 & | getBegin () const |
const F32 & | getEnd () const |
const LLVector2 & | getScale () const |
const F32 & | getScaleX () const |
const F32 & | getScaleY () const |
const LLVector2 | getBeginScale () const |
const LLVector2 | getEndScale () const |
const LLVector2 & | getShear () const |
const F32 & | getShearX () const |
const F32 & | getShearY () const |
const U8 & | getCurveType () const |
const F32 & | getTwistBegin () const |
const F32 & | getTwistEnd () const |
const F32 & | getTwist () const |
const F32 & | getRadiusOffset () const |
const LLVector2 & | getTaper () const |
const F32 & | getTaperX () const |
const F32 & | getTaperY () const |
const F32 & | getRevolutions () const |
const F32 & | getSkew () const |
void | setCurveType (const U8 type) |
void | setBegin (const F32 begin) |
void | setEnd (const F32 end) |
void | setScale (const F32 x, const F32 y) |
void | setScaleX (const F32 v) |
void | setScaleY (const F32 v) |
void | setShear (const F32 x, const F32 y) |
void | setShearX (const F32 v) |
void | setShearY (const F32 v) |
void | setTwistBegin (const F32 twist_begin) |
void | setTwistEnd (const F32 twist_end) |
void | setTwist (const F32 twist) |
void | setRadiusOffset (const F32 radius_offset) |
void | setTaper (const F32 x, const F32 y) |
void | setTaperX (const F32 v) |
void | setTaperY (const F32 v) |
void | setRevolutions (const F32 revolutions) |
void | setSkew (const F32 skew) |
Protected Attributes | |
U8 | mCurveType |
F32 | mBegin |
F32 | mEnd |
LLVector2 | mScale |
LLVector2 | mShear |
F32 | mTwistBegin |
F32 | mTwistEnd |
F32 | mRadiusOffset |
LLVector2 | mTaper |
F32 | mRevolutions |
F32 | mSkew |
U32 | mCRC |
Friends | |
std::ostream & | operator<< (std::ostream &s, const LLPathParams &path_params) |
Definition at line 308 of file llvolume.h.
LLPathParams::LLPathParams | ( | ) | [inline] |
Definition at line 311 of file llvolume.h.
References LL_PCODE_PATH_LINE, LLProfileParams::mBegin, LLProfileParams::mCurveType, and LLProfileParams::mEnd.
LLPathParams::LLPathParams | ( | U8 | curve, | |
F32 | begin, | |||
F32 | end, | |||
F32 | scx, | |||
F32 | scy, | |||
F32 | shx, | |||
F32 | shy, | |||
F32 | twistend, | |||
F32 | twistbegin, | |||
F32 | radiusoffset, | |||
F32 | tx, | |||
F32 | ty, | |||
F32 | revolutions, | |||
F32 | skew | |||
) | [inline] |
Definition at line 326 of file llvolume.h.
LLPathParams::LLPathParams | ( | U8 | curve, | |
U16 | begin, | |||
U16 | end, | |||
U8 | scx, | |||
U8 | scy, | |||
U8 | shx, | |||
U8 | shy, | |||
U8 | twistend, | |||
U8 | twistbegin, | |||
U8 | radiusoffset, | |||
U8 | tx, | |||
U8 | ty, | |||
U8 | revolutions, | |||
U8 | skew | |||
) | [inline] |
Definition at line 335 of file llvolume.h.
References CUT_QUANTA, LLProfileParams::mBegin, LLProfileParams::mCurveType, LLProfileParams::mEnd, REV_QUANTA, SCALE_QUANTA, SHEAR_QUANTA, TAPER_QUANTA, and U8_TO_F32.
bool LLPathParams::operator== | ( | const LLPathParams & | params | ) | const [inline] |
Definition at line 431 of file llvolume.h.
References getBegin(), getCurveType(), getEnd(), getRadiusOffset(), getRevolutions(), getScale(), getShear(), getSkew(), getTaper(), getTwist(), and getTwistBegin().
bool LLPathParams::operator!= | ( | const LLPathParams & | params | ) | const [inline] |
Definition at line 447 of file llvolume.h.
References getBegin(), getCurveType(), getEnd(), getRadiusOffset(), getRevolutions(), getScale(), getShear(), getSkew(), getTaper(), getTwist(), and getTwistBegin().
bool LLPathParams::operator< | ( | const LLPathParams & | params | ) | const [inline] |
Definition at line 464 of file llvolume.h.
References getBegin(), getCurveType(), getEnd(), getRadiusOffset(), getRevolutions(), getScale(), getShear(), getSkew(), getTaper(), getTwist(), and getTwistBegin().
void LLPathParams::copyParams | ( | const LLPathParams & | params | ) |
Definition at line 1612 of file llvolume.cpp.
References getBegin(), getCurveType(), getEnd(), getRadiusOffset(), getRevolutions(), getScaleX(), getScaleY(), getShearX(), getShearY(), getSkew(), getTaperX(), getTaperY(), getTwist(), getTwistBegin(), setBegin(), setCurveType(), setEnd(), setRadiusOffset(), setRevolutions(), setScale(), setShear(), setSkew(), setTaper(), setTwist(), and setTwistBegin().
Referenced by LLVolumeParams::copyParams().
Definition at line 1285 of file llvolume.cpp.
References BUFSIZE, llendl, llwarns, LLMemType::MTYPE_VOLUME, NULL, S32, setBegin(), setCurveType(), setEnd(), setRadiusOffset(), setRevolutions(), setScale(), setScaleX(), setScaleY(), setShearX(), setShearY(), setSkew(), setTaperX(), setTaperY(), setTwist(), setTwistBegin(), and TRUE.
Referenced by LLVolumeParams::importFile().
Definition at line 1406 of file llvolume.cpp.
References getBegin(), getCurveType(), getEnd(), getRadiusOffset(), getRevolutions(), getScaleX(), getScaleY(), getShearX(), getShearY(), getSkew(), getTaperX(), getTaperY(), getTwist(), getTwistBegin(), and TRUE.
Referenced by LLVolumeParams::exportFile().
BOOL LLPathParams::importLegacyStream | ( | std::istream & | input_stream | ) |
Definition at line 1431 of file llvolume.cpp.
References BUFSIZE, llendl, llwarns, LLMemType::MTYPE_VOLUME, S32, setBegin(), setCurveType(), setEnd(), setRadiusOffset(), setRevolutions(), setScale(), setScaleX(), setScaleY(), setShearX(), setShearY(), setSkew(), setTaperX(), setTaperY(), setTwist(), setTwistBegin(), and TRUE.
Referenced by LLVolumeParams::importLegacyStream().
BOOL LLPathParams::exportLegacyStream | ( | std::ostream & | output_stream | ) | const |
Definition at line 1548 of file llvolume.cpp.
References getBegin(), getCurveType(), getEnd(), getRadiusOffset(), getRevolutions(), getScaleX(), getScaleY(), getShearX(), getShearY(), getSkew(), getTaperX(), getTaperY(), getTwist(), getTwistBegin(), S32, and TRUE.
Referenced by LLVolumeParams::exportLegacyStream().
LLSD LLPathParams::asLLSD | ( | ) | const |
Definition at line 1572 of file llvolume.cpp.
References getBegin(), getCurveType(), getEnd(), getRadiusOffset(), getRevolutions(), getScaleX(), getScaleY(), getShearX(), getShearY(), getSkew(), getTaperX(), getTaperY(), getTwist(), getTwistBegin(), and tut::sd().
Referenced by LLVolumeParams::operator LLSD().
LLPathParams::operator LLSD | ( | ) | const [inline] |
Definition at line 365 of file llvolume.h.
References LLProfileParams::asLLSD().
bool LLPathParams::fromLLSD | ( | LLSD & | sd | ) |
Definition at line 1593 of file llvolume.cpp.
References setBegin(), setCurveType(), setEnd(), setRadiusOffset(), setRevolutions(), setScaleX(), setScaleY(), setShearX(), setShearY(), setSkew(), setTaperX(), setTaperY(), setTwist(), and setTwistBegin().
Referenced by LLVolumeParams::fromLLSD().
const F32& LLPathParams::getBegin | ( | ) | const [inline] |
Definition at line 368 of file llvolume.h.
References LLProfileParams::mBegin.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), LLVolumeFace::createCap(), exportFile(), exportLegacyStream(), LLVolumeXml::exportPathParams(), LLPath::generate(), LLPath::genNGon(), LLVolumeParams::isConvex(), operator!=(), operator<(), operator==(), LLVolumeMessage::packPathParams(), and LLVolumeParams::reduceT().
const F32& LLPathParams::getEnd | ( | ) | const [inline] |
Definition at line 369 of file llvolume.h.
References LLProfileParams::mEnd.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), LLVolumeFace::createCap(), exportFile(), exportLegacyStream(), LLPath::generate(), LLPath::genNGon(), LLVolumeParams::isConvex(), operator!=(), operator<(), operator==(), LLVolumeMessage::packPathParams(), and LLVolumeParams::reduceT().
const LLVector2& LLPathParams::getScale | ( | ) | const [inline] |
Definition at line 370 of file llvolume.h.
Referenced by LLVolumeXml::exportPathParams(), LLVolume::generate(), LLPath::generate(), operator!=(), operator<(), and operator==().
const F32& LLPathParams::getScaleX | ( | ) | const [inline] |
Definition at line 371 of file llvolume.h.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), exportFile(), exportLegacyStream(), LLPath::generate(), LLPath::genNGon(), getBeginScale(), getEndScale(), and LLVolumeMessage::packPathParams().
const F32& LLPathParams::getScaleY | ( | ) | const [inline] |
Definition at line 372 of file llvolume.h.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), exportFile(), exportLegacyStream(), LLPath::genNGon(), getBeginScale(), getEndScale(), and LLVolumeMessage::packPathParams().
const LLVector2 LLPathParams::getBeginScale | ( | ) | const |
Definition at line 1106 of file llvolume.cpp.
References getScaleX(), getScaleY(), and LLVector2::mV.
Referenced by LLPath::generate(), and LLVolumeImplFlexible::setAttributesOfAllSections().
const LLVector2 LLPathParams::getEndScale | ( | ) | const |
Definition at line 1120 of file llvolume.cpp.
References getScaleX(), getScaleY(), and LLVector2::mV.
Referenced by LLPath::generate(), and LLVolumeImplFlexible::setAttributesOfAllSections().
const LLVector2& LLPathParams::getShear | ( | ) | const [inline] |
Definition at line 375 of file llvolume.h.
Referenced by LLVolumeXml::exportPathParams(), LLPath::generate(), LLPath::genNGon(), operator!=(), operator<(), and operator==().
const F32& LLPathParams::getShearX | ( | ) | const [inline] |
Definition at line 376 of file llvolume.h.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), exportFile(), exportLegacyStream(), and LLVolumeMessage::packPathParams().
const F32& LLPathParams::getShearY | ( | ) | const [inline] |
Definition at line 377 of file llvolume.h.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), exportFile(), exportLegacyStream(), and LLVolumeMessage::packPathParams().
const U8& LLPathParams::getCurveType | ( | ) | const [inline] |
Definition at line 378 of file llvolume.h.
References LLProfileParams::mCurveType.
Referenced by asLLSD(), LLVOVolume::canBeFlexible(), LLVolumeMessage::constrainVolumeParams(), copyParams(), LLVolumeFace::createCap(), exportFile(), exportLegacyStream(), LLVolumeXml::exportPathParams(), LLVolume::generate(), LLPath::generate(), LLPanelObject::getState(), LLVolumeParams::isConvex(), LLVOVolume::isFlexible(), LLVolume::LLVolume(), operator!=(), operator<(), operator==(), LLVolumeMessage::packPathParams(), LLVolumeParams::setRadiusOffset(), LLVolumeParams::setRatio(), and LLVOVolume::setVolume().
const F32& LLPathParams::getTwistBegin | ( | ) | const [inline] |
Definition at line 380 of file llvolume.h.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), exportFile(), exportLegacyStream(), LLVolumeXml::exportPathParams(), LLPath::generate(), LLPath::genNGon(), LLVolumeParams::isConvex(), operator!=(), operator<(), operator==(), LLVolumeMessage::packPathParams(), and LLVolumeImplFlexible::setAttributesOfAllSections().
const F32& LLPathParams::getTwistEnd | ( | ) | const [inline] |
Definition at line 381 of file llvolume.h.
Referenced by LLVolumeMessage::constrainVolumeParams().
const F32& LLPathParams::getTwist | ( | ) | const [inline] |
Definition at line 382 of file llvolume.h.
Referenced by asLLSD(), copyParams(), exportFile(), exportLegacyStream(), LLPath::generate(), LLPath::genNGon(), LLVolumeParams::isConvex(), operator!=(), operator<(), operator==(), LLVolumeMessage::packPathParams(), and LLVolumeImplFlexible::setAttributesOfAllSections().
const F32& LLPathParams::getRadiusOffset | ( | ) | const [inline] |
Definition at line 383 of file llvolume.h.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), exportFile(), exportLegacyStream(), LLVolumeXml::exportPathParams(), LLPath::genNGon(), operator!=(), operator<(), operator==(), and LLVolumeMessage::packPathParams().
const LLVector2& LLPathParams::getTaper | ( | ) | const [inline] |
Definition at line 384 of file llvolume.h.
Referenced by LLVolumeXml::exportPathParams(), operator!=(), operator<(), and operator==().
const F32& LLPathParams::getTaperX | ( | ) | const [inline] |
Definition at line 385 of file llvolume.h.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), exportFile(), exportLegacyStream(), LLPath::genNGon(), and LLVolumeMessage::packPathParams().
const F32& LLPathParams::getTaperY | ( | ) | const [inline] |
Definition at line 386 of file llvolume.h.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), exportFile(), exportLegacyStream(), LLPath::genNGon(), and LLVolumeMessage::packPathParams().
const F32& LLPathParams::getRevolutions | ( | ) | const [inline] |
Definition at line 387 of file llvolume.h.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), exportFile(), exportLegacyStream(), LLVolumeXml::exportPathParams(), LLPath::generate(), LLPath::genNGon(), operator!=(), operator<(), operator==(), and LLVolumeMessage::packPathParams().
const F32& LLPathParams::getSkew | ( | ) | const [inline] |
Definition at line 388 of file llvolume.h.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), exportFile(), exportLegacyStream(), LLVolumeXml::exportPathParams(), LLPath::genNGon(), operator!=(), operator<(), operator==(), and LLVolumeMessage::packPathParams().
void LLPathParams::setCurveType | ( | const U8 | type | ) | [inline] |
Definition at line 390 of file llvolume.h.
References LLProfileParams::mCurveType.
Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::setCube(), LLVolumeParams::setType(), and LLVolumeMessage::unpackPathParams().
void LLPathParams::setBegin | ( | const F32 | begin | ) | [inline] |
Definition at line 391 of file llvolume.h.
References LLProfileParams::mBegin.
Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::reduceT(), LLVolumeParams::setBeginAndEndT(), LLVolumeParams::setCube(), and LLVolumeMessage::unpackPathParams().
void LLPathParams::setEnd | ( | const F32 | end | ) | [inline] |
Definition at line 392 of file llvolume.h.
References LLProfileParams::mEnd.
Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::reduceT(), LLVolumeParams::setBeginAndEndT(), LLVolumeParams::setCube(), and LLVolumeMessage::unpackPathParams().
Definition at line 394 of file llvolume.h.
Referenced by copyParams(), importFile(), importLegacyStream(), LLVolumeParams::setCube(), LLVolumeParams::setRatio(), and LLVolumeMessage::unpackPathParams().
void LLPathParams::setScaleX | ( | const F32 | v | ) | [inline] |
Definition at line 395 of file llvolume.h.
References VX.
Referenced by fromLLSD(), importFile(), and importLegacyStream().
void LLPathParams::setScaleY | ( | const F32 | v | ) | [inline] |
Definition at line 396 of file llvolume.h.
References VY.
Referenced by fromLLSD(), importFile(), and importLegacyStream().
Definition at line 397 of file llvolume.h.
Referenced by copyParams(), LLVolumeParams::setCube(), LLVolumeParams::setShear(), and LLVolumeMessage::unpackPathParams().
void LLPathParams::setShearX | ( | const F32 | v | ) | [inline] |
Definition at line 398 of file llvolume.h.
References VX.
Referenced by fromLLSD(), importFile(), and importLegacyStream().
void LLPathParams::setShearY | ( | const F32 | v | ) | [inline] |
Definition at line 399 of file llvolume.h.
References VY.
Referenced by fromLLSD(), importFile(), and importLegacyStream().
void LLPathParams::setTwistBegin | ( | const F32 | twist_begin | ) | [inline] |
Definition at line 401 of file llvolume.h.
Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::setCube(), LLVolumeParams::setTwistBegin(), and LLVolumeMessage::unpackPathParams().
void LLPathParams::setTwistEnd | ( | const F32 | twist_end | ) | [inline] |
Definition at line 402 of file llvolume.h.
Referenced by LLVolumeParams::setCube(), LLVolumeParams::setTwist(), and LLVolumeParams::setTwistEnd().
void LLPathParams::setTwist | ( | const F32 | twist | ) | [inline] |
Definition at line 403 of file llvolume.h.
Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), and LLVolumeMessage::unpackPathParams().
void LLPathParams::setRadiusOffset | ( | const F32 | radius_offset | ) | [inline] |
Definition at line 404 of file llvolume.h.
Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::setCube(), LLVolumeParams::setRadiusOffset(), and LLVolumeMessage::unpackPathParams().
Definition at line 405 of file llvolume.h.
Referenced by copyParams(), LLVolumeParams::setCube(), and LLVolumeMessage::unpackPathParams().
void LLPathParams::setTaperX | ( | const F32 | v | ) | [inline] |
Definition at line 406 of file llvolume.h.
References VX.
Referenced by fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::setTaper(), LLVolumeParams::setTaperX(), and LLVolumeMessage::unpackPathParams().
void LLPathParams::setTaperY | ( | const F32 | v | ) | [inline] |
Definition at line 407 of file llvolume.h.
References VY.
Referenced by fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::setTaper(), LLVolumeParams::setTaperY(), and LLVolumeMessage::unpackPathParams().
void LLPathParams::setRevolutions | ( | const F32 | revolutions | ) | [inline] |
Definition at line 408 of file llvolume.h.
Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::setCube(), LLVolumeParams::setRevolutions(), and LLVolumeMessage::unpackPathParams().
void LLPathParams::setSkew | ( | const F32 | skew | ) | [inline] |
Definition at line 409 of file llvolume.h.
Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::setCube(), LLVolumeParams::setSkew(), and LLVolumeMessage::unpackPathParams().
std::ostream& operator<< | ( | std::ostream & | s, | |
const LLPathParams & | path_params | |||
) | [friend] |
Definition at line 4116 of file llvolume.cpp.
U8 LLPathParams::mCurveType [protected] |
F32 LLPathParams::mBegin [protected] |
F32 LLPathParams::mEnd [protected] |
LLVector2 LLPathParams::mScale [protected] |
Definition at line 418 of file llvolume.h.
Referenced by operator<<(), and LLPath::PathPt::PathPt().
LLVector2 LLPathParams::mShear [protected] |
F32 LLPathParams::mTwistBegin [protected] |
F32 LLPathParams::mTwistEnd [protected] |
F32 LLPathParams::mRadiusOffset [protected] |
LLVector2 LLPathParams::mTaper [protected] |
F32 LLPathParams::mRevolutions [protected] |
F32 LLPathParams::mSkew [protected] |
U32 LLPathParams::mCRC [protected] |
Definition at line 428 of file llvolume.h.