LLVOPartGroup Class Reference

#include <llvopartgroup.h>

Inheritance diagram for LLVOPartGroup:

Inheritance graph
[legend]
Collaboration diagram for LLVOPartGroup:

Collaboration graph
[legend]
List of all members.

Public Types

 VERTEX_DATA_MASK
enum  { VERTEX_DATA_MASK }

Public Member Functions

 LLVOPartGroup (const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp)
BOOL isActive () const
BOOL idleUpdate (LLAgent &agent, LLWorld &world, const F64 &time)
BOOL isParticle ()
virtual F32 getBinRadius ()
virtual void updateSpatialExtents (LLVector3 &newMin, LLVector3 &newMax)
virtual U32 getPartitionType () const
void setPixelAreaAndAngle (LLAgent &agent)
void updateTextures (LLAgent &agent)
LLDrawablecreateDrawable (LLPipeline *pipeline)
BOOL updateGeometry (LLDrawable *drawable)
void getGeometry (S32 idx, LLStrider< LLVector3 > &verticesp, LLStrider< LLVector3 > &normalsp, LLStrider< LLVector2 > &texcoordsp, LLStrider< LLColor4U > &colorsp, LLStrider< U32 > &indicesp)
void updateFaceSize (S32 idx)
F32 getPartSize (S32 idx)
void setViewerPartGroup (LLViewerPartGroup *part_groupp)
LLViewerPartGroupgetViewerPartGroup ()

Protected Member Functions

 ~LLVOPartGroup ()

Protected Attributes

LLViewerPartGroupmViewerPartGroupp
LLVector3 mExtents [2]
LLColor4 mDebugColor

Detailed Description

Definition at line 42 of file llvopartgroup.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
VERTEX_DATA_MASK 

Definition at line 45 of file llvopartgroup.h.


Constructor & Destructor Documentation

LLVOPartGroup::LLVOPartGroup ( const LLUUID id,
const LLPCode  pcode,
LLViewerRegion regionp 
)

Definition at line 55 of file llvopartgroup.cpp.

References f, FALSE, ll_frand(), LLViewerObject::mbCanSelect, mDebugColor, LLUUID::null, LLViewerObject::setNumTEs(), and LLViewerObject::setTETexture().

LLVOPartGroup::~LLVOPartGroup (  )  [protected]

Definition at line 66 of file llvopartgroup.cpp.


Member Function Documentation

LLDrawable * LLVOPartGroup::createDrawable ( LLPipeline pipeline  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 118 of file llvopartgroup.cpp.

References LLPipeline::allocDrawable(), FALSE, LLViewerObject::mDrawable, and LLPipeline::RENDER_TYPE_PARTICLES.

F32 LLVOPartGroup::getBinRadius (  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 76 of file llvopartgroup.cpp.

References LLXform::mScale, and LLVector3::mV.

void LLVOPartGroup::getGeometry ( S32  idx,
LLStrider< LLVector3 > &  verticesp,
LLStrider< LLVector3 > &  normalsp,
LLStrider< LLVector2 > &  texcoordsp,
LLStrider< LLColor4U > &  colorsp,
LLStrider< U32 > &  indicesp 
) [virtual]

Implements LLAlphaObject.

Definition at line 297 of file llvopartgroup.cpp.

References f, gAgent, gCamera, LLAgent::getCameraPositionAgent(), LLCoordFrame::getXAxis(), isParticle(), LLPartData::LL_PART_FOLLOW_VELOCITY_MASK, LLViewerPart::mColor, LLViewerObject::mDrawable, LLPartData::mFlags, LLViewerPartGroup::mParticles, LLViewerPart::mPosAgent, LLViewerPart::mScale, LLVector2::mV, LLViewerPart::mVelocity, mViewerPartGroupp, LLVector2::normVec(), LLVector3::normVec(), right, and S32.

U32 LLVOPartGroup::getPartitionType (  )  const [virtual]

Reimplemented from LLViewerObject.

Definition at line 396 of file llvopartgroup.cpp.

References LLPipeline::PARTITION_PARTICLE.

F32 LLVOPartGroup::getPartSize ( S32  idx  )  [virtual]

Reimplemented from LLAlphaObject.

Definition at line 128 of file llvopartgroup.cpp.

References LLViewerPartGroup::mParticles, mViewerPartGroupp, and S32.

LLViewerPartGroup* LLVOPartGroup::getViewerPartGroup (  )  [inline]

Definition at line 78 of file llvopartgroup.h.

References mViewerPartGroupp.

BOOL LLVOPartGroup::idleUpdate ( LLAgent agent,
LLWorld world,
const F64 time 
) [virtual]

Reimplemented from LLViewerObject.

Definition at line 91 of file llvopartgroup.cpp.

References TRUE.

BOOL LLVOPartGroup::isActive (  )  const [virtual]

Reimplemented from LLViewerObject.

Definition at line 71 of file llvopartgroup.cpp.

References TRUE.

BOOL LLVOPartGroup::isParticle (  )  [virtual]

Reimplemented from LLAlphaObject.

Definition at line 391 of file llvopartgroup.cpp.

References FALSE.

Referenced by getGeometry(), and updateGeometry().

void LLVOPartGroup::setPixelAreaAndAngle ( LLAgent agent  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 96 of file llvopartgroup.cpp.

References f, gCamera, LLViewerObject::getMidScale(), LLCoordFrame::getOrigin(), LLViewerObject::getRenderPosition(), LLViewerObject::isHUDAttachment(), LLViewerObject::mAppAngle, RAD_TO_DEG, and range.

void LLVOPartGroup::setViewerPartGroup ( LLViewerPartGroup part_groupp  )  [inline]

Definition at line 77 of file llvopartgroup.h.

References mViewerPartGroupp.

void LLVOPartGroup::updateFaceSize ( S32  idx  )  [inline, virtual]

Reimplemented from LLViewerObject.

Definition at line 75 of file llvopartgroup.h.

BOOL LLVOPartGroup::updateGeometry ( LLDrawable drawable  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 138 of file llvopartgroup.cpp.

References LLFace::clearState(), count, LLSpatialGroup::dirtyGeom(), f, LLFastTimer::FTM_UPDATE_PARTICLES, LLFace::FULLBRIGHT, gCamera, LLViewerPartGroup::getCount(), LLDrawable::getFace(), LLViewerPartSim::getMaxPartCount(), LLDrawable::getNumFaces(), LLCoordFrame::getOrigin(), LLViewerCamera::getPixelMeterRatio(), LLDrawable::getSpatialGroup(), LLViewerObject::getTEImage(), gPipeline, LLPipeline::hasRenderType(), i, isParticle(), LLPartData::LL_PART_EMISSIVE_MASK, llendl, llmax(), llwarns, LLVector3::magVecSquared(), MAX_PARTICLE_AREA_SCALE, LLFace::mCenterLocal, LLAlphaObject::mDepth, LLViewerObject::mDrawable, mExtents, LLDrawable::movePartition(), LLViewerPartGroup::mParticles, LLViewerObject::mPixelArea, LLVector3::mV, mViewerPartGroupp, LLCoordFrame::mYAxis, LLCoordFrame::mZAxis, NULL, LLPipeline::RENDER_TYPE_PARTICLES, S32, LLPipeline::sCompiles, LLFace::setFaceColor(), LLDrawable::setNumFaces(), LLDrawable::setNumFacesFast(), LLFace::setSize(), LLFace::setState(), LLFace::setTEOffset(), LLFace::setTexture(), LLFace::setViewerObject(), LLFace::setVirtualSize(), TRUE, update_min_max(), y, and z.

void LLVOPartGroup::updateSpatialExtents ( LLVector3 newMin,
LLVector3 newMax 
) [virtual]

Reimplemented from LLViewerObject.

Definition at line 81 of file llvopartgroup.cpp.

References LLViewerObject::getPositionAgent(), LLViewerObject::mDrawable, mExtents, and LLXform::mScale.

void LLVOPartGroup::updateTextures ( LLAgent agent  )  [virtual]

Reimplemented from LLViewerObject.

Definition at line 112 of file llvopartgroup.cpp.


Member Data Documentation

LLColor4 LLVOPartGroup::mDebugColor [protected]

Definition at line 85 of file llvopartgroup.h.

Referenced by LLVOPartGroup().

LLVector3 LLVOPartGroup::mExtents[2] [protected]

Definition at line 84 of file llvopartgroup.h.

Referenced by updateGeometry(), and updateSpatialExtents().

LLViewerPartGroup* LLVOPartGroup::mViewerPartGroupp [protected]

Definition at line 83 of file llvopartgroup.h.

Referenced by getGeometry(), getPartSize(), getViewerPartGroup(), setViewerPartGroup(), and updateGeometry().


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