#include <llvovolume.h>
Definition at line 73 of file llvovolume.h.
anonymous enum |
LLVOVolume::~LLVOVolume | ( | ) | [protected, virtual] |
LLVOVolume::LLVOVolume | ( | const LLUUID & | id, | |
const LLPCode | pcode, | |||
LLViewerRegion * | regionp | |||
) |
Definition at line 81 of file llvovolume.cpp.
References FALSE, MIN_LOD, mLOD, mLODChanged, LLViewerObject::mNumFaces, mRelativeXform, mRelativeXformInvTrans, mSculptChanged, mTexAnimMode, mTextureAnimp, mVObjRadius, NULL, LLMatrix3::setIdentity(), and LLMatrix4::setIdentity().
void LLVOVolume::initClass | ( | void | ) | [static] |
Definition at line 107 of file llvovolume.cpp.
Referenced by LLViewerObject::initVOClasses().
void LLVOVolume::preUpdateGeom | ( | ) | [static] |
Definition at line 1758 of file llvovolume.cpp.
References sNumLODChanges.
Referenced by LLPipeline::updateGeom().
LLDrawable * LLVOVolume::createDrawable | ( | LLPipeline * | pipeline | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 629 of file llvovolume.cpp.
References addFace(), LLPipeline::allocDrawable(), LLSingleton< LLViewerCamera >::getInstance(), getIsLight(), LLPrimitive::getNumTEs(), gPipeline, i, isAttachment(), LLViewerObject::mDrawable, LLViewerObject::mNumFaces, LLPipeline::RENDER_TYPE_VOLUME, S32, LLPipeline::setLight(), TRUE, and updateRadius().
void LLVOVolume::deleteFaces | ( | ) |
Definition at line 1703 of file llvovolume.cpp.
References LLViewerObject::mDrawable, LLViewerObject::mNumFaces, LLPointer< Type >::notNull(), and S32.
Referenced by regenFaces().
void LLVOVolume::animateTextures | ( | ) |
Definition at line 273 of file llvovolume.cpp.
References LLViewerTextureAnim::animateTextures(), LLPrimitive::getNumTEs(), LLTextureEntry::getOffset(), LLTextureEntry::getRotation(), LLTextureEntry::getScale(), LLFace::getTextureEntry(), LLFace::getVirtualSize(), gPipeline, i, LLMatrix4::initAll(), LLPipeline::markTextured(), LLViewerObject::mDrawable, LLTextureAnim::mFace, mFaceMappingChanged, MIN_TEX_ANIM_SIZE, LLTextureAnim::mMode, LLViewerTextureAnim::mOffS, LLViewerTextureAnim::mOffT, LLTextureAnim::mRate, LLViewerTextureAnim::mRot, LLViewerTextureAnim::mScaleS, LLViewerTextureAnim::mScaleT, mTexAnimMode, mTextureAnimp, LLFace::mTextureMatrix, LLMatrix4::rotate(), LLTextureAnim::ROTATE, S32, LLTextureAnim::SCALE, LLMatrix4::setIdentity(), LLQuaternion::setQuat(), LLViewerObject::setTEOffset(), LLViewerObject::setTERotation(), setTEScale(), LLMatrix4::translate(), LLViewerTextureAnim::TRANSLATE, and TRUE.
Referenced by idleUpdate().
Reimplemented from LLViewerObject.
Definition at line 379 of file llvovolume.cpp.
References animateTextures(), LLVolumeInterface::doIdleUpdate(), gAnimateTextures, LLViewerObject::idleUpdate(), LLPointer< Type >::isNull(), LLViewerObject::mDead, LLViewerObject::mDrawable, mTextureAnimp, mVolumeImpl, and TRUE.
BOOL LLVOVolume::isActive | ( | void | ) | const [virtual] |
Reimplemented from LLViewerObject.
Definition at line 584 of file llvovolume.cpp.
References LLVolumeInterface::isActive(), LLViewerObject::mStatic, mTextureAnimp, and mVolumeImpl.
BOOL LLVOVolume::isAttachment | ( | ) | const [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1726 of file llvovolume.cpp.
References FALSE, LLViewerObject::mState, and TRUE.
Referenced by createDrawable().
BOOL LLVOVolume::isRootEdit | ( | ) | const [virtual] |
Reimplemented from LLXform.
Definition at line 1233 of file llvovolume.cpp.
References FALSE, LLPrimitive::isAvatar(), LLXform::mParent, and TRUE.
BOOL LLVOVolume::isHUDAttachment | ( | ) | const [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1738 of file llvovolume.cpp.
References ATTACHMENT_ID_FROM_STATE, LLViewerObject::mState, and S32.
Referenced by LLPipeline::calcNearbyLights(), getBinRadius(), getPartitionType(), LLVolumeGeometryManager::rebuildGeom(), updateFaceFlags(), and updateTextures().
void LLVOVolume::generateSilhouette | ( | LLSelectNode * | nodep, | |
const LLVector3 & | view_point | |||
) |
Definition at line 1669 of file llvovolume.cpp.
References LLVolume::generateSilhouetteVertices(), LLViewerObject::getRegion(), LLViewerObject::getRenderPosition(), LLViewerObject::getRenderRotation(), LLXform::getScale(), LLPrimitive::getVolume(), isVolumeGlobal(), LLVector3::magVec(), LLViewerObject::mDrawable, mRelativeXform, mRelativeXformInvTrans, LLSelectNode::mSilhouetteExists, LLSelectNode::mSilhouetteNormals, LLSelectNode::mSilhouetteSegments, LLSelectNode::mSilhouetteVertices, LLVector3::mV, LLVector3::scaleVec(), LLMatrix4::translate(), TRUE, updateRelativeXform(), VX, VY, and VZ.
void LLVOVolume::setParent | ( | LLViewerObject * | parent | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 922 of file llvovolume.cpp.
References LLXform::getParent(), gPipeline, LLPipeline::markMoved(), LLPipeline::markRebuild(), LLViewerObject::mDrawable, LLDrawable::REBUILD_VOLUME, LLViewerObject::setParent(), and TRUE.
S32 LLVOVolume::getLOD | ( | ) | const [inline, virtual] |
const LLVector3 LLVOVolume::getPivotPositionAgent | ( | ) | const [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1855 of file llvovolume.cpp.
References LLVolumeInterface::getPivotPosition(), LLViewerObject::getPivotPositionAgent(), and mVolumeImpl.
const LLMatrix4& LLVOVolume::getRelativeXform | ( | ) | const [inline] |
Definition at line 110 of file llvovolume.h.
References mRelativeXform.
Referenced by LLViewerCamera::areVertsVisible(), LLVolumeGeometryManager::rebuildGeom(), and LLDrawable::updateDistance().
const LLMatrix3& LLVOVolume::getRelativeXformInvTrans | ( | ) | const [inline] |
Definition at line 111 of file llvovolume.h.
References mRelativeXformInvTrans.
Referenced by LLVolumeGeometryManager::rebuildGeom().
const LLMatrix4 LLVOVolume::getRenderMatrix | ( | ) | const [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1748 of file llvovolume.cpp.
References LLViewerObject::mDrawable.
Reimplemented from LLViewerObject.
Definition at line 1909 of file llvovolume.cpp.
References agentPositionToVolume(), FALSE, LLPrimitive::getVolume(), LLVolume::lineSegmentIntersect(), LLLineSegmentAABB(), TRUE, and volumePositionToAgent().
Definition at line 1883 of file llvovolume.cpp.
References LLViewerObject::getRenderPosition(), LLViewerObject::getRenderRotation(), LLXform::getScale(), isVolumeGlobal(), LLVector3::mV, LLVector3::scaleVec(), VX, VY, and VZ.
Referenced by lineSegmentIntersect().
Definition at line 1894 of file llvovolume.cpp.
References LLViewerObject::getRenderRotation().
Definition at line 1899 of file llvovolume.cpp.
References LLViewerObject::getRenderPosition(), LLViewerObject::getRenderRotation(), LLXform::getScale(), and LLVector3::scaleVec().
Referenced by lineSegmentIntersect().
BOOL LLVOVolume::getVolumeChanged | ( | ) | const [inline] |
Definition at line 554 of file llvovolume.cpp.
References LLPipeline::calcPixelArea(), LLSingleton< LLViewerCamera >::getInstance(), LLFace::getPositionAgent(), llclamp(), LLFace::mExtents, LLFace::mTexExtents, and LLFace::setPixelArea().
Referenced by updateTextures().
F32 LLVOVolume::getRadius | ( | ) | const [inline] |
const LLMatrix4 & LLVOVolume::getWorldMatrix | ( | LLXformMatrix * | xform | ) | const [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1874 of file llvovolume.cpp.
References LLXformMatrix::getWorldMatrix(), LLVolumeInterface::getWorldMatrix(), and mVolumeImpl.
void LLVOVolume::markForUpdate | ( | BOOL | priority | ) | [inline] |
Reimplemented from LLViewerObject.
Definition at line 125 of file llvovolume.h.
References LLViewerObject::markForUpdate(), mVolumeChanged, and TRUE.
Referenced by processUpdateMessage(), setIsFlexible(), and setSelected().
void LLVOVolume::onShift | ( | const LLVector3 & | shift_vector | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1864 of file llvovolume.cpp.
References mVolumeImpl, LLVolumeInterface::onShift(), and updateRelativeXform().
void LLVOVolume::parameterChanged | ( | U16 | param_type, | |
bool | local_origin | |||
) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1763 of file llvovolume.cpp.
References LLViewerObject::parameterChanged().
Referenced by setLightColor(), setLightCutoff(), setLightFalloff(), setLightIntensity(), and setLightRadius().
void LLVOVolume::parameterChanged | ( | U16 | param_type, | |
LLNetworkData * | data, | |||
BOOL | in_use, | |||
bool | local_origin | |||
) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1768 of file llvovolume.cpp.
References getIsLight(), gPipeline, LLDrawable::LIGHT, LLViewerObject::mDrawable, mVolumeImpl, LLPointer< Type >::notNull(), LLVolumeInterface::onParameterChanged(), LLViewerObject::parameterChanged(), and LLPipeline::setLight().
U32 LLVOVolume::processUpdateMessage | ( | LLMessageSystem * | mesgsys, | |
void ** | user_data, | |||
U32 | block_num, | |||
const EObjectUpdateType | update_type, | |||
LLDataPacker * | dp | |||
) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 112 of file llvovolume.cpp.
References _PREHASH_ObjectData, _PREHASH_TextureAnim, _PREHASH_TextureEntry, LLDir::deleteFilesInDir(), LLDataPacker::dumpBufferToLog(), gDirUtilp, LLMessageSystem::getBinaryDataFast(), LLDir::getDirDelimiter(), LLDir::getExpandedFilename(), LLViewerObject::getID(), LLViewerRegion::getOriginGlobal(), LLViewerObject::getParameterEntry(), LLDataPacker::getPassFlags(), LLViewerObject::getRegion(), LLSculptParams::getSculptTexture(), LLSculptParams::getSculptType(), LLMessageSystem::getSizeFast(), gPipeline, isSculpted(), LL_MAX_PATH, LL_PATH_CACHE, llendl, llwarns, markForUpdate(), LLPipeline::markTextured(), LLViewerObject::mDrawable, mFaceMappingChanged, LLTextureAnim::mMode, mTexAnimMode, mTextureAnimp, NULL, OUT_FULL, OUT_TERSE_IMPROVED, LLNetworkData::PARAMS_SCULPT, LLViewerObject::processUpdateMessage(), LLViewerTextureAnim::reset(), S32, LLVolumeParams::setSculptID(), setVolume(), LLTextureAnim::SMOOTH, TEM_CHANGE_COLOR, TEM_CHANGE_TEXTURE, TEM_INVALID, TRUE, LLTextureAnim::unpackTAMessage(), LLPrimitive::unpackTEMessage(), LLVolumeMessage::unpackVolumeParams(), and updateTEData().
void LLVOVolume::setSelected | ( | BOOL | sel | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1785 of file llvovolume.cpp.
References markForUpdate(), LLViewerObject::mDrawable, LLPointer< Type >::notNull(), LLViewerObject::setSelected(), and TRUE.
BOOL LLVOVolume::setDrawableParent | ( | LLDrawable * | parentp | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 873 of file llvovolume.cpp.
References FALSE, gPipeline, LLDrawable::isActive(), LLDrawable::makeActive(), LLPipeline::markRebuild(), LLViewerObject::mDrawable, LLDrawable::REBUILD_VOLUME, LLViewerObject::setDrawableParent(), and TRUE.
Reimplemented from LLViewerObject.
Definition at line 602 of file llvovolume.cpp.
References LLXform::getScale(), gPipeline, LLPipeline::markRebuild(), LLViewerObject::mDrawable, mVolumeImpl, LLVolumeInterface::onSetScale(), LLDrawable::REBUILD_POSITION, LLViewerObject::setScale(), TRUE, and updateRadius().
void LLVOVolume::setTEImage | ( | const U8 | te, | |
LLViewerImage * | imagep | |||
) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1242 of file llvovolume.cpp.
References gPipeline, LLPipeline::markTextured(), LLViewerObject::mDrawable, mFaceMappingChanged, LLViewerObject::mTEImages, LLViewerObject::setTEImage(), and TRUE.
Reimplemented from LLViewerObject.
Definition at line 1253 of file llvovolume.cpp.
References gPipeline, LLPipeline::markTextured(), LLViewerObject::mDrawable, mFaceMappingChanged, S32, LLViewerObject::setTETexture(), and TRUE.
Reimplemented from LLViewerObject.
Definition at line 1269 of file llvovolume.cpp.
References gPipeline, LLPipeline::markTextured(), LLViewerObject::mDrawable, mFaceMappingChanged, S32, LLViewerObject::setTEColor(), and TRUE.
Reimplemented from LLViewerObject.
Definition at line 1280 of file llvovolume.cpp.
References gPipeline, LLPipeline::markTextured(), LLViewerObject::mDrawable, mFaceMappingChanged, S32, LLViewerObject::setTEBumpmap(), and TRUE.
Reimplemented from LLViewerObject.
Definition at line 1302 of file llvovolume.cpp.
References gPipeline, LLPipeline::markTextured(), LLViewerObject::mDrawable, mFaceMappingChanged, S32, LLViewerObject::setTEShiny(), and TRUE.
Reimplemented from LLViewerObject.
Definition at line 1313 of file llvovolume.cpp.
References gPipeline, LLPipeline::markTextured(), LLViewerObject::mDrawable, mFaceMappingChanged, S32, LLViewerObject::setTEFullbright(), and TRUE.
Reimplemented from LLViewerObject.
Definition at line 1324 of file llvovolume.cpp.
References gPipeline, LLPipeline::markTextured(), LLViewerObject::mDrawable, mFaceMappingChanged, S32, LLViewerObject::setTEMediaFlags(), and TRUE.
Reimplemented from LLViewerObject.
Definition at line 1335 of file llvovolume.cpp.
References gPipeline, LLPipeline::markTextured(), LLViewerObject::mDrawable, mFaceMappingChanged, S32, LLViewerObject::setTEGlow(), and TRUE.
Reimplemented from LLViewerObject.
Definition at line 1346 of file llvovolume.cpp.
References gPipeline, LLPipeline::markTextured(), LLViewerObject::mDrawable, mFaceMappingChanged, S32, LLViewerObject::setTEScale(), and TRUE.
Referenced by animateTextures().
Reimplemented from LLViewerObject.
Definition at line 1357 of file llvovolume.cpp.
References gPipeline, LLPipeline::markTextured(), LLViewerObject::mDrawable, mFaceMappingChanged, S32, LLViewerObject::setTEScaleS(), and TRUE.
Reimplemented from LLViewerObject.
Definition at line 1368 of file llvovolume.cpp.
References gPipeline, LLPipeline::markTextured(), LLViewerObject::mDrawable, mFaceMappingChanged, S32, LLViewerObject::setTEScaleT(), and TRUE.
Reimplemented from LLViewerObject.
Definition at line 1291 of file llvovolume.cpp.
References gPipeline, LLPipeline::markTextured(), LLViewerObject::mDrawable, mFaceMappingChanged, S32, LLViewerObject::setTETexGen(), and TRUE.
Reimplemented from LLViewerObject.
Definition at line 589 of file llvovolume.cpp.
References LLViewerObject::setMaterial().
void LLVOVolume::setTexture | ( | const S32 | face | ) |
Definition at line 596 of file llvovolume.cpp.
References LLViewerImage::bindTexture(), LLPrimitive::getNumTEs(), LLViewerObject::getTEImage(), and llassert.
BOOL LLVOVolume::setVolume | ( | const LLVolumeParams & | volume_params, | |
const S32 | detail, | |||
bool | unique_volume = false | |||
) | [virtual] |
Reimplemented from LLPrimitive.
Definition at line 660 of file llvovolume.cpp.
References FALSE, LLPathParams::getCurveType(), LLViewerImageList::getImage(), LLViewerObject::getParameterEntry(), LLVolumeParams::getPathParams(), LLVolumeParams::getSculptID(), gImageList, isSculpted(), LLVolumeInterface::isVolumeUnique(), LL_PCODE_PATH_FLEXIBLE, LLVolumeImplFlexible, LLViewerObject::mDrawable, mFaceMappingChanged, mLOD, mSculptChanged, mSculptTexture, mVolumeImpl, LLPointer< Type >::notNull(), NULL, LLVolumeInterface::onSetVolume(), LLNetworkData::PARAMS_FLEXIBLE, sculpt(), LLViewerObject::setParameterEntryInUse(), LLPrimitive::setVolume(), and TRUE.
Referenced by LLVolumeImplFlexible::doUpdateGeometry(), processUpdateMessage(), setIsFlexible(), and updateGeometry().
void LLVOVolume::sculpt | ( | ) |
Definition at line 717 of file llvovolume.cpp.
References FALSE, LLVolume::getSculptLevel(), LLPrimitive::getVolume(), llendl, llerrs, llwarns, mSculptTexture, LLPointer< Type >::notNull(), NULL, S32, and LLVolume::sculpt().
Referenced by setVolume().
void LLVOVolume::updateRelativeXform | ( | ) |
Definition at line 1021 of file llvovolume.cpp.
References LLXform::getPosition(), LLXform::getRotation(), LLXform::getScale(), LLMatrix4::initRows(), LLDrawable::isActive(), LLDrawable::isSpatialRoot(), LLViewerObject::mDrawable, LLXform::mParent, mRelativeXform, mRelativeXformInvTrans, LLVector3::mV, mVolumeImpl, LLMatrix3::setRows(), LLMatrix3::transpose(), LLVolumeInterface::updateRelativeXform(), VX, VY, and VZ.
Referenced by LLViewerCamera::areVertsVisible(), LLVolumeImplFlexible::doUpdateGeometry(), generateSilhouette(), onShift(), LLDrawable::updateDistance(), and updateGeometry().
BOOL LLVOVolume::updateGeometry | ( | LLDrawable * | drawable | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1111 of file llvovolume.cpp.
References LLViewerObject::dirtySpatialGroup(), LLVolumeInterface::doUpdateGeometry(), FALSE, LLFastTimer::FTM_GEN_FLEX, LLFastTimer::FTM_GEN_TRIANGLES, LLFastTimer::FTM_GEN_VOLUME, LLFastTimer::FTM_UPDATE_PRIMITIVES, genBBoxes(), LLVolume::getDetail(), LLVolume::getNumFaces(), LLVolume::getParams(), LLPrimitive::getVolume(), LLPointer< Type >::isNull(), LLViewerObject::mDrawable, mFaceMappingChanged, mLODChanged, mSculptChanged, mVolumeChanged, mVolumeImpl, NULL, LLDrawable::REBUILD_VOLUME, regenFaces(), S32, LLPipeline::sCompiles, LLDrawable::setState(), setVolume(), sNumLODChanges, TRUE, updateFaceFlags(), LLViewerObject::updateGeometry(), and updateRelativeXform().
void LLVOVolume::updateFaceSize | ( | S32 | idx | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1219 of file llvovolume.cpp.
References LLPrimitive::getVolume(), LLVolume::getVolumeFace(), LLViewerObject::mDrawable, LLVolumeFace::mIndices, LLVolumeFace::mVertices, and LLFace::setSize().
BOOL LLVOVolume::updateLOD | ( | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 853 of file llvovolume.cpp.
References calcLOD(), FALSE, gPipeline, LLPointer< Type >::isNull(), LLPipeline::markRebuild(), LLViewerObject::mDrawable, mLODChanged, LLDrawable::REBUILD_VOLUME, TRUE, and LLViewerObject::updateLOD().
void LLVOVolume::updateRadius | ( | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1714 of file llvovolume.cpp.
References LLXform::getScale(), LLPointer< Type >::isNull(), LLVector3::magVec(), LLViewerObject::mDrawable, and mVObjRadius.
Referenced by createDrawable(), genBBoxes(), and setScale().
void LLVOVolume::updateTextures | ( | LLAgent & | agent | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 407 of file llvovolume.cpp.
References LLFrameTimer::getElapsedTimeF32(), LLViewerObject::mDrawable, mTextureUpdateTimer, and updateTextures().
Referenced by LLVolumeGeometryManager::rebuildGeom().
void LLVOVolume::updateTextures | ( | ) |
Definition at line 419 of file llvovolume.cpp.
References LLViewerImage::addTextureStats(), LLViewerImage::BOOST_HUD, LLViewerImage::BOOST_SCULPTED, FALSE, fsqrtf, LLViewerImage::getDecodePriority(), LLViewerImageList::getImage(), LLSingleton< LLViewerCamera >::getInstance(), LLViewerObject::getParameterEntry(), LLFace::getPixelArea(), LLFace::getPoolType(), LLViewerCamera::getScreenPixelArea(), LLVolume::getSculptLevel(), LLSculptParams::getSculptTexture(), LLFace::getTexture(), LLFace::getTextureEntry(), getTextureVirtualSize(), LLFace::getVirtualSize(), LLPrimitive::getVolume(), gImageList, gPipeline, LLPipeline::hasRenderDebugMask(), LLPipeline::hasRenderType(), i, isHUDAttachment(), LLPointer< Type >::isNull(), isSculpted(), llformat(), llmax(), LLPipeline::markRebuild(), LLViewerObject::mDrawable, LLFace::mExtents, MIN_ALPHA_SIZE, MIN_TEX_ANIM_SIZE, LLViewerObject::mPixelArea, mSculptChanged, mSculptTexture, LLFace::mTextureMatrix, mTextureUpdateTimer, LLPointer< Type >::notNull(), NULL, LLNetworkData::PARAMS_SCULPT, LLDrawPool::POOL_ALPHA, LLDrawable::REBUILD_COLOR, LLDrawable::REBUILD_TCOORD, LLDrawable::REBUILD_VOLUME, LLPipeline::RENDER_DEBUG_FACE_AREA, LLPipeline::RENDER_DEBUG_TEXTURE_AREA, LLPipeline::RENDER_DEBUG_TEXTURE_PRIORITY, LLPipeline::RENDER_TYPE_SIMPLE, LLFrameTimer::reset(), S32, SCULPT_REZ, LLViewerImage::sDontLoadVolumeTextures, LLViewerImage::setBoostLevel(), LLViewerObject::setDebugText(), LLFace::setPixelArea(), LLFace::setVirtualSize(), LLPipeline::sFastAlpha, and TRUE.
Referenced by calcLOD(), and updateTextures().
void LLVOVolume::updateFaceFlags | ( | ) |
Definition at line 899 of file llvovolume.cpp.
References LLFace::clearState(), LLFace::FULLBRIGHT, LLTextureEntry::getFullbright(), LLVolume::getNumFaces(), LLPrimitive::getTE(), LLPrimitive::getVolume(), LLFace::HUD_RENDER, i, isHUDAttachment(), LLFace::LIGHT, LL_MCODE_LIGHT, LLViewerObject::mDrawable, LLPrimitive::mMaterial, S32, and LLFace::setState().
Referenced by regenFaces(), and updateGeometry().
void LLVOVolume::regenFaces | ( | ) |
Definition at line 936 of file llvovolume.cpp.
References addFace(), deleteFaces(), LLPrimitive::getNumTEs(), LLViewerObject::getTEImage(), i, LLViewerObject::mDrawable, LLViewerObject::mNumFaces, S32, LLFace::setTEOffset(), LLFace::setTexture(), LLFace::setViewerObject(), and updateFaceFlags().
Referenced by LLVolumeImplFlexible::doUpdateGeometry(), and updateGeometry().
Definition at line 962 of file llvovolume.cpp.
References LLFace::genVolumeBBoxes(), LLVolume::getNumFaces(), LLPrimitive::getVolume(), i, LLVolumeInterface::isVolumeGlobal(), LLViewerObject::mDrawable, LLFace::mExtents, mRelativeXform, mRelativeXformInvTrans, LLVector3::mV, mVolumeImpl, LLDrawable::REBUILD_POSITION, LLDrawable::REBUILD_VOLUME, S32, TRUE, and updateRadius().
Referenced by LLVolumeImplFlexible::doUpdateGeometry(), and updateGeometry().
void LLVOVolume::preRebuild | ( | ) |
Definition at line 1013 of file llvovolume.cpp.
References mVolumeImpl, NULL, and LLVolumeInterface::preRebuild().
Referenced by LLVolumeGeometryManager::rebuildGeom().
F32 LLVOVolume::getBinRadius | ( | ) | [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1798 of file llvovolume.cpp.
References FALSE, LLFace::getPoolType(), LLXform::getScale(), LLFace::getVirtualSize(), i, isHUDAttachment(), llclamp(), llmin(), LLViewerObject::mDrawable, MIN_ALPHA_SIZE, LLVector3::mV, LLDrawPool::POOL_ALPHA, S32, LLPipeline::sFastAlpha, and TRUE.
U32 LLVOVolume::getPartitionType | ( | ) | const [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1936 of file llvovolume.cpp.
References isHUDAttachment(), LLViewerRegion::PARTITION_HUD, and LLViewerRegion::PARTITION_VOLUME.
void LLVOVolume::setIsLight | ( | BOOL | is_light | ) |
Definition at line 1390 of file llvovolume.cpp.
References FALSE, getIsLight(), gPipeline, LLViewerObject::mDrawable, LLNetworkData::PARAMS_LIGHT, LLPipeline::setLight(), LLViewerObject::setParameterEntryInUse(), and TRUE.
Referenced by LLPanelVolume::sendIsLight().
void LLVOVolume::setLightColor | ( | const LLColor3 & | color | ) |
Definition at line 1416 of file llvovolume.cpp.
References LLLightParams::getColor(), LLViewerObject::getParameterEntry(), gPipeline, LLPipeline::markTextured(), LLViewerObject::mDrawable, mFaceMappingChanged, LLColor4::mV, parameterChanged(), LLNetworkData::PARAMS_LIGHT, LLLightParams::setColor(), and TRUE.
Referenced by LLPanelVolume::onCommitLight(), and LLPanelVolume::onLightSelectColor().
void LLVOVolume::setLightIntensity | ( | F32 | intensity | ) |
Definition at line 1431 of file llvovolume.cpp.
References LLLightParams::getColor(), LLViewerObject::getParameterEntry(), LLColor4::mV, parameterChanged(), LLNetworkData::PARAMS_LIGHT, and LLLightParams::setColor().
Referenced by LLPanelVolume::onCommitLight().
void LLVOVolume::setLightRadius | ( | F32 | radius | ) |
Definition at line 1444 of file llvovolume.cpp.
References LLViewerObject::getParameterEntry(), LLLightParams::getRadius(), parameterChanged(), LLNetworkData::PARAMS_LIGHT, and LLLightParams::setRadius().
Referenced by LLPanelVolume::onCommitLight().
void LLVOVolume::setLightFalloff | ( | F32 | falloff | ) |
Definition at line 1457 of file llvovolume.cpp.
References LLLightParams::getFalloff(), LLViewerObject::getParameterEntry(), parameterChanged(), LLNetworkData::PARAMS_LIGHT, and LLLightParams::setFalloff().
Referenced by LLPanelVolume::onCommitLight().
void LLVOVolume::setLightCutoff | ( | F32 | cutoff | ) |
Definition at line 1470 of file llvovolume.cpp.
References LLLightParams::getCutoff(), LLViewerObject::getParameterEntry(), parameterChanged(), LLNetworkData::PARAMS_LIGHT, and LLLightParams::setCutoff().
BOOL LLVOVolume::getIsLight | ( | ) | const |
Definition at line 1485 of file llvovolume.cpp.
References LLViewerObject::getParameterEntryInUse(), and LLNetworkData::PARAMS_LIGHT.
Referenced by createDrawable(), LLPanelVolume::getState(), parameterChanged(), and setIsLight().
LLColor3 LLVOVolume::getLightBaseColor | ( | ) | const |
Definition at line 1490 of file llvovolume.cpp.
References LLLightParams::getColor(), LLViewerObject::getParameterEntry(), and LLNetworkData::PARAMS_LIGHT.
Referenced by LLPanelVolume::getState().
LLColor3 LLVOVolume::getLightColor | ( | ) | const |
Definition at line 1503 of file llvovolume.cpp.
References LLLightParams::getColor(), LLViewerObject::getParameterEntry(), LLColor4::mV, and LLNetworkData::PARAMS_LIGHT.
Referenced by LLPanelVolume::getState(), LLViewerWindow::renderSelections(), and LLPipeline::setupHWLights().
F32 LLVOVolume::getLightIntensity | ( | ) | const |
Definition at line 1516 of file llvovolume.cpp.
References LLLightParams::getColor(), LLViewerObject::getParameterEntry(), LLColor4::mV, and LLNetworkData::PARAMS_LIGHT.
Referenced by calc_light_dist(), and LLPanelVolume::getState().
F32 LLVOVolume::getLightRadius | ( | ) | const |
Definition at line 1529 of file llvovolume.cpp.
References LLViewerObject::getParameterEntry(), LLLightParams::getRadius(), and LLNetworkData::PARAMS_LIGHT.
Referenced by calc_light_dist(), LLPanelVolume::getState(), LLDrawable::getVisibilityRadius(), renderLights(), LLViewerWindow::renderSelections(), and LLPipeline::setupHWLights().
F32 LLVOVolume::getLightFalloff | ( | ) | const |
Definition at line 1542 of file llvovolume.cpp.
References LLLightParams::getFalloff(), LLViewerObject::getParameterEntry(), and LLNetworkData::PARAMS_LIGHT.
Referenced by LLPanelVolume::getState(), and LLPipeline::setupHWLights().
F32 LLVOVolume::getLightCutoff | ( | ) | const |
Definition at line 1555 of file llvovolume.cpp.
References LLLightParams::getCutoff(), LLViewerObject::getParameterEntry(), and LLNetworkData::PARAMS_LIGHT.
U32 LLVOVolume::getVolumeInterfaceID | ( | ) | const |
Definition at line 1568 of file llvovolume.cpp.
References LLVolumeInterface::getID(), and mVolumeImpl.
Referenced by LLVolumeImplFlexible::doIdleUpdate().
BOOL LLVOVolume::isFlexible | ( | ) | const [virtual] |
Reimplemented from LLViewerObject.
Definition at line 1578 of file llvovolume.cpp.
References FALSE, LLProfileParams::getCurveType(), LLPathParams::getCurveType(), LLViewerObject::getParameterEntryInUse(), LLVolume::getParams(), LLVolumeParams::getPathParams(), LLVolumeParams::getProfileParams(), LLPrimitive::getVolume(), LL_PCODE_PATH_FLEXIBLE, LLNetworkData::PARAMS_FLEXIBLE, LLVolumeParams::setType(), and TRUE.
Referenced by calc_shame(), LLPanelVolume::getState(), LLPanelObject::getState(), LLPanelObject::getVolumeParams(), and setIsFlexible().
BOOL LLVOVolume::isSculpted | ( | ) | const [virtual] |
Definition at line 1597 of file llvovolume.cpp.
References FALSE, LLViewerObject::getParameterEntryInUse(), LLNetworkData::PARAMS_SCULPT, and TRUE.
Referenced by calc_shame(), processUpdateMessage(), setVolume(), and updateTextures().
BOOL LLVOVolume::isVolumeGlobal | ( | ) | const |
Definition at line 1607 of file llvovolume.cpp.
References FALSE, LLVolumeInterface::isVolumeGlobal(), mVolumeImpl, and TRUE.
Referenced by agentPositionToVolume(), and generateSilhouette().
BOOL LLVOVolume::canBeFlexible | ( | ) | const |
Definition at line 1616 of file llvovolume.cpp.
References LLPathParams::getCurveType(), LLVolume::getParams(), LLVolumeParams::getPathParams(), LLPrimitive::getVolume(), LL_PCODE_PATH_FLEXIBLE, and LL_PCODE_PATH_LINE.
Referenced by LLPanelVolume::getState().
Definition at line 1622 of file llvovolume.cpp.
References FALSE, FLAGS_PHANTOM, FLAGS_USE_PHYSICS, LLProfileParams::getCurveType(), LLVolume::getParams(), LLVolumeParams::getProfileParams(), LLPrimitive::getVolume(), isFlexible(), LL_PCODE_PATH_FLEXIBLE, LL_PCODE_PATH_LINE, markForUpdate(), LLViewerObject::mDrawable, LLNetworkData::PARAMS_FLEXIBLE, LLViewerObject::setFlags(), LLViewerObject::setParameterEntryInUse(), LLVolumeParams::setType(), setVolume(), and TRUE.
Referenced by LLPanelVolume::sendIsFlexible().
Definition at line 793 of file llvovolume.cpp.
References LLVolumeLODGroup::getDetailFromTan(), llclamp(), llround(), S32, LLPipeline::sDynamicLOD, sLODFactor, and sqrtf.
Referenced by calcLOD().
BOOL LLVOVolume::calcLOD | ( | ) | [protected] |
Definition at line 809 of file llvovolume.cpp.
References computeLODDetail(), FALSE, LLXform::getScale(), LLPrimitive::getVolume(), LLPointer< Type >::isNull(), llround(), LLVector3::magVec(), LLViewerObject::mAppAngle, LLViewerObject::mDrawable, mLOD, LLVolume::mLODScaleBias, RAD_TO_DEG, S32, LLVector3::scaledVec(), sDistanceFactor, sLODFactor, TRUE, and updateTextures().
Referenced by updateLOD().
Definition at line 622 of file llvovolume.cpp.
References LLPrimitive::getTE(), LLViewerObject::getTEImage(), and LLViewerObject::mDrawable.
Referenced by createDrawable(), and regenFaces().
void LLVOVolume::updateTEData | ( | ) | [protected] |
Definition at line 1379 of file llvovolume.cpp.
References gPipeline, LLPipeline::markRebuild(), LLViewerObject::mDrawable, mFaceMappingChanged, LLPointer< Type >::notNull(), LLDrawable::REBUILD_MATERIAL, and TRUE.
Referenced by processUpdateMessage().
friend class LLDrawable [friend] |
Definition at line 211 of file llvovolume.h.
friend class LLVolumeImplFlexible [friend] |
Definition at line 208 of file llvovolume.h.
Referenced by animateTextures(), idleUpdate(), isActive(), LLVOVolume(), processUpdateMessage(), LLVolumeGeometryManager::rebuildGeom(), and ~LLVOVolume().
Definition at line 209 of file llvovolume.h.
Referenced by animateTextures(), LLFace::getGeometryVolume(), LLVOVolume(), processUpdateMessage(), and LLVolumeGeometryManager::rebuildGeom().
BOOL LLVOVolume::mFaceMappingChanged [private] |
Definition at line 213 of file llvovolume.h.
Referenced by animateTextures(), LLVolumeImplFlexible::doUpdateGeometry(), processUpdateMessage(), setLightColor(), setTEBumpmap(), setTEColor(), setTEFullbright(), setTEGlow(), setTEImage(), setTEMediaFlags(), setTEScale(), setTEScaleS(), setTEScaleT(), setTEShiny(), setTETexGen(), setTETexture(), setVolume(), updateGeometry(), and updateTEData().
LLFrameTimer LLVOVolume::mTextureUpdateTimer [private] |
S32 LLVOVolume::mLOD [private] |
Definition at line 215 of file llvovolume.h.
Referenced by calcLOD(), getLOD(), LLVOVolume(), and setVolume().
BOOL LLVOVolume::mLODChanged [private] |
Definition at line 216 of file llvovolume.h.
Referenced by LLVolumeImplFlexible::doUpdateGeometry(), LLVOVolume(), updateGeometry(), and updateLOD().
BOOL LLVOVolume::mSculptChanged [private] |
Definition at line 217 of file llvovolume.h.
Referenced by LLVOVolume(), setVolume(), updateGeometry(), and updateTextures().
LLMatrix4 LLVOVolume::mRelativeXform [private] |
Definition at line 218 of file llvovolume.h.
Referenced by genBBoxes(), generateSilhouette(), getRelativeXform(), LLVOVolume(), updateRelativeXform(), and LLVolumeImplFlexible::updateRelativeXform().
LLMatrix3 LLVOVolume::mRelativeXformInvTrans [private] |
Definition at line 219 of file llvovolume.h.
Referenced by genBBoxes(), generateSilhouette(), getRelativeXformInvTrans(), LLVOVolume(), updateRelativeXform(), and LLVolumeImplFlexible::updateRelativeXform().
BOOL LLVOVolume::mVolumeChanged [private] |
Definition at line 220 of file llvovolume.h.
Referenced by LLVolumeImplFlexible::doUpdateGeometry(), getVolumeChanged(), markForUpdate(), and updateGeometry().
F32 LLVOVolume::mVObjRadius [private] |
Definition at line 221 of file llvovolume.h.
Referenced by getRadius(), LLVOVolume(), and updateRadius().
LLVolumeInterface* LLVOVolume::mVolumeImpl [private] |
Definition at line 222 of file llvovolume.h.
Referenced by genBBoxes(), getPivotPositionAgent(), getVolumeInterfaceID(), getWorldMatrix(), idleUpdate(), isActive(), isVolumeGlobal(), onShift(), parameterChanged(), preRebuild(), setScale(), setVolume(), updateGeometry(), updateRelativeXform(), and ~LLVOVolume().
LLPointer<LLViewerImage> LLVOVolume::mSculptTexture [private] |
Definition at line 223 of file llvovolume.h.
Referenced by sculpt(), setVolume(), and updateTextures().
F32 LLVOVolume::sLODSlopDistanceFactor = 0.5f [static] |
Definition at line 227 of file llvovolume.h.
F32 LLVOVolume::sLODFactor = 1.f [static] |
Definition at line 228 of file llvovolume.h.
Referenced by calcLOD(), computeLODDetail(), handleVolumeLODChanged(), and settings_to_globals().
F32 LLVOVolume::sDistanceFactor = 1.0f [static] |
Definition at line 229 of file llvovolume.h.
Referenced by calcLOD(), handleVolumeLODChanged(), and settings_to_globals().
S32 LLVOVolume::sNumLODChanges = 0 [static, protected] |