LLPathParams Class Reference

#include <llvolume.h>

Collaboration diagram for LLPathParams:

Collaboration graph
[legend]
List of all members.

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 &params) const
bool operator!= (const LLPathParams &params) const
bool operator< (const LLPathParams &params) const
void copyParams (const LLPathParams &params)
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)
const F32getBegin () const
const F32getEnd () const
const LLVector2getScale () const
const F32getScaleX () const
const F32getScaleY () const
const LLVector2 getBeginScale () const
const LLVector2 getEndScale () const
const LLVector2getShear () const
const F32getShearX () const
const F32getShearY () const
const U8getCurveType () const
const F32getTwistBegin () const
const F32getTwistEnd () const
const F32getTwist () const
const F32getRadiusOffset () const
const LLVector2getTaper () const
const F32getTaperX () const
const F32getTaperY () const
const F32getRevolutions () const
const F32getSkew () 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)

Detailed Description

Definition at line 305 of file llvolume.h.


Constructor & Destructor Documentation

LLPathParams::LLPathParams (  )  [inline]

Definition at line 308 of file llvolume.h.

References LL_PCODE_PATH_LINE, mBegin, mCurveType, mEnd, mRadiusOffset, mRevolutions, mScale, mShear, mSkew, mTaper, mTwistBegin, mTwistEnd, and LLVector2::setVec().

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

References mScale, mShear, mTaper, and LLVector2::setVec().

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

References CUT_QUANTA, f, mBegin, mCurveType, mEnd, mRadiusOffset, mRevolutions, mScale, mShear, mSkew, mTaper, mTwistBegin, mTwistEnd, REV_QUANTA, SCALE_QUANTA, LLVector2::setVec(), SHEAR_QUANTA, TAPER_QUANTA, and U8_TO_F32.


Member Function Documentation

LLSD LLPathParams::asLLSD (  )  const

Definition at line 1550 of file llvolume.cpp.

References getBegin(), getCurveType(), getEnd(), getRadiusOffset(), getRevolutions(), getScaleX(), getScaleY(), getShearX(), getShearY(), getSkew(), getTaperX(), getTaperY(), getTwist(), getTwistBegin(), and tut::sd().

Referenced by operator LLSD().

void LLPathParams::copyParams ( const LLPathParams params  ) 

Definition at line 1590 of file llvolume.cpp.

References params, setBegin(), setCurveType(), setEnd(), setRadiusOffset(), setRevolutions(), setScale(), setShear(), setSkew(), setTaper(), setTwist(), and setTwistBegin().

Referenced by LLVolumeParams::copyParams().

BOOL LLPathParams::exportFile ( FILE *  fp  )  const

Definition at line 1386 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::exportLegacyStream ( std::ostream &  output_stream  )  const

Definition at line 1526 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().

bool LLPathParams::fromLLSD ( LLSD sd  ) 

Definition at line 1571 of file llvolume.cpp.

References tut::sd(), 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 365 of file llvolume.h.

References mBegin.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), LLPath::generate(), LLPath::genNGon(), LLVolumeParams::getBeginT(), LLVolumeParams::isConvex(), operator!=(), operator<(), operator==(), and LLVolumeParams::reduceT().

const LLVector2 LLPathParams::getBeginScale (  )  const

Definition at line 1092 of file llvolume.cpp.

References f, getScaleX(), getScaleY(), and LLVector2::mV.

Referenced by LLPath::generate().

const U8& LLPathParams::getCurveType (  )  const [inline]

Definition at line 375 of file llvolume.h.

References mCurveType.

Referenced by asLLSD(), LLVOVolume::canBeFlexible(), LLVolumeFace::createCap(), exportFile(), exportLegacyStream(), LLVolume::generate(), LLPath::generate(), LLVolume::getPathType(), LLPanelObject::getState(), LLVolumeParams::isConvex(), LLVolume::LLVolume(), operator!=(), operator<(), operator==(), LLVolumeParams::setRadiusOffset(), LLVolumeParams::setRatio(), and LLVOVolume::setVolume().

const F32& LLPathParams::getEnd (  )  const [inline]

Definition at line 366 of file llvolume.h.

References mEnd.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), LLPath::generate(), LLPath::genNGon(), LLVolumeParams::getEndT(), LLVolumeParams::isConvex(), operator!=(), operator<(), operator==(), and LLVolumeParams::reduceT().

const LLVector2 LLPathParams::getEndScale (  )  const

Definition at line 1106 of file llvolume.cpp.

References f, getScaleX(), getScaleY(), and LLVector2::mV.

Referenced by LLPath::generate().

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

Definition at line 380 of file llvolume.h.

References mRadiusOffset.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), LLPath::genNGon(), LLVolumeParams::getRadiusOffset(), operator!=(), operator<(), and operator==().

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

Definition at line 384 of file llvolume.h.

References mRevolutions.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), LLPath::generate(), LLPath::genNGon(), LLVolumeParams::getRevolutions(), operator!=(), operator<(), and operator==().

const LLVector2& LLPathParams::getScale (  )  const [inline]

Definition at line 367 of file llvolume.h.

References mScale.

Referenced by LLVolume::generate(), LLPath::generate(), operator!=(), operator<(), and operator==().

const F32& LLPathParams::getScaleX (  )  const [inline]

Definition at line 368 of file llvolume.h.

References mScale, and LLVector2::mV.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), LLPath::generate(), LLPath::genNGon(), getBeginScale(), getEndScale(), LLVolumeParams::getRatio(), and LLVolumeParams::getRatioX().

const F32& LLPathParams::getScaleY (  )  const [inline]

Definition at line 369 of file llvolume.h.

References mScale, and LLVector2::mV.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), LLPath::genNGon(), getBeginScale(), getEndScale(), and LLVolumeParams::getRatioY().

const LLVector2& LLPathParams::getShear (  )  const [inline]

Definition at line 372 of file llvolume.h.

References mShear.

Referenced by LLPath::generate(), LLPath::genNGon(), operator!=(), operator<(), and operator==().

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

Definition at line 373 of file llvolume.h.

References mShear, and LLVector2::mV.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), and LLVolumeParams::getShearX().

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

Definition at line 374 of file llvolume.h.

References mShear, and LLVector2::mV.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), and LLVolumeParams::getShearY().

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

Definition at line 385 of file llvolume.h.

References mSkew.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), LLPath::genNGon(), LLVolumeParams::getSkew(), operator!=(), operator<(), and operator==().

const LLVector2& LLPathParams::getTaper (  )  const [inline]

Definition at line 381 of file llvolume.h.

References mTaper.

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

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

Definition at line 382 of file llvolume.h.

References mTaper, and LLVector2::mV.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), LLPath::genNGon(), LLVolumeParams::getTaper(), and LLVolumeParams::getTaperX().

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

Definition at line 383 of file llvolume.h.

References mTaper, and LLVector2::mV.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), LLPath::genNGon(), and LLVolumeParams::getTaperY().

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

Definition at line 379 of file llvolume.h.

References mTwistEnd.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), LLPath::generate(), LLPath::genNGon(), LLVolumeParams::getTwist(), LLVolumeParams::isConvex(), operator!=(), operator<(), and operator==().

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

Definition at line 377 of file llvolume.h.

References mTwistBegin.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), LLPath::generate(), LLPath::genNGon(), LLVolumeParams::getTwistBegin(), LLVolumeParams::isConvex(), operator!=(), operator<(), and operator==().

const F32& LLPathParams::getTwistEnd (  )  const [inline]

Definition at line 378 of file llvolume.h.

References mTwistEnd.

BOOL LLPathParams::importFile ( FILE *  fp  ) 

Definition at line 1267 of file llvolume.cpp.

References BUFSIZE, llendl, llwarns, NULL, S32, setBegin(), setCurveType(), setEnd(), setRadiusOffset(), setRevolutions(), setScale(), setScaleX(), setScaleY(), setShearX(), setShearY(), setSkew(), setTaperX(), setTaperY(), setTwist(), setTwistBegin(), TRUE, x, and y.

Referenced by LLVolumeParams::importFile().

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

Definition at line 1411 of file llvolume.cpp.

References BUFSIZE, llendl, llwarns, S32, setBegin(), setCurveType(), setEnd(), setRadiusOffset(), setRevolutions(), setScale(), setScaleX(), setScaleY(), setShearX(), setShearY(), setSkew(), setTaperX(), setTaperY(), setTwist(), setTwistBegin(), TRUE, x, and y.

Referenced by LLVolumeParams::importLegacyStream().

LLPathParams::operator LLSD (  )  const [inline]

Definition at line 362 of file llvolume.h.

References asLLSD().

bool LLPathParams::operator!= ( const LLPathParams params  )  const [inline]

Definition at line 444 of file llvolume.h.

References getBegin(), getCurveType(), getEnd(), getRadiusOffset(), getRevolutions(), getScale(), getShear(), getSkew(), getTaper(), getTwist(), getTwistBegin(), and params.

bool LLPathParams::operator< ( const LLPathParams params  )  const [inline]

Definition at line 461 of file llvolume.h.

References getBegin(), getCurveType(), getEnd(), getRadiusOffset(), getRevolutions(), getScale(), getShear(), getSkew(), getTaper(), getTwist(), getTwistBegin(), and params.

bool LLPathParams::operator== ( const LLPathParams params  )  const [inline]

Definition at line 428 of file llvolume.h.

References getBegin(), getCurveType(), getEnd(), getRadiusOffset(), getRevolutions(), getScale(), getShear(), getSkew(), getTaper(), getTwist(), getTwistBegin(), and params.

void LLPathParams::setBegin ( const F32  begin  )  [inline]

Definition at line 388 of file llvolume.h.

References mBegin.

Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::reduceT(), and LLVolumeParams::setBeginAndEndT().

void LLPathParams::setCurveType ( const U8  type  )  [inline]

Definition at line 387 of file llvolume.h.

References mCurveType.

Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), and LLVolumeParams::setType().

void LLPathParams::setEnd ( const F32  end  )  [inline]

Definition at line 389 of file llvolume.h.

References mEnd.

Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), LLVolumeParams::reduceT(), and LLVolumeParams::setBeginAndEndT().

void LLPathParams::setRadiusOffset ( const F32  radius_offset  )  [inline]

Definition at line 401 of file llvolume.h.

References mRadiusOffset.

Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), and LLVolumeParams::setRadiusOffset().

void LLPathParams::setRevolutions ( const F32  revolutions  )  [inline]

Definition at line 405 of file llvolume.h.

References mRevolutions.

Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), and LLVolumeParams::setRevolutions().

void LLPathParams::setScale ( const F32  x,
const F32  y 
) [inline]

Definition at line 391 of file llvolume.h.

References mScale, and LLVector2::setVec().

Referenced by copyParams(), importFile(), importLegacyStream(), and LLVolumeParams::setRatio().

void LLPathParams::setScaleX ( const F32  v  )  [inline]

Definition at line 392 of file llvolume.h.

References mScale, LLVector2::mV, and VX.

Referenced by fromLLSD(), importFile(), and importLegacyStream().

void LLPathParams::setScaleY ( const F32  v  )  [inline]

Definition at line 393 of file llvolume.h.

References mScale, LLVector2::mV, and VY.

Referenced by fromLLSD(), importFile(), and importLegacyStream().

void LLPathParams::setShear ( const F32  x,
const F32  y 
) [inline]

Definition at line 394 of file llvolume.h.

References mShear, and LLVector2::setVec().

Referenced by copyParams(), and LLVolumeParams::setShear().

void LLPathParams::setShearX ( const F32  v  )  [inline]

Definition at line 395 of file llvolume.h.

References mShear, LLVector2::mV, and VX.

Referenced by fromLLSD(), importFile(), and importLegacyStream().

void LLPathParams::setShearY ( const F32  v  )  [inline]

Definition at line 396 of file llvolume.h.

References mShear, LLVector2::mV, and VY.

Referenced by fromLLSD(), importFile(), and importLegacyStream().

void LLPathParams::setSkew ( const F32  skew  )  [inline]

Definition at line 406 of file llvolume.h.

References mSkew.

Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), and LLVolumeParams::setSkew().

void LLPathParams::setTaper ( const F32  x,
const F32  y 
) [inline]

Definition at line 402 of file llvolume.h.

References mTaper, and LLVector2::setVec().

Referenced by copyParams().

void LLPathParams::setTaperX ( const F32  v  )  [inline]

Definition at line 403 of file llvolume.h.

References mTaper, LLVector2::mV, and VX.

Referenced by fromLLSD(), importFile(), importLegacyStream(), and LLVolumeParams::setTaperX().

void LLPathParams::setTaperY ( const F32  v  )  [inline]

Definition at line 404 of file llvolume.h.

References mTaper, LLVector2::mV, and VY.

Referenced by fromLLSD(), importFile(), importLegacyStream(), and LLVolumeParams::setTaperY().

void LLPathParams::setTwist ( const F32  twist  )  [inline]

Definition at line 400 of file llvolume.h.

References setTwistEnd().

Referenced by copyParams(), fromLLSD(), importFile(), and importLegacyStream().

void LLPathParams::setTwistBegin ( const F32  twist_begin  )  [inline]

Definition at line 398 of file llvolume.h.

References mTwistBegin.

Referenced by copyParams(), fromLLSD(), importFile(), importLegacyStream(), and LLVolumeParams::setTwistBegin().

void LLPathParams::setTwistEnd ( const F32  twist_end  )  [inline]

Definition at line 399 of file llvolume.h.

References mTwistEnd.

Referenced by setTwist(), and LLVolumeParams::setTwistEnd().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const LLPathParams path_params 
) [friend]

Definition at line 3898 of file llvolume.cpp.


Member Data Documentation

F32 LLPathParams::mBegin [protected]

Definition at line 413 of file llvolume.h.

Referenced by getBegin(), LLPathParams(), operator<<(), and setBegin().

U32 LLPathParams::mCRC [protected]

Definition at line 425 of file llvolume.h.

U8 LLPathParams::mCurveType [protected]

Definition at line 412 of file llvolume.h.

Referenced by getCurveType(), LLPathParams(), operator<<(), and setCurveType().

F32 LLPathParams::mEnd [protected]

Definition at line 414 of file llvolume.h.

Referenced by getEnd(), LLPathParams(), operator<<(), and setEnd().

F32 LLPathParams::mRadiusOffset [protected]

Definition at line 420 of file llvolume.h.

Referenced by getRadiusOffset(), LLPathParams(), operator<<(), and setRadiusOffset().

F32 LLPathParams::mRevolutions [protected]

Definition at line 422 of file llvolume.h.

Referenced by getRevolutions(), LLPathParams(), operator<<(), and setRevolutions().

LLVector2 LLPathParams::mScale [protected]

Definition at line 415 of file llvolume.h.

Referenced by getScale(), getScaleX(), getScaleY(), LLPathParams(), operator<<(), setScale(), setScaleX(), and setScaleY().

LLVector2 LLPathParams::mShear [protected]

Definition at line 416 of file llvolume.h.

Referenced by getShear(), getShearX(), getShearY(), LLPathParams(), operator<<(), setShear(), setShearX(), and setShearY().

F32 LLPathParams::mSkew [protected]

Definition at line 423 of file llvolume.h.

Referenced by getSkew(), LLPathParams(), operator<<(), and setSkew().

LLVector2 LLPathParams::mTaper [protected]

Definition at line 421 of file llvolume.h.

Referenced by getTaper(), getTaperX(), getTaperY(), LLPathParams(), operator<<(), setTaper(), setTaperX(), and setTaperY().

F32 LLPathParams::mTwistBegin [protected]

Definition at line 418 of file llvolume.h.

Referenced by getTwistBegin(), LLPathParams(), operator<<(), and setTwistBegin().

F32 LLPathParams::mTwistEnd [protected]

Definition at line 419 of file llvolume.h.

Referenced by getTwist(), getTwistEnd(), LLPathParams(), operator<<(), and setTwistEnd().


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