LLProfileParams Class Reference

#include <llvolume.h>

List of all members.

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 &params) const
bool operator!= (const LLProfileParams &params) const
bool operator< (const LLProfileParams &params) const
void copyParams (const LLProfileParams &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 F32getHollow () const
const U8getCurveType () 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)


Detailed Description

Definition at line 185 of file llvolume.h.


Constructor & Destructor Documentation

LLProfileParams::LLProfileParams (  )  [inline]

Definition at line 188 of file llvolume.h.

References LL_PCODE_PROFILE_SQUARE, mBegin, mCurveType, mEnd, and mHollow.

LLProfileParams::LLProfileParams ( U8  curve,
F32  begin,
F32  end,
F32  hollow 
) [inline]

Definition at line 196 of file llvolume.h.

LLProfileParams::LLProfileParams ( U8  curve,
U16  begin,
U16  end,
U16  hollow 
) [inline]

Definition at line 201 of file llvolume.h.

References CUT_QUANTA, f, HOLLOW_QUANTA, mBegin, mCurveType, mEnd, and mHollow.


Member Function Documentation

LLSD LLProfileParams::asLLSD (  )  const

Definition at line 910 of file llvolume.cpp.

References getBegin(), getCurveType(), getEnd(), getHollow(), and tut::sd().

Referenced by operator LLSD().

void LLProfileParams::copyParams ( const LLProfileParams params  ) 

Definition at line 930 of file llvolume.cpp.

References params, setBegin(), setCurveType(), setEnd(), and setHollow().

Referenced by LLVolumeParams::copyParams().

BOOL LLProfileParams::exportFile ( FILE *  fp  )  const

Definition at line 826 of file llvolume.cpp.

References getBegin(), getCurveType(), getEnd(), getHollow(), and TRUE.

Referenced by LLVolumeParams::exportFile().

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

Definition at line 898 of file llvolume.cpp.

References getBegin(), getCurveType(), getEnd(), getHollow(), S32, and TRUE.

Referenced by LLVolumeParams::exportLegacyStream().

bool LLProfileParams::fromLLSD ( LLSD sd  ) 

Definition at line 921 of file llvolume.cpp.

References tut::sd(), setBegin(), setCurveType(), setEnd(), and setHollow().

Referenced by LLVolumeParams::fromLLSD().

const F32& LLProfileParams::getBegin (  )  const [inline]

Definition at line 240 of file llvolume.h.

References mBegin.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), LLProfile::generate(), LLVolume::generateFaceMask(), LLProfile::genNGon(), LLVolumeParams::getBeginS(), LLVolumeParams::isConvex(), operator!=(), operator<(), operator==(), and LLVolumeParams::reduceS().

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

Definition at line 243 of file llvolume.h.

References mCurveType.

Referenced by asLLSD(), LLVolumeFace::createCap(), exportFile(), exportLegacyStream(), LLVolume::generate(), LLProfile::generate(), LLVolume::generateFaceMask(), LLVolume::getProfileType(), LLPanelObject::getState(), LLVolumeParams::isConvex(), LLVOVolume::isFlexible(), operator!=(), operator<(), operator==(), LLVolumeParams::setHollow(), LLVOVolume::setIsFlexible(), LLVolumeParams::setRadiusOffset(), and LLVolumeParams::setRatio().

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

Definition at line 241 of file llvolume.h.

References mEnd.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), LLProfile::generate(), LLVolume::generateFaceMask(), LLProfile::genNGon(), LLVolumeParams::getEndS(), LLVolumeParams::isConvex(), operator!=(), operator<(), operator==(), and LLVolumeParams::reduceS().

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

Definition at line 242 of file llvolume.h.

References mHollow.

Referenced by asLLSD(), exportFile(), exportLegacyStream(), LLProfile::generate(), LLVolumeParams::getHollow(), LLVolumeParams::isConvex(), LLProfile::isHollow(), operator!=(), operator<(), and operator==().

BOOL LLProfileParams::importFile ( FILE *  fp  ) 

Definition at line 764 of file llvolume.cpp.

References BUFSIZE, llendl, llwarns, NULL, S32, setBegin(), setCurveType(), setEnd(), setHollow(), and TRUE.

Referenced by LLVolumeParams::importFile().

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

Definition at line 839 of file llvolume.cpp.

References BUFSIZE, llendl, llwarns, S32, setBegin(), setCurveType(), setEnd(), setHollow(), and TRUE.

Referenced by LLVolumeParams::importLegacyStream().

LLProfileParams::operator LLSD (  )  const [inline]

Definition at line 237 of file llvolume.h.

References asLLSD().

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

Definition at line 271 of file llvolume.h.

References getBegin(), getCurveType(), getEnd(), getHollow(), and params.

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

Definition at line 281 of file llvolume.h.

References getBegin(), getCurveType(), getEnd(), getHollow(), and params.

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

Definition at line 262 of file llvolume.h.

References getBegin(), getCurveType(), getEnd(), getHollow(), and params.

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

Definition at line 246 of file llvolume.h.

References f, and mBegin.

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

void LLProfileParams::setCurveType ( const U32  type  )  [inline]

Definition at line 245 of file llvolume.h.

References mCurveType.

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

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

Definition at line 247 of file llvolume.h.

References f, and mEnd.

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

void LLProfileParams::setHollow ( const F32  hollow  )  [inline]

Definition at line 248 of file llvolume.h.

References f, and mHollow.

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


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const LLProfileParams profile_params 
) [friend]

Definition at line 3887 of file llvolume.cpp.


Member Data Documentation

F32 LLProfileParams::mBegin [protected]

Definition at line 255 of file llvolume.h.

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

U32 LLProfileParams::mCRC [protected]

Definition at line 259 of file llvolume.h.

U8 LLProfileParams::mCurveType [protected]

Definition at line 254 of file llvolume.h.

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

F32 LLProfileParams::mEnd [protected]

Definition at line 256 of file llvolume.h.

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

F32 LLProfileParams::mHollow [protected]

Definition at line 257 of file llvolume.h.

Referenced by getHollow(), LLProfileParams(), operator<<(), and setHollow().


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