LLPath Class Reference

#include <llvolume.h>

Inheritance diagram for LLPath:

Inheritance graph
[legend]
Collaboration diagram for LLPath:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPath (const LLPathParams &params)
virtual ~LLPath ()
void genNGon (S32 sides, F32 offset=0.0f, F32 end_scale=1.f, F32 twist_scale=1.f)
virtual BOOL generate (F32 detail=1.0f, S32 split=0, BOOL is_sculpted=FALSE)
BOOL isOpen () const
F32 getStep () const
void setDirty ()
S32 getPathLength () const
void resizePath (S32 length)

Public Attributes

const LLPathParamsmParams
std::vector< PathPtmPath

Protected Attributes

BOOL mOpen
S32 mTotal
BOOL mDirty
F32 mStep

Friends

std::ostream & operator<< (std::ostream &s, const LLPath &path)

Classes

struct  PathPt

Detailed Description

Definition at line 705 of file llvolume.h.


Constructor & Destructor Documentation

LLPath::LLPath ( const LLPathParams params  )  [inline]

Definition at line 718 of file llvolume.h.

LLPath::~LLPath (  )  [virtual]

Definition at line 939 of file llvolume.cpp.


Member Function Documentation

BOOL LLPath::generate ( F32  detail = 1.0f,
S32  split = 0,
BOOL  is_sculpted = FALSE 
) [virtual]

Reimplemented in LLDynamicPath.

Definition at line 1120 of file llvolume.cpp.

References f, F_PI, FALSE, genNGon(), LLPathParams::getBegin(), LLPathParams::getBeginScale(), LLPathParams::getCurveType(), LLPathParams::getEnd(), LLPathParams::getEndScale(), LLPathParams::getRevolutions(), LLPathParams::getScale(), LLPathParams::getScaleX(), LLPathParams::getShear(), LLPathParams::getTwist(), LLPathParams::getTwistBegin(), i, lerp(), LL_PCODE_PATH_CIRCLE, LL_PCODE_PATH_CIRCLE2, LL_PCODE_PATH_LINE, LL_PCODE_PATH_TEST, llendl, llfloor(), llinfos, mDirty, MIN_DETAIL_FACES, MIN_LOD, mOpen, mParams, mPath, mStep, LLVector2::mV, S32, sculpt_sides(), t, and TRUE.

Referenced by LLVolume::generate(), and LLVolume::sculpt().

void LLPath::genNGon ( S32  sides,
F32  offset = 0.0f,
F32  end_scale = 1.f,
F32  twist_scale = 1.f 
)

Definition at line 943 of file llvolume.cpp.

References c, f, F_PI, LLPathParams::getBegin(), LLPathParams::getEnd(), LLPathParams::getRadiusOffset(), LLPathParams::getRevolutions(), LLPathParams::getScaleX(), LLPathParams::getScaleY(), LLPathParams::getShear(), LLPathParams::getSkew(), LLPathParams::getTaperX(), LLPathParams::getTaperY(), LLPathParams::getTwist(), LLPathParams::getTwistBegin(), lerp(), mOpen, mParams, mPath, LLPath::PathPt::mPos, LLPath::PathPt::mRot, LLPath::PathPt::mScale, LLPath::PathPt::mTexT, mTotal, LLVector2::mV, s, S32, LLQuaternion::setQuat(), LLVector3::setVec(), t, vector_append(), VX, and VY.

Referenced by generate().

S32 LLPath::getPathLength (  )  const [inline]

Definition at line 736 of file llvolume.h.

References mPath, and S32.

Referenced by LLDynamicPath::generate().

F32 LLPath::getStep (  )  const [inline]

Definition at line 733 of file llvolume.h.

References mStep.

BOOL LLPath::isOpen (  )  const [inline]

Definition at line 732 of file llvolume.h.

References mOpen.

Referenced by LLVolumeFace::createSide(), LLVolume::generate(), LLVolume::generateFaceMask(), LLVolume::getTriangleIndices(), and LLVolume::sculpt().

void LLPath::resizePath ( S32  length  )  [inline]

Definition at line 738 of file llvolume.h.

References mPath.

Referenced by LLVolumeImplFlexible::doFlexibleUpdate(), and LLDynamicPath::generate().

void LLPath::setDirty (  )  [inline]

Definition at line 734 of file llvolume.h.

References mDirty, and TRUE.

Referenced by LLVolume::setDirty().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const LLPath path 
) [friend]

Definition at line 3936 of file llvolume.cpp.


Member Data Documentation

BOOL LLPath::mDirty [protected]

Definition at line 749 of file llvolume.h.

Referenced by generate(), operator<<(), and setDirty().

BOOL LLPath::mOpen [protected]

Definition at line 747 of file llvolume.h.

Referenced by LLDynamicPath::generate(), generate(), genNGon(), isOpen(), and operator<<().

const LLPathParams& LLPath::mParams

Definition at line 743 of file llvolume.h.

Referenced by LLVolumeFace::createCap(), LLVolume::generate(), generate(), genNGon(), and LLVolume::getPathType().

std::vector<PathPt> LLPath::mPath

Definition at line 744 of file llvolume.h.

Referenced by LLVolumeFace::createCap(), LLVolumeFace::createSide(), LLVolumeFace::createUnCutCubeCap(), LLVolume::createVolumeFaces(), LLVolumeImplFlexible::doFlexibleUpdate(), LLVolume::generate(), LLDynamicPath::generate(), generate(), genNGon(), getPathLength(), LLVolume::getTriangleIndices(), resizePath(), and LLVolume::sculpt().

F32 LLPath::mStep [protected]

Definition at line 750 of file llvolume.h.

Referenced by generate(), getStep(), and operator<<().

S32 LLPath::mTotal [protected]

Definition at line 748 of file llvolume.h.

Referenced by genNGon(), and operator<<().


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