#include <llvolume.h>
Public Member Functions | |
LLProfileParams () | |
LLProfileParams (U8 curve, F32 begin, F32 end, F32 hollow) | |
LLProfileParams (U8 curve, U16 begin, U16 end, U16 hollow) | |
bool | operator== (const LLProfileParams ¶ms) const |
bool | operator!= (const LLProfileParams ¶ms) const |
bool | operator< (const LLProfileParams ¶ms) const |
void | copyParams (const LLProfileParams ¶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 F32 & | getHollow () const |
const U8 & | getCurveType () const |
void | setCurveType (const U32 type) |
void | setBegin (const F32 begin) |
void | setEnd (const F32 end) |
void | setHollow (const F32 hollow) |
Protected Attributes | |
U8 | mCurveType |
F32 | mBegin |
F32 | mEnd |
F32 | mHollow |
U32 | mCRC |
Friends | |
std::ostream & | operator<< (std::ostream &s, const LLProfileParams &profile_params) |
Definition at line 188 of file llvolume.h.
LLProfileParams::LLProfileParams | ( | ) | [inline] |
Definition at line 191 of file llvolume.h.
References LL_PCODE_PROFILE_SQUARE, mBegin, mCurveType, mEnd, and mHollow.
Definition at line 199 of file llvolume.h.
Definition at line 204 of file llvolume.h.
References CUT_QUANTA, HOLLOW_QUANTA, mBegin, mCurveType, mEnd, and mHollow.
bool LLProfileParams::operator== | ( | const LLProfileParams & | params | ) | const [inline] |
Definition at line 265 of file llvolume.h.
References getBegin(), getCurveType(), getEnd(), and getHollow().
bool LLProfileParams::operator!= | ( | const LLProfileParams & | params | ) | const [inline] |
Definition at line 274 of file llvolume.h.
References getBegin(), getCurveType(), getEnd(), and getHollow().
bool LLProfileParams::operator< | ( | const LLProfileParams & | params | ) | const [inline] |
Definition at line 284 of file llvolume.h.
References getBegin(), getCurveType(), getEnd(), and getHollow().
void LLProfileParams::copyParams | ( | const LLProfileParams & | params | ) |
Definition at line 943 of file llvolume.cpp.
References getBegin(), getCurveType(), getEnd(), getHollow(), LLMemType::MTYPE_VOLUME, setBegin(), setCurveType(), setEnd(), and setHollow().
Referenced by LLVolumeParams::copyParams().
Definition at line 773 of file llvolume.cpp.
References BUFSIZE, llendl, llwarns, LLMemType::MTYPE_VOLUME, NULL, S32, setBegin(), setCurveType(), setEnd(), setHollow(), and TRUE.
Referenced by LLVolumeParams::importFile().
Definition at line 837 of file llvolume.cpp.
References getBegin(), getCurveType(), getEnd(), getHollow(), and TRUE.
Referenced by LLVolumeParams::exportFile().
BOOL LLProfileParams::importLegacyStream | ( | std::istream & | input_stream | ) |
Definition at line 850 of file llvolume.cpp.
References BUFSIZE, llendl, llwarns, LLMemType::MTYPE_VOLUME, S32, setBegin(), setCurveType(), setEnd(), setHollow(), and TRUE.
Referenced by LLVolumeParams::importLegacyStream().
BOOL LLProfileParams::exportLegacyStream | ( | std::ostream & | output_stream | ) | const |
Definition at line 911 of file llvolume.cpp.
References getBegin(), getCurveType(), getEnd(), getHollow(), S32, and TRUE.
Referenced by LLVolumeParams::exportLegacyStream().
LLSD LLProfileParams::asLLSD | ( | ) | const |
Definition at line 923 of file llvolume.cpp.
References getBegin(), getCurveType(), getEnd(), getHollow(), and tut::sd().
Referenced by LLPathParams::operator LLSD(), and operator LLSD().
LLProfileParams::operator LLSD | ( | ) | const [inline] |
Definition at line 240 of file llvolume.h.
References asLLSD().
bool LLProfileParams::fromLLSD | ( | LLSD & | sd | ) |
Definition at line 934 of file llvolume.cpp.
References setBegin(), setCurveType(), setEnd(), and setHollow().
Referenced by LLVolumeParams::fromLLSD().
const F32& LLProfileParams::getBegin | ( | ) | const [inline] |
Definition at line 243 of file llvolume.h.
References mBegin.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), exportFile(), exportLegacyStream(), LLVolumeXml::exportProfileParams(), LLProfile::generate(), LLVolume::generateFaceMask(), LLProfile::genNGon(), LLVolumeParams::isConvex(), operator!=(), operator<(), operator==(), LLVolumeMessage::packProfileParams(), and LLVolumeParams::reduceS().
const F32& LLProfileParams::getEnd | ( | ) | const [inline] |
Definition at line 244 of file llvolume.h.
References mEnd.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), exportFile(), exportLegacyStream(), LLProfile::generate(), LLVolume::generateFaceMask(), LLProfile::genNGon(), LLVolumeParams::isConvex(), operator!=(), operator<(), operator==(), LLVolumeMessage::packProfileParams(), and LLVolumeParams::reduceS().
const F32& LLProfileParams::getHollow | ( | ) | const [inline] |
Definition at line 245 of file llvolume.h.
References mHollow.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), LLVolume::createVolumeFaces(), exportFile(), exportLegacyStream(), LLVolumeXml::exportProfileParams(), LLProfile::generate(), LLVolume::generateFaceMask(), LLProfile::genNGon(), LLProfile::genNormals(), LLVolume::getNumTriangleIndices(), LLVolume::getTriangleIndices(), LLVolumeParams::isConvex(), operator!=(), operator<(), operator==(), and LLVolumeMessage::packProfileParams().
const U8& LLProfileParams::getCurveType | ( | ) | const [inline] |
Definition at line 246 of file llvolume.h.
References mCurveType.
Referenced by asLLSD(), LLVolumeMessage::constrainVolumeParams(), copyParams(), LLVolumeFace::createCap(), exportFile(), exportLegacyStream(), LLVolumeXml::exportProfileParams(), LLVolume::generate(), LLProfile::generate(), LLVolume::generateFaceMask(), LLPanelObject::getState(), LLVolumeParams::isConvex(), LLVOVolume::isFlexible(), operator!=(), operator<(), operator==(), LLVolumeMessage::packProfileParams(), LLVolumeParams::setHollow(), LLVOVolume::setIsFlexible(), LLVolumeParams::setRadiusOffset(), and LLVolumeParams::setRatio().
void LLProfileParams::setCurveType | ( | const U32 | type | ) | [inline] |
Definition at line 248 of file llvolume.h.
References mCurveType.
Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::setCube(), LLVolumeParams::setType(), and LLVolumeMessage::unpackProfileParams().
void LLProfileParams::setBegin | ( | const F32 | begin | ) | [inline] |
Definition at line 249 of file llvolume.h.
References mBegin.
Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::reduceS(), LLVolumeParams::setBeginAndEndS(), LLVolumeParams::setCube(), and LLVolumeMessage::unpackProfileParams().
void LLProfileParams::setEnd | ( | const F32 | end | ) | [inline] |
Definition at line 250 of file llvolume.h.
References mEnd.
Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::reduceS(), LLVolumeParams::setBeginAndEndS(), LLVolumeParams::setCube(), and LLVolumeMessage::unpackProfileParams().
void LLProfileParams::setHollow | ( | const F32 | hollow | ) | [inline] |
Definition at line 251 of file llvolume.h.
References mHollow.
Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::setCube(), LLVolumeParams::setHollow(), and LLVolumeMessage::unpackProfileParams().
std::ostream& operator<< | ( | std::ostream & | s, | |
const LLProfileParams & | profile_params | |||
) | [friend] |
Definition at line 4105 of file llvolume.cpp.
U8 LLProfileParams::mCurveType [protected] |
Definition at line 257 of file llvolume.h.
Referenced by LLPathParams::getCurveType(), getCurveType(), LLPathParams::LLPathParams(), LLProfileParams(), operator<<(), LLPathParams::setCurveType(), and setCurveType().
F32 LLProfileParams::mBegin [protected] |
Definition at line 258 of file llvolume.h.
Referenced by LLPathParams::getBegin(), getBegin(), LLPathParams::LLPathParams(), LLProfileParams(), operator<<(), LLPathParams::setBegin(), and setBegin().
F32 LLProfileParams::mEnd [protected] |
Definition at line 259 of file llvolume.h.
Referenced by LLPathParams::getEnd(), getEnd(), LLPathParams::LLPathParams(), LLProfileParams(), operator<<(), LLPathParams::setEnd(), and setEnd().
F32 LLProfileParams::mHollow [protected] |
Definition at line 260 of file llvolume.h.
Referenced by getHollow(), LLProfileParams(), operator<<(), and setHollow().
U32 LLProfileParams::mCRC [protected] |
Definition at line 262 of file llvolume.h.