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 (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)
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)
void setCube ()

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 524 of file llvolume.h.


Constructor & Destructor Documentation

LLVolumeParams::LLVolumeParams (  )  [inline]

Definition at line 527 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 531 of file llvolume.h.


Member Function Documentation

bool LLVolumeParams::operator== ( const LLVolumeParams params  )  const

Definition at line 2120 of file llvolume.cpp.

References getPathParams(), getProfileParams(), mSculptID, and mSculptType.

Here is the call graph for this function:

bool LLVolumeParams::operator!= ( const LLVolumeParams params  )  const

Definition at line 2128 of file llvolume.cpp.

References getPathParams(), getProfileParams(), mSculptID, and mSculptType.

Here is the call graph for this function:

bool LLVolumeParams::operator< ( const LLVolumeParams params  )  const

Definition at line 2136 of file llvolume.cpp.

References getPathParams(), getProfileParams(), mSculptID, and mSculptType.

Here is the call graph for this function:

void LLVolumeParams::copyParams ( const LLVolumeParams params  ) 

const LLProfileParams& LLVolumeParams::getProfileParams (  )  const [inline]

LLProfileParams& LLVolumeParams::getProfileParams (  )  [inline]

Definition at line 545 of file llvolume.h.

const LLPathParams& LLVolumeParams::getPathParams (  )  const [inline]

LLPathParams& LLVolumeParams::getPathParams (  )  [inline]

Definition at line 547 of file llvolume.h.

BOOL LLVolumeParams::importFile ( LLFILE fp  ) 

Definition at line 3780 of file llvolume.cpp.

References BUFSIZE, LLPathParams::importFile(), LLProfileParams::importFile(), llendl, llwarns, mPathParams, mProfileParams, LLMemType::MTYPE_VOLUME, NULL, S32, and TRUE.

Here is the call graph for this function:

BOOL LLVolumeParams::exportFile ( LLFILE fp  )  const

Definition at line 3825 of file llvolume.cpp.

References LLProfileParams::exportFile(), LLPathParams::exportFile(), mPathParams, mProfileParams, and TRUE.

Here is the call graph for this function:

BOOL LLVolumeParams::importLegacyStream ( std::istream &  input_stream  ) 

Definition at line 3836 of file llvolume.cpp.

References BUFSIZE, LLPathParams::importLegacyStream(), LLProfileParams::importLegacyStream(), llendl, llwarns, mPathParams, mProfileParams, LLMemType::MTYPE_VOLUME, S32, and TRUE.

Here is the call graph for this function:

BOOL LLVolumeParams::exportLegacyStream ( std::ostream &  output_stream  )  const

Definition at line 3877 of file llvolume.cpp.

References LLProfileParams::exportLegacyStream(), LLPathParams::exportLegacyStream(), mPathParams, mProfileParams, LLMemType::MTYPE_VOLUME, and TRUE.

Here is the call graph for this function:

LLSD LLVolumeParams::asLLSD (  )  const

Definition at line 3889 of file llvolume.cpp.

References mPathParams, mProfileParams, and tut::sd().

Here is the call graph for this function:

LLVolumeParams::operator LLSD (  )  const [inline]

Definition at line 556 of file llvolume.h.

References LLPathParams::asLLSD().

Here is the call graph for this function:

bool LLVolumeParams::fromLLSD ( LLSD sd  ) 

Definition at line 3897 of file llvolume.cpp.

References LLProfileParams::fromLLSD(), LLPathParams::fromLLSD(), mPathParams, and mProfileParams.

Here is the call graph for this function:

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

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

Definition at line 2195 of file llvolume.cpp.

References limit_range(), MIN_CUT_DELTA, mProfileParams, LLProfileParams::setBegin(), and LLProfileParams::setEnd().

Referenced by LLToolPlacer::addObject(), LLVolumeMessage::constrainVolumeParams(), LLPanelObject::getVolumeParams(), LLVOTextBubble::LLVOTextBubble(), and validate().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 2216 of file llvolume.cpp.

References limit_range(), MIN_CUT_DELTA, mPathParams, LLPathParams::setBegin(), and LLPathParams::setEnd().

Referenced by LLToolPlacer::addObject(), LLVolumeMessage::constrainVolumeParams(), LLPanelObject::getVolumeParams(), LLVOTextBubble::LLVOTextBubble(), and validate().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLVolumeParams::setHollow ( const F32  hollow  ) 

bool LLVolumeParams::setRatio ( const F32  x  )  [inline]

Definition at line 570 of file llvolume.h.

Referenced by LLToolPlacer::addObject(), LLVolumeMessage::constrainVolumeParams(), LLPanelObject::getVolumeParams(), LLVOTextBubble::LLVOTextBubble(), and validate().

Here is the caller graph for this function:

bool LLVolumeParams::setShear ( const F32  x  )  [inline]

Definition at line 571 of file llvolume.h.

References LLPathParams::setShear().

Referenced by LLToolPlacer::addObject(), LLVolumeMessage::constrainVolumeParams(), LLPanelObject::getVolumeParams(), LLVOTextBubble::LLVOTextBubble(), and validate().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 2308 of file llvolume.cpp.

References limit_range(), mPathParams, LLPathParams::setShear(), SHEAR_MAX, and SHEAR_MIN.

Here is the call graph for this function:

bool LLVolumeParams::setTwistBegin ( const F32  twist_begin  ) 

Definition at line 2263 of file llvolume.cpp.

References limit_range(), mPathParams, LLPathParams::setTwistBegin(), TWIST_MAX, and TWIST_MIN.

Referenced by LLVolumeMessage::constrainVolumeParams(), LLPanelObject::getVolumeParams(), and validate().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLVolumeParams::setTwistEnd ( const F32  twist_end  ) 

Definition at line 2271 of file llvolume.cpp.

References limit_range(), mPathParams, LLPathParams::setTwistEnd(), TWIST_MAX, and TWIST_MIN.

Referenced by LLVolumeMessage::constrainVolumeParams(), LLPanelObject::getVolumeParams(), and validate().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLVolumeParams::setTwist ( const F32  twist  )  [inline]

Definition at line 577 of file llvolume.h.

References LLPathParams::setTwistEnd().

Referenced by LLPanelObject::getVolumeParams().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 578 of file llvolume.h.

References LLPathParams::setTaperX(), and LLPathParams::setTaperY().

Referenced by LLVolumeMessage::constrainVolumeParams(), LLPanelObject::getVolumeParams(), and validate().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLVolumeParams::setTaperX ( const F32  v  ) 

Definition at line 2318 of file llvolume.cpp.

References limit_range(), mPathParams, LLPathParams::setTaperX(), TAPER_MAX, and TAPER_MIN.

Here is the call graph for this function:

bool LLVolumeParams::setTaperY ( const F32  v  ) 

Definition at line 2326 of file llvolume.cpp.

References limit_range(), mPathParams, LLPathParams::setTaperY(), TAPER_MAX, and TAPER_MIN.

Here is the call graph for this function:

bool LLVolumeParams::setRevolutions ( const F32  revolutions  ) 

Definition at line 2334 of file llvolume.cpp.

References limit_range(), mPathParams, REV_MAX, REV_MIN, and LLPathParams::setRevolutions().

Referenced by LLVolumeMessage::constrainVolumeParams(), LLPanelObject::getVolumeParams(), and validate().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLVolumeParams::setRadiusOffset ( const F32  radius_offset  ) 

bool LLVolumeParams::setSkew ( const F32  skew  ) 

Definition at line 2391 of file llvolume.cpp.

References approx_zero(), getRatioX(), getRevolutions(), llclamp(), mPathParams, LLPathParams::setSkew(), SKEW_MAX, and SKEW_MIN.

Referenced by LLVolumeMessage::constrainVolumeParams(), LLPanelObject::getVolumeParams(), and validate().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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]

const F32& LLVolumeParams::getBeginS (  )  const [inline]

Definition at line 592 of file llvolume.h.

Referenced by LLPanelObject::getState().

Here is the caller graph for this function:

const F32& LLVolumeParams::getBeginT (  )  const [inline]

Definition at line 593 of file llvolume.h.

Referenced by LLPanelObject::getState().

Here is the caller graph for this function:

const F32& LLVolumeParams::getEndS (  )  const [inline]

Definition at line 594 of file llvolume.h.

Referenced by LLPanelObject::getState().

Here is the caller graph for this function:

const F32& LLVolumeParams::getEndT (  )  const [inline]

Definition at line 595 of file llvolume.h.

Referenced by LLPanelObject::getState().

Here is the caller graph for this function:

const F32& LLVolumeParams::getHollow (  )  const [inline]

Definition at line 597 of file llvolume.h.

Referenced by LLPanelObject::getState().

Here is the caller graph for this function:

const F32& LLVolumeParams::getTwist (  )  const [inline]

Definition at line 598 of file llvolume.h.

Referenced by LLPanelObject::getState().

Here is the caller graph for this function:

const F32& LLVolumeParams::getRatio (  )  const [inline]

Definition at line 599 of file llvolume.h.

const F32& LLVolumeParams::getRatioX (  )  const [inline]

Definition at line 600 of file llvolume.h.

Referenced by LLPanelObject::getState(), and setSkew().

Here is the caller graph for this function:

const F32& LLVolumeParams::getRatioY (  )  const [inline]

Definition at line 601 of file llvolume.h.

Referenced by LLPanelObject::getState(), and setRadiusOffset().

Here is the caller graph for this function:

const F32& LLVolumeParams::getShearX (  )  const [inline]

Definition at line 602 of file llvolume.h.

Referenced by LLPanelObject::getState().

Here is the caller graph for this function:

const F32& LLVolumeParams::getShearY (  )  const [inline]

Definition at line 603 of file llvolume.h.

Referenced by LLPanelObject::getState().

Here is the caller graph for this function:

const F32& LLVolumeParams::getTwistBegin (  )  const [inline]

Definition at line 605 of file llvolume.h.

Referenced by LLPanelObject::getState().

Here is the caller graph for this function:

const F32& LLVolumeParams::getRadiusOffset (  )  const [inline]

Definition at line 606 of file llvolume.h.

Referenced by LLPanelObject::getState().

Here is the caller graph for this function:

const F32& LLVolumeParams::getTaper (  )  const [inline]

Definition at line 607 of file llvolume.h.

const F32& LLVolumeParams::getTaperX (  )  const [inline]

Definition at line 608 of file llvolume.h.

Referenced by LLPanelObject::getState().

Here is the caller graph for this function:

const F32& LLVolumeParams::getTaperY (  )  const [inline]

Definition at line 609 of file llvolume.h.

Referenced by LLPanelObject::getState(), and setRadiusOffset().

Here is the caller graph for this function:

const F32& LLVolumeParams::getRevolutions (  )  const [inline]

Definition at line 610 of file llvolume.h.

Referenced by LLPanelObject::getState(), and setSkew().

Here is the caller graph for this function:

const F32& LLVolumeParams::getSkew (  )  const [inline]

Definition at line 611 of file llvolume.h.

Referenced by LLPanelObject::getState().

Here is the caller graph for this function:

const LLUUID& LLVolumeParams::getSculptID (  )  const [inline]

Definition at line 612 of file llvolume.h.

Referenced by copyParams(), LLVolume::LLVolume(), and LLVOVolume::setVolume().

Here is the caller graph for this function:

const U8& LLVolumeParams::getSculptType (  )  const [inline]

Definition at line 613 of file llvolume.h.

Referenced by copyParams(), LLVolumeFace::createSide(), and LLVolume::sculpt().

Here is the caller graph for this function:

BOOL LLVolumeParams::isConvex (  )  const

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

Definition at line 3904 of file llvolume.cpp.

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

Here is the call graph for this function:

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

Definition at line 3920 of file llvolume.cpp.

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

Here is the call graph for this function:

void LLVolumeParams::setCube (  ) 


Friends And Related Function Documentation

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

Definition at line 4134 of file llvolume.cpp.


Member Data Documentation

Definition at line 639 of file llvolume.h.

Referenced by copyParams(), operator!=(), operator<(), operator==(), and setSculptID().

Definition at line 640 of file llvolume.h.

Referenced by copyParams(), operator!=(), operator<(), operator==(), and setSculptID().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:38:00 2008 for SecondLife by  doxygen 1.5.5