LLVolumeParams Class Reference

#include <llvolume.h>

Collaboration diagram for LLVolumeParams:

Collaboration graph
[legend]
List of all members.

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 &params) const
bool operator!= (const LLVolumeParams &params) const
bool operator< (const LLVolumeParams &params) const
void copyParams (const LLVolumeParams &params)
const LLProfileParamsgetProfileParams () const
LLProfileParamsgetProfileParams ()
const LLPathParamsgetPathParams () const
LLPathParamsgetPathParams ()
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 F32getBeginS () const
const F32getBeginT () const
const F32getEndS () const
const F32getEndT () const
const F32getHollow () const
const F32getTwist () const
const F32getRatio () const
const F32getRatioX () const
const F32getRatioY () const
const F32getShearX () const
const F32getShearY () const
const F32getTwistBegin () const
const F32getRadiusOffset () const
const F32getTaper () const
const F32getTaperX () const
const F32getTaperY () const
const F32getRevolutions () const
const F32getSkew () const
const LLUUIDgetSculptID () const
const U8getSculptType () 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

Detailed Description

Definition at line 521 of file llvolume.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Definition at line 544 of file llvolume.h.

References mPathParams.

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]

Definition at line 542 of file llvolume.h.

References mProfileParams.

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]

Definition at line 596 of file llvolume.h.

References LLPathParams::getScaleX(), and mPathParams.

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]

Definition at line 604 of file llvolume.h.

References LLPathParams::getTaperX(), and mPathParams.

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]

Definition at line 553 of file llvolume.h.

References asLLSD().

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.

void LLVolumeParams::reduceS ( F32  begin,
F32  end 
)

Definition at line 3734 of file llvolume.cpp.

References a, b, LLProfileParams::getBegin(), LLProfileParams::getEnd(), llclampf(), mProfileParams, LLProfileParams::setBegin(), and LLProfileParams::setEnd().

void LLVolumeParams::reduceT ( F32  begin,
F32  end 
)

Definition at line 3750 of file llvolume.cpp.

References a, b, LLPathParams::getBegin(), LLPathParams::getEnd(), llclampf(), mPathParams, LLPathParams::setBegin(), and LLPathParams::setEnd().

bool LLVolumeParams::setBeginAndEndS ( const F32  begin,
const F32  end 
)

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

bool LLVolumeParams::setBeginAndEndT ( const F32  begin,
const F32  end 
)

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

bool LLVolumeParams::setRatio ( const F32  x,
const F32  y 
)

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

bool LLVolumeParams::setSculptID ( const LLUUID  sculpt_id,
U8  sculpt_type 
)

Definition at line 2325 of file llvolume.cpp.

References mSculptID, and mSculptType.

Referenced by LLPanelObject::getVolumeParams(), LLImagePreviewSculpted::LLImagePreviewSculpted(), LLPanelObject::onCommitParametric(), and LLVOVolume::processUpdateMessage().

bool LLVolumeParams::setShear ( const F32  x,
const F32  y 
)

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

bool LLVolumeParams::setTaper ( const F32  x,
const F32  y 
) [inline]

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

bool LLVolumeParams::setType ( U8  profile,
U8  path 
)

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


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const LLVolumeParams volume_params 
) [friend]

Definition at line 3916 of file llvolume.cpp.


Member Data Documentation

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


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:12:02 2010 for Second Life Viewer by  doxygen 1.4.7