#include <llvopartgroup.h>
Public Types | |
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) |
virtual F32 | getBinRadius () |
virtual void | updateSpatialExtents (LLVector3 &newMin, LLVector3 &newMax) |
virtual U32 | getPartitionType () const |
void | setPixelAreaAndAngle (LLAgent &agent) |
void | updateTextures (LLAgent &agent) |
LLDrawable * | createDrawable (LLPipeline *pipeline) |
BOOL | updateGeometry (LLDrawable *drawable) |
void | getGeometry (S32 idx, LLStrider< LLVector3 > &verticesp, LLStrider< LLVector3 > &normalsp, LLStrider< LLVector2 > &texcoordsp, LLStrider< LLColor4U > &colorsp, LLStrider< U16 > &indicesp) |
void | updateFaceSize (S32 idx) |
F32 | getPartSize (S32 idx) |
void | setViewerPartGroup (LLViewerPartGroup *part_groupp) |
LLViewerPartGroup * | getViewerPartGroup () |
Protected Member Functions | |
~LLVOPartGroup () | |
Protected Attributes | |
LLViewerPartGroup * | mViewerPartGroupp |
Definition at line 42 of file llvopartgroup.h.
anonymous enum |
LLVOPartGroup::LLVOPartGroup | ( | const LLUUID & | id, | |
const LLPCode | pcode, | |||
LLViewerRegion * | regionp | |||
) |
Definition at line 56 of file llvopartgroup.cpp.
References FALSE, LLViewerObject::mbCanSelect, LLUUID::null, LLViewerObject::setNumTEs(), and LLViewerObject::setTETexture().
LLVOPartGroup::~LLVOPartGroup | ( | ) | [protected] |
Definition at line 66 of file llvopartgroup.cpp.
BOOL LLVOPartGroup::isActive | ( | void | ) | const [virtual] |
Reimplemented from LLViewerObject.
Definition at line 71 of file llvopartgroup.cpp.
References FALSE.
Reimplemented from LLViewerObject.
Definition at line 89 of file llvopartgroup.cpp.
References TRUE.
F32 LLVOPartGroup::getBinRadius | ( | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 76 of file llvopartgroup.cpp.
References LLXform::mScale, and LLVector3::mV.
Reimplemented from LLViewerObject.
Definition at line 81 of file llvopartgroup.cpp.
References LLViewerObject::getPositionAgent(), LLViewerObject::mDrawable, and LLXform::mScale.
U32 LLVOPartGroup::getPartitionType | ( | ) | const [virtual] |
Reimplemented from LLViewerObject.
Definition at line 343 of file llvopartgroup.cpp.
References LLViewerRegion::PARTITION_PARTICLE.
void LLVOPartGroup::setPixelAreaAndAngle | ( | LLAgent & | agent | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 94 of file llvopartgroup.cpp.
References LLSingleton< LLViewerCamera >::getInstance(), LLViewerObject::getMidScale(), LLCoordFrame::getOrigin(), LLViewerObject::getRenderPosition(), LLViewerObject::isHUDAttachment(), LLViewerObject::mAppAngle, and RAD_TO_DEG.
void LLVOPartGroup::updateTextures | ( | LLAgent & | agent | ) | [virtual] |
LLDrawable * LLVOPartGroup::createDrawable | ( | LLPipeline * | pipeline | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 116 of file llvopartgroup.cpp.
References LLPipeline::allocDrawable(), FALSE, LLViewerObject::mDrawable, and LLPipeline::RENDER_TYPE_PARTICLES.
BOOL LLVOPartGroup::updateGeometry | ( | LLDrawable * | drawable | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 136 of file llvopartgroup.cpp.
References LLFace::clearState(), LLViewerObject::dirtySpatialGroup(), LLFastTimer::FTM_UPDATE_PARTICLES, LLFace::FULLBRIGHT, LLSpatialGroup::GEOM_DIRTY, LLViewerPartGroup::getCount(), LLDrawable::getFace(), LLSingleton< LLViewerCamera >::getInstance(), LLViewerPartSim::getMaxPartCount(), LLDrawable::getNumFaces(), LLCoordFrame::getOrigin(), LLViewerCamera::getPixelMeterRatio(), LLDrawable::getSpatialGroup(), LLViewerObject::getTEImage(), gPipeline, LLPipeline::hasRenderType(), i, LLPartData::LL_PART_EMISSIVE_MASK, llendl, llmax(), llwarns, LLVector3::magVecSquared(), MAX_PARTICLE_AREA_SCALE, LLFace::mCenterLocal, LLViewerPart::mColor, LLAlphaObject::mDepth, LLViewerObject::mDrawable, LLPartData::mFlags, LLViewerPart::mImagep, LLDrawable::movePartition(), LLViewerPartGroup::mParticles, LLViewerObject::mPixelArea, LLViewerPart::mPosAgent, LLViewerPart::mScale, LLVector2::mV, mViewerPartGroupp, NULL, LLPipeline::RENDER_TYPE_PARTICLES, S32, LLPipeline::sCompiles, LLFace::setFaceColor(), LLDrawable::setNumFaces(), LLDrawable::setNumFacesFast(), LLFace::setSize(), LLFace::setState(), LLSpatialGroup::setState(), LLFace::setTEOffset(), LLFace::setTexture(), LLFace::setViewerObject(), LLFace::setVirtualSize(), and TRUE.
void LLVOPartGroup::getGeometry | ( | S32 | idx, | |
LLStrider< LLVector3 > & | verticesp, | |||
LLStrider< LLVector3 > & | normalsp, | |||
LLStrider< LLVector2 > & | texcoordsp, | |||
LLStrider< LLColor4U > & | colorsp, | |||
LLStrider< U16 > & | indicesp | |||
) | [virtual] |
Implements LLAlphaObject.
Definition at line 264 of file llvopartgroup.cpp.
References gAgent, LLAgent::getCameraPositionAgent(), LLSingleton< LLViewerCamera >::getInstance(), LLCoordFrame::getXAxis(), 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(), and S32.
void LLVOPartGroup::updateFaceSize | ( | S32 | idx | ) | [inline, virtual] |
Reimplemented from LLAlphaObject.
Definition at line 126 of file llvopartgroup.cpp.
References LLViewerPartGroup::mParticles, mViewerPartGroupp, and S32.
void LLVOPartGroup::setViewerPartGroup | ( | LLViewerPartGroup * | part_groupp | ) | [inline] |
LLViewerPartGroup* LLVOPartGroup::getViewerPartGroup | ( | ) | [inline] |
LLViewerPartGroup* LLVOPartGroup::mViewerPartGroupp [protected] |
Definition at line 82 of file llvopartgroup.h.
Referenced by getGeometry(), getPartSize(), getViewerPartGroup(), setViewerPartGroup(), and updateGeometry().