#include <lldrawable.h>
Definition at line 68 of file lldrawable.h.
typedef std::set<LLPointer<LLDrawable> > LLDrawable::drawable_set_t |
Definition at line 210 of file lldrawable.h.
typedef std::vector<LLPointer<LLDrawable> > LLDrawable::drawable_vector_t |
Definition at line 211 of file lldrawable.h.
typedef std::list<LLPointer<LLDrawable> > LLDrawable::drawable_list_t |
Definition at line 212 of file lldrawable.h.
typedef std::queue<LLPointer<LLDrawable> > LLDrawable::drawable_queue_t |
Definition at line 213 of file lldrawable.h.
typedef enum LLDrawable::e_drawable_flags LLDrawable::EDrawableFlags |
typedef std::vector<LLFace*> LLDrawable::face_list_t [private] |
Definition at line 289 of file lldrawable.h.
Definition at line 240 of file lldrawable.h.
LLDrawable::LLDrawable | ( | ) | [inline] |
Definition at line 73 of file lldrawable.h.
References init().
LLDrawable::~LLDrawable | ( | ) | [inline, protected] |
Definition at line 199 of file lldrawable.h.
References destroy().
void LLDrawable::initClass | ( | ) | [static] |
Definition at line 113 of file lldrawable.cpp.
Referenced by idle_startup().
LLDrawable::MEM_TYPE_NEW | ( | LLMemType::MTYPE_DRAWABLE | ) |
void LLDrawable::markDead | ( | ) |
Definition at line 135 of file lldrawable.cpp.
References cleanupReferences(), DEAD, isDead(), llendl, llwarns, mSpatialBridge, NULL, setState(), and sNumZombieDrawables.
Referenced by LLSpatialBridge::updateDistance().
BOOL LLDrawable::isDead | ( | ) | const [inline] |
Definition at line 77 of file lldrawable.h.
References DEAD, and isState().
Referenced by LLGeometryManager::addGeometryCount(), LLParticlePartition::addGeometryCount(), destroy(), getVisibilityRadius(), getVOVolume(), isLight(), markDead(), LLPipeline::markMoved(), LLPipeline::markRebuild(), LLPipeline::markShift(), LLPipeline::markTextured(), LLPipeline::markVisible(), LLOctreeSelect::processGroup(), LLVolumeGeometryManager::rebuildGeom(), LLPipeline::renderDebug(), LLPipeline::renderForSelect(), LLDrawPoolTerrain::renderForSelect(), LLPipeline::renderHighlights(), LLDrawPoolTree::renderTree(), LLPipeline::resetVertexBuffers(), LLPipeline::shiftObjects(), shiftPos(), LLPipeline::stateSort(), LLPipeline::updateGeom(), LLPipeline::updateMove(), updateMove(), LLPipeline::updateMovedList(), and updateTexture().
BOOL LLDrawable::isNew | ( | ) | const [inline] |
Definition at line 78 of file lldrawable.h.
References BUILT, and isState().
BOOL LLDrawable::isLight | ( | ) | const |
Definition at line 170 of file lldrawable.cpp.
References FALSE, LLPrimitive::getPCode(), isDead(), LL_PCODE_VOLUME, and mVObjp.
Referenced by getVisibilityRadius(), renderLights(), and LLViewerWindow::renderSelections().
BOOL LLDrawable::isVisible | ( | ) | const |
Definition at line 930 of file lldrawable.cpp.
References FALSE, getParent(), getSpatialGroup(), isActive(), isRoot(), isVisible(), LLSpatialGroup::isVisible(), mSpatialBridge, mVisible, LLPointer< Type >::notNull(), sCurVisible, and TRUE.
Referenced by LLSelectMgr::dump(), isVisible(), LLDrawable::CompareDistanceGreaterVisibleFirst::operator()(), and LLPipeline::stateSort().
void LLDrawable::setVisible | ( | LLCamera & | camera_in, | |
std::vector< LLDrawable * > * | results = NULL , |
|||
BOOL | for_select = FALSE | |||
) | [virtual] |
Reimplemented in LLSpatialBridge.
Definition at line 1094 of file lldrawable.cpp.
References getVOVolume(), isActive(), isRoot(), isStatic(), llendl, llerrs, mParent, mSpatialBridge, mVisible, LLPointer< Type >::notNull(), and sCurVisible.
Referenced by LLPipeline::markVisible(), LLOctreeSelect::processGroup(), LLSpatialBridge::setVisible(), and LLPipeline::stateSort().
LLViewerRegion* LLDrawable::getRegion | ( | ) | const [inline] |
Definition at line 86 of file lldrawable.h.
References mVObjp.
Referenced by LLSpatialBridge::LLSpatialBridge(), LLVolumeGeometryManager::registerFace(), renderOctree(), and LLSpatialBridge::updateMove().
const LLTextureEntry* LLDrawable::getTextureEntry | ( | U8 | which | ) | const [inline] |
LLPointer<LLViewerObject>& LLDrawable::getVObj | ( | ) | [inline] |
Definition at line 88 of file lldrawable.h.
References mVObjp.
Referenced by LLParticlePartition::addGeometryCount(), LLOctreePick::check(), LLDrawPoolAvatar::getDebugTexture(), LLToolSelectRect::handleRectangleSelection(), isAnimating(), LLPipeline::markRebuild(), LLPipeline::markShift(), LLPipeline::pickObject(), LLDrawPoolAvatar::renderAvatars(), renderBoundingBox(), LLDrawPoolTerrain::renderForSelect(), LLDrawPoolAvatar::renderForSelect(), LLDrawPoolTerrain::renderOwnership(), renderParticleBeacons(), renderPhysicalBeacons(), renderScriptedBeacons(), renderScriptedTouchBeacons(), renderSoundHighlights(), LLDrawPoolTree::renderTree(), LLSpatialBridge::setVisible(), LLPipeline::stateSort(), and LLOctreeDirty::visit().
const LLViewerObject* LLDrawable::getVObj | ( | ) | const [inline] |
LLVOVolume * LLDrawable::getVOVolume | ( | ) | const |
Definition at line 157 of file lldrawable.cpp.
References LLPrimitive::getPCode(), isDead(), LL_PCODE_VOLUME, mVObjp, and NULL.
Referenced by LLPipeline::calcNearbyLights(), getPositionAgent(), getSpatialPartition(), getVisibilityRadius(), LLManip::rebuild(), LLVolumeGeometryManager::rebuildGeom(), renderBoundingBox(), renderLights(), LLViewerWindow::renderSelections(), LLPipeline::setupHWLights(), setVisible(), LLVOAvatar::shame(), shiftPos(), updateDistance(), updatePartition(), updateTexture(), updateXform(), and LLOctreeRenderNonOccluded::visit().
const LLMatrix4& LLDrawable::getWorldMatrix | ( | ) | const [inline] |
Definition at line 92 of file lldrawable.h.
References LLXformMatrix::getWorldMatrix(), and mXform.
Referenced by getRenderMatrix().
const LLMatrix4& LLDrawable::getRenderMatrix | ( | ) | const [inline] |
Definition at line 93 of file lldrawable.h.
References getParent(), getWorldMatrix(), and isRoot().
Referenced by getPositionAgent(), LLVolumeGeometryManager::registerFace(), and LLPipeline::renderDebug().
void LLDrawable::setPosition | ( | LLVector3 | v | ) | const [inline] |
Definition at line 94 of file lldrawable.h.
const LLVector3& LLDrawable::getPosition | ( | void | ) | const [inline] |
Definition at line 95 of file lldrawable.h.
References LLXform::getPosition(), and mXform.
const LLVector3& LLDrawable::getWorldPosition | ( | ) | const [inline] |
Definition at line 96 of file lldrawable.h.
References LLXform::getPositionW(), and mXform.
Referenced by getPositionAgent(), and LLToolSelectRect::handleRectangleSelection().
const LLVector3 LLDrawable::getPositionAgent | ( | ) | const |
Definition at line 1295 of file lldrawable.cpp.
References getRenderMatrix(), getVOVolume(), getWorldPosition(), isActive(), isRoot(), and mVObjp.
Referenced by LLToolSelectRect::handleRectangleSelection(), LLFace::init(), LLViewerWindow::renderSelections(), and LLVOSky::updateGeometry().
const LLVector3d& LLDrawable::getPositionGroup | ( | ) | const [inline] |
Definition at line 98 of file lldrawable.h.
References mPositionGroup.
Referenced by renderPoints(), updateDistance(), and LLSpatialGroup::updateInGroup().
const LLVector3& LLDrawable::getScale | ( | ) | const [inline] |
Definition at line 99 of file lldrawable.h.
References mCurrentScale.
Referenced by isAnimating().
const LLQuaternion& LLDrawable::getWorldRotation | ( | ) | const [inline] |
Definition at line 100 of file lldrawable.h.
References LLXform::getWorldRotation(), and mXform.
const LLQuaternion& LLDrawable::getRotation | ( | ) | const [inline] |
Definition at line 101 of file lldrawable.h.
References LLXform::getRotation(), and mXform.
F32 LLDrawable::getIntensity | ( | ) | const [inline] |
Definition at line 102 of file lldrawable.h.
References LLXform::getScale(), llmin(), LLVector3::mV, and mXform.
S32 LLDrawable::getLOD | ( | ) | const [inline] |
F64 LLDrawable::getBinRadius | ( | ) | const [inline] |
Definition at line 104 of file lldrawable.h.
References mBinRadius.
Referenced by LLSpatialGroup::updateInGroup().
Definition at line 105 of file lldrawable.h.
References LLXformMatrix::getMinMax(), and mXform.
LLXformMatrix* LLDrawable::getXform | ( | ) | [inline] |
Definition at line 106 of file lldrawable.h.
References mXform.
Referenced by LLSpatialBridge::transformCamera(), and LLSpatialBridge::updateSpatialExtents().
U32 LLDrawable::getState | ( | ) | const [inline] |
Definition at line 109 of file lldrawable.h.
References mState.
Referenced by addFace(), LLAgent::calcFocusPositionTargetGlobal(), LLPipeline::calcNearbyLights(), LLSelectMgr::dump(), getLit(), isActive(), isDead(), isNew(), makeActive(), makeStatic(), LLPipeline::markMoved(), LLPipeline::markRebuild(), LLPipeline::markShift(), LLVolumeGeometryManager::rebuildGeom(), LLPipeline::renderDebug(), LLPipeline::setupHWLights(), LLPipeline::stateSort(), LLPipeline::updateGeom(), updateMove(), updateMoveDamped(), LLPipeline::updateMoveDampedAsync(), LLPipeline::updateMovedList(), LLPipeline::updateMoveNormalAsync(), and updateMoveUndamped().
void LLDrawable::setState | ( | U32 | bits | ) | [inline] |
Definition at line 110 of file lldrawable.h.
References mState.
Referenced by LLPipeline::allocDrawable(), makeActive(), markDead(), LLPipeline::markMoved(), LLPipeline::markRebuild(), LLPipeline::markShift(), LLManip::rebuild(), LLPipeline::setLight(), setLit(), LLViewerJointAttachment::setupDrawable(), LLPipeline::updateDrawableGeom(), LLVOVolume::updateGeometry(), LLPipeline::updateMoveDampedAsync(), and LLPipeline::updateMoveNormalAsync().
void LLDrawable::clearState | ( | U32 | bits | ) | [inline] |
Definition at line 111 of file lldrawable.h.
References mState.
Referenced by LLPipeline::calcNearbyLights(), LLVolumeImplFlexible::doUpdateGeometry(), makeStatic(), LLPipeline::markMoved(), LLVolumeGeometryManager::rebuildGeom(), LLPipeline::setLight(), setLit(), LLPipeline::shiftObjects(), LLPipeline::stateSort(), LLPipeline::updateGeom(), LLPipeline::updateMoveDampedAsync(), and LLPipeline::updateMovedList().
BOOL LLDrawable::isAvatar | ( | ) | const [inline] |
Definition at line 113 of file lldrawable.h.
References mVObjp, and LLPointer< Type >::notNull().
Referenced by shiftPos(), LLPipeline::stateSort(), LLSpatialBridge::updateDistance(), and updateXform().
BOOL LLDrawable::isRoot | ( | ) | const [inline] |
Definition at line 114 of file lldrawable.h.
References mParent.
Referenced by getPositionAgent(), getRenderMatrix(), getSpatialPartition(), isAnimating(), isVisible(), makeActive(), renderBoundingBox(), setVisible(), LLPipeline::updateGeom(), LLPipeline::updateMove(), updateTexture(), and updateXform().
BOOL LLDrawable::isSpatialRoot | ( | ) | const [inline] |
Definition at line 115 of file lldrawable.h.
References mParent.
Referenced by LLVOVolume::updateRelativeXform().
virtual BOOL LLDrawable::isSpatialBridge | ( | ) | const [inline, virtual] |
Reimplemented in LLSpatialBridge.
Definition at line 116 of file lldrawable.h.
References FALSE.
Referenced by LLSpatialGroup::addObject(), LLPipeline::markMoved(), LLPipeline::markVisible(), LLOctreeSelect::processGroup(), LLSpatialGroup::removeObject(), and renderBoundingBox().
virtual LLSpatialPartition* LLDrawable::asPartition | ( | ) | [inline, virtual] |
LLDrawable* LLDrawable::getParent | ( | ) | const [inline] |
Definition at line 118 of file lldrawable.h.
References mParent.
Referenced by getRenderMatrix(), getSpatialPartition(), isVisible(), makeActive(), makeStatic(), LLPipeline::markMoved(), LLPipeline::markShift(), LLSpatialBridge::setVisible(), LLPipeline::updateGeom(), LLPipeline::updateMove(), and updateTexture().
LLDrawable* LLDrawable::getChild | ( | U32 | index | ) | [inline] |
Definition at line 119 of file lldrawable.h.
References mVObjp.
Referenced by LLSpatialBridge::cleanupReferences(), makeActive(), LLPipeline::renderForSelect(), LLSpatialBridge::setVisible(), and LLSpatialBridge::updateDistance().
U32 LLDrawable::getChildCount | ( | ) | [inline] |
Definition at line 120 of file lldrawable.h.
References mVObjp.
Referenced by LLSpatialBridge::cleanupReferences(), makeActive(), LLPipeline::renderForSelect(), LLSpatialBridge::setVisible(), and LLSpatialBridge::updateDistance().
Definition at line 314 of file lldrawable.h.
References llassert, and mFaces.
Referenced by LLGeometryManager::addGeometryCount(), LLParticlePartition::addGeometryCount(), LLSpatialGroup::destroyGL(), LLVOClouds::getGeometry(), moveUpdatePipeline(), LLVolumeGeometryManager::rebuildGeom(), LLViewerObjectList::removeDrawable(), renderBoundingBox(), LLPipeline::renderForSelect(), renderLights(), LLViewerObjectList::renderObjectsForSelect(), renderOctree(), renderParticleBeacons(), renderPhysicalBeacons(), renderPoints(), renderScriptedBeacons(), renderScriptedTouchBeacons(), renderSoundHighlights(), renderTexturePriority(), LLPipeline::resetVertexBuffers(), LLViewerJointAttachment::setupDrawable(), shiftPos(), updateDistance(), LLVOWater::updateGeometry(), LLVOTree::updateGeometry(), LLVOTextBubble::updateGeometry(), LLVOPartGroup::updateGeometry(), LLVOGround::updateGeometry(), and LLVOClouds::updateGeometry().
S32 LLDrawable::getNumFaces | ( | ) | const [inline] |
Definition at line 322 of file lldrawable.h.
Referenced by LLGeometryManager::addGeometryCount(), LLParticlePartition::addGeometryCount(), LLSpatialGroup::destroyGL(), moveUpdatePipeline(), LLVolumeGeometryManager::rebuildGeom(), LLViewerObjectList::removeDrawable(), renderBoundingBox(), LLPipeline::renderForSelect(), renderLights(), LLViewerObjectList::renderObjectsForSelect(), renderOctree(), renderParticleBeacons(), renderPhysicalBeacons(), renderPoints(), renderScriptedBeacons(), renderScriptedTouchBeacons(), renderSoundHighlights(), renderTexturePriority(), LLPipeline::resetVertexBuffers(), LLViewerJointAttachment::setupDrawable(), shiftPos(), LLPipeline::stateSort(), updateDistance(), LLVOWater::updateGeometry(), LLVOTextBubble::updateGeometry(), LLVOPartGroup::updateGeometry(), LLVOGround::updateGeometry(), LLVOClouds::updateGeometry(), and updateTexture().
LLFace * LLDrawable::addFace | ( | LLFacePool * | poolp, | |
LLViewerImage * | texturep | |||
) |
Definition at line 226 of file lldrawable.cpp.
References LLFace::FULLBRIGHT, isState(), llendl, llerrs, mFaces, LLMemType::MTYPE_DRAWABLE, mVObjp, LLFace::setPool(), LLFace::setState(), and UNLIT.
Referenced by setNumFaces(), setNumFacesFast(), LLVOWater::updateGeometry(), LLVOSky::updateGeometry(), and LLVOGround::updateGeometry().
LLFace * LLDrawable::addFace | ( | const LLTextureEntry * | te, | |
LLViewerImage * | texturep | |||
) |
Definition at line 250 of file lldrawable.cpp.
References LLFace::FULLBRIGHT, LLPipeline::getPoolTypeFromTE(), gPipeline, isState(), mFaces, LLMemType::MTYPE_DRAWABLE, mVObjp, LLFace::setPoolType(), LLFace::setState(), LLFace::setTEOffset(), LLFace::setTexture(), and UNLIT.
void LLDrawable::setNumFaces | ( | const S32 | numFaces, | |
LLFacePool * | poolp, | |||
LLViewerImage * | texturep | |||
) |
Definition at line 272 of file lldrawable.cpp.
References addFace(), i, mFaces, and S32.
Referenced by LLVOTextBubble::updateGeometry(), and LLVOPartGroup::updateGeometry().
void LLDrawable::setNumFacesFast | ( | const S32 | numFaces, | |
LLFacePool * | poolp, | |||
LLViewerImage * | texturep | |||
) |
Definition at line 293 of file lldrawable.cpp.
References addFace(), i, mFaces, and S32.
Referenced by LLVOPartGroup::updateGeometry(), and LLVOClouds::updateGeometry().
void LLDrawable::mergeFaces | ( | LLDrawable * | src | ) |
Definition at line 314 of file lldrawable.cpp.
References i, mFaces, and LLFace::setDrawable().
void LLDrawable::init | ( | void | ) |
Definition at line 90 of file lldrawable.cpp.
References mBinRadius, mCurrentScale, mDistanceWRTCamera, mGeneration, mParent, mQuietCount, mRadius, mRenderType, mSpatialBridge, mSpatialGroupp, mState, mVisible, mVObjp, and NULL.
Referenced by LLDrawable().
void LLDrawable::destroy | ( | ) |
Definition at line 118 of file lldrawable.cpp.
References isDead(), mFaces, and sNumZombieDrawables.
Referenced by ~LLDrawable().
void LLDrawable::update | ( | ) |
Definition at line 453 of file lldrawable.cpp.
References dist_vec_squared(), dot(), FALSE, LLCriticalDamp::getInterpolant(), LLXform::getPosition(), LLXform::getRotation(), getVOVolume(), gPipeline, isAvatar(), isRoot(), LLXform::isRoot(), lerp(), llclamp(), LLPipeline::markMoved(), LLPipeline::markRebuild(), MAX_INTERPOLATE_DISTANCE_SQUARED, mCurrentScale, mDistanceWRTCamera, MIN_INTERPOLATE_DISTANCE_SQUARED, movePartition(), mSpatialBridge, mVObjp, mXform, nlerp(), OBJECT_DAMPING_TIME_CONSTANT, REBUILD_POSITION, LLXform::setPosition(), LLXform::setRotation(), LLXform::setScale(), TRUE, and LLXformMatrix::updateMatrix().
Referenced by LLPipeline::allocDrawable(), updateMoveDamped(), and updateMoveUndamped().
void LLDrawable::makeActive | ( | ) | [virtual] |
Reimplemented in LLSpatialBridge.
Definition at line 346 of file lldrawable.cpp.
References ACTIVE, getChild(), getChildCount(), getParent(), gPipeline, i, isRoot(), isState(), LL_PCODE_VOLUME, LLViewerObject::LL_VO_CLOUDS, LLViewerObject::LL_VO_GROUND, LLViewerObject::LL_VO_PART_GROUP, LLViewerObject::LL_VO_SKY, LLViewerObject::LL_VO_SURFACE_PATCH, LLViewerObject::LL_VO_WATER, llendl, llerrs, makeActive(), LLPipeline::markRebuild(), mParent, mQuietCount, mVObjp, LLPointer< Type >::notNull(), REBUILD_VOLUME, LLPipeline::setActive(), setState(), TRUE, and updatePartition().
Referenced by makeActive(), moveUpdatePipeline(), LLVOVolume::setDrawableParent(), LLViewerJointAttachment::setupDrawable(), and updateMove().
void LLDrawable::makeStatic | ( | BOOL | warning_enabled = TRUE |
) |
Definition at line 412 of file lldrawable.cpp.
References ACTIVE, clearState(), FALSE, getParent(), gPipeline, isState(), LL_ENDL, LL_PCODE_VOLUME, LL_WARNS_ONCE, llendl, llwarns, makeStatic(), LLPipeline::markRebuild(), mParent, mSpatialBridge, mVObjp, LLPointer< Type >::notNull(), NULL, REBUILD_VOLUME, S32, LLPipeline::setActive(), setSpatialBridge(), TRUE, and updatePartition().
Referenced by LLViewerJointAttachment::addObject(), makeStatic(), and LLPipeline::updateMove().
BOOL LLDrawable::isActive | ( | void | ) | const [inline] |
Definition at line 145 of file lldrawable.h.
References ACTIVE, and isState().
Referenced by LLViewerJointAttachment::addObject(), LLViewerCamera::areVertsVisible(), LLAgent::calcFocusPositionTargetGlobal(), LLSelectMgr::getGrid(), getPositionAgent(), isStatic(), isVisible(), LLVolumeGeometryManager::registerFace(), LLSelectNode::renderOneSilhouette(), LLVOVolume::setDrawableParent(), LLViewerObject::setDrawableParent(), setVisible(), LLPipeline::stateSort(), LLPipeline::updateMove(), LLVOVolume::updateRelativeXform(), and updateTexture().
BOOL LLDrawable::isStatic | ( | ) | const [inline] |
Definition at line 146 of file lldrawable.h.
References isActive().
Referenced by getSpatialPartition(), setVisible(), shiftPos(), and updateDistance().
BOOL LLDrawable::isAnimating | ( | ) | const |
Definition at line 1319 of file lldrawable.cpp.
References FALSE, getScale(), getVObj(), isRoot(), LLViewerObject::LL_VO_CLOUDS, LLViewerObject::LL_VO_PART_GROUP, mVObjp, and TRUE.
Referenced by LLGeometryManager::addGeometryCount(), LLParticlePartition::addGeometryCount(), and LLVolumeGeometryManager::rebuildGeom().
BOOL LLDrawable::updateMove | ( | ) | [virtual] |
Reimplemented in LLSpatialBridge.
Definition at line 563 of file lldrawable.cpp.
References FALSE, isDead(), LLPointer< Type >::isNull(), isState(), llendl, llwarns, makeActive(), MOVE_UNDAMPED, mVObjp, TRUE, updateMoveDamped(), and updateMoveUndamped().
Referenced by LLManip::rebuild(), LLPipeline::updateMoveDampedAsync(), LLPipeline::updateMovedList(), and LLPipeline::updateMoveNormalAsync().
void LLDrawable::movePartition | ( | ) | [virtual] |
Definition at line 554 of file lldrawable.cpp.
References getSpatialGroup(), getSpatialPartition(), and LLSpatialPartition::move().
Referenced by LLVOPartGroup::updateGeometry(), LLVOClouds::updateGeometry(), updatePartition(), and updateXform().
void LLDrawable::updateTexture | ( | ) |
Definition at line 695 of file lldrawable.cpp.
References getNumFaces(), getParent(), getVOVolume(), gPipeline, isActive(), isDead(), isRoot(), llendl, llwarns, LLPipeline::markRebuild(), mQuietCount, LLMemType::MTYPE_DRAWABLE, mVObjp, REBUILD_MATERIAL, and TRUE.
Referenced by LLPipeline::updateMove().
void LLDrawable::updateMaterial | ( | ) |
Definition at line 342 of file lldrawable.cpp.
void LLDrawable::updateDistance | ( | LLCamera & | camera | ) | [virtual] |
Reimplemented in LLSpatialBridge.
Definition at line 649 of file lldrawable.cpp.
References LLCoordFrame::getAtAxis(), getFace(), getNumFaces(), LLCoordFrame::getOrigin(), LLViewerRegion::getOriginAgent(), LLFace::getPoolType(), getPositionGroup(), LLViewerObject::getRegion(), LLVOVolume::getRelativeXform(), LLMatrix4::getTranslation(), getVOVolume(), i, isStatic(), j, llround(), LLVector3::magVec(), LLFace::mCenterLocal, LLFace::mDistance, mDistanceWRTCamera, LLFace::mExtents, LLVector3::mV, mVObjp, LLDrawPool::POOL_ALPHA, S32, and LLVOVolume::updateRelativeXform().
Referenced by LLPipeline::stateSort(), and LLSpatialBridge::updateDistance().
Definition at line 732 of file lldrawable.cpp.
References llassert, mVObjp, and LLPointer< Type >::notNull().
Referenced by LLPipeline::updateDrawableGeom().
void LLDrawable::updateFaceSize | ( | S32 | idx | ) |
Definition at line 1349 of file lldrawable.cpp.
References mVObjp, and LLPointer< Type >::notNull().
Referenced by LLGeometryManager::addGeometryCount(), LLParticlePartition::addGeometryCount(), and LLVolumeGeometryManager::rebuildGeom().
void LLDrawable::updateSpecialHoverCursor | ( | BOOL | enabled | ) |
Definition at line 851 of file lldrawable.cpp.
void LLDrawable::shiftPos | ( | const LLVector3 & | shift_vector | ) | [virtual] |
Reimplemented in LLSpatialBridge, and LLHUDBridge.
Definition at line 739 of file lldrawable.cpp.
References getFace(), getNumFaces(), getVOVolume(), gPipeline, LLFace::hasGeometry(), i, isAvatar(), isDead(), isStatic(), llendl, llwarns, LLPipeline::markRebuild(), LLFace::mCenterAgent, mExtents, LLFace::mExtents, LLFace::mLastVertexBuffer, mParent, mPositionGroup, mSpatialBridge, LLFace::mVertexBuffer, mVObjp, mXform, NULL, REBUILD_ALL, S32, LLXform::setPosition(), LLXform::setRotation(), LLXform::setScale(), TRUE, and LLXformMatrix::updateMatrix().
Referenced by LLPipeline::shiftObjects().
S32 LLDrawable::getGeneration | ( | ) | const [inline] |
BOOL LLDrawable::getLit | ( | ) | const [inline] |
void LLDrawable::setLit | ( | BOOL | lit | ) | [inline] |
Definition at line 165 of file lldrawable.h.
References clearState(), setState(), and UNLIT.
void LLDrawable::cleanupReferences | ( | ) | [virtual] |
Reimplemented in LLSpatialBridge.
Definition at line 183 of file lldrawable.cpp.
References LLFastTimer::FTM_PIPELINE, gObjectList, gPipeline, mFaces, mParent, mVObjp, NULL, LLViewerObjectList::removeDrawable(), and LLPipeline::unlinkDrawable().
Referenced by LLSpatialBridge::cleanupReferences(), and markDead().
void LLDrawable::setRadius | ( | const F32 | radius | ) |
Definition at line 535 of file lldrawable.cpp.
References mRadius.
Referenced by LLPipeline::allocDrawable().
F32 LLDrawable::getRadius | ( | ) | const [inline] |
Definition at line 170 of file lldrawable.h.
References mRadius.
Referenced by LLSpatialGroup::addObject(), getVisibilityRadius(), LLToolSelectRect::handleRectangleSelection(), and updateBinRadius().
F32 LLDrawable::getVisibilityRadius | ( | ) | const |
Definition at line 858 of file lldrawable.cpp.
References LLVOVolume::getLightRadius(), getRadius(), getVOVolume(), isDead(), isLight(), and llmax().
void LLDrawable::updateUVMinMax | ( | ) |
Definition at line 877 of file lldrawable.cpp.
Definition at line 800 of file lldrawable.cpp.
References LLXformMatrix::getMinMax(), LLXform::getPositionW(), and mXform.
void LLDrawable::updateSpatialExtents | ( | ) | [virtual] |
Reimplemented in LLSpatialBridge.
Definition at line 823 of file lldrawable.cpp.
References mExtents, mPositionGroup, mSpatialBridge, mVObjp, LLPointer< Type >::notNull(), LLVector3d::setVec(), and updateBinRadius().
Referenced by LLSpatialPartition::put(), and LLSpatialGroup::updateInGroup().
void LLDrawable::updateBinRadius | ( | ) | [virtual] |
Reimplemented in LLSpatialBridge.
Definition at line 839 of file lldrawable.cpp.
References getRadius(), llmin(), mBinRadius, mVObjp, and LLPointer< Type >::notNull().
Referenced by updateSpatialExtents().
const LLVector3 * LLDrawable::getSpatialExtents | ( | ) | const |
Definition at line 806 of file lldrawable.cpp.
References mExtents.
Referenced by LLSpatialGroup::boundObjects(), LLSelectMgr::getGrid(), LLVOAvatar::getSpatialExtents(), renderBoundingBox(), and renderLights().
void LLDrawable::setPositionGroup | ( | const LLVector3d & | pos | ) |
Definition at line 818 of file lldrawable.cpp.
References mPositionGroup, and LLVector3d::setVec().
Referenced by setPositionGroup().
void LLDrawable::setPositionGroup | ( | const LLVector3 & | pos | ) | [inline] |
Definition at line 181 of file lldrawable.h.
References setPositionGroup().
void LLDrawable::setRenderType | ( | S32 | type | ) | [inline] |
S32 LLDrawable::getRenderType | ( | ) | [inline] |
Definition at line 185 of file lldrawable.h.
References mRenderType.
Referenced by LLPipeline::renderForSelect(), and LLPipeline::stateSort().
S32 LLDrawable::findReferences | ( | LLDrawable * | drawablep | ) |
void LLDrawable::setSpatialGroup | ( | LLSpatialGroup * | groupp | ) |
Definition at line 881 of file lldrawable.cpp.
References mSpatialGroupp.
Referenced by LLSpatialGroup::addObject(), LLSpatialBridge::cleanupReferences(), LLSpatialGroup::handleDestruction(), LLSpatialPartition::remove(), and LLSpatialGroup::removeObject().
LLSpatialGroup* LLDrawable::getSpatialGroup | ( | ) | const [inline] |
Definition at line 191 of file lldrawable.h.
References mSpatialGroupp.
Referenced by LLSpatialGroup::handleDestruction(), isVisible(), movePartition(), LLSpatialPartition::put(), LLManip::rebuild(), LLSpatialBridge::setVisible(), LLPipeline::stateSort(), LLPipeline::updateGeom(), LLVOPartGroup::updateGeometry(), LLSpatialBridge::updateMove(), LLSpatialGroup::validate(), and LLSpatialBridge::~LLSpatialBridge().
LLSpatialPartition * LLDrawable::getSpatialPartition | ( | ) |
Definition at line 890 of file lldrawable.cpp.
References getParent(), getSpatialPartition(), LLPipeline::getSpatialPartition(), getVOVolume(), gPipeline, isRoot(), isStatic(), mSpatialBridge, mVObjp, LLPointer< Type >::notNull(), NULL, and setSpatialBridge().
Referenced by getSpatialPartition(), and movePartition().
void LLDrawable::incrementVisible | ( | ) | [static] |
Definition at line 85 of file lldrawable.cpp.
References LLSingleton< LLViewerCamera >::getInstance(), LLCamera::getView(), LLViewerWindow::getWindowDisplayHeight(), gViewerWindow, sCurPixelAngle, and sCurVisible.
Referenced by display().
void LLDrawable::cleanupDeadDrawables | ( | ) | [static] |
Definition at line 199 of file lldrawable.cpp.
References LLDynamicArray< Type, BlockSize >::reset(), and sDeadList.
Referenced by LLAppViewer::idle().
void LLDrawable::moveUpdatePipeline | ( | BOOL | moved | ) | [protected] |
Definition at line 543 of file lldrawable.cpp.
References getFace(), getNumFaces(), i, makeActive(), S32, and LLFace::updateCenterAgent().
Referenced by updateMoveDamped(), and updateMoveUndamped().
void LLDrawable::updatePartition | ( | ) | [protected] |
Definition at line 609 of file lldrawable.cpp.
References FALSE, getVOVolume(), gPipeline, LLPipeline::markMoved(), LLPipeline::markRebuild(), movePartition(), mSpatialBridge, REBUILD_POSITION, and TRUE.
Referenced by makeActive(), and makeStatic().
BOOL LLDrawable::updateMoveDamped | ( | ) | [protected] |
Definition at line 626 of file lldrawable.cpp.
References FALSE, INVISIBLE, isState(), mGeneration, LLXform::MOVED, moveUpdatePipeline(), mVObjp, TRUE, and updateXform().
Referenced by updateMove().
BOOL LLDrawable::updateMoveUndamped | ( | ) | [protected] |
Definition at line 591 of file lldrawable.cpp.
References INVISIBLE, isState(), mGeneration, LLXform::MOVED, moveUpdatePipeline(), mVObjp, TRUE, and updateXform().
Referenced by updateMove().
static S32 LLDrawable::getCurrentFrame | ( | ) | [inline, static] |
Definition at line 281 of file lldrawable.h.
References sCurVisible.
Referenced by LLVolumeImplFlexible::doIdleUpdate(), LLSpatialGroup::isVisible(), LLSpatialGroup::needsUpdate(), LLOctreeCull::processGroup(), LLDrawPoolWater::render(), LLSpatialGroup::setVisible(), LLSpatialBridge::setVisible(), LLVOAvatar::updateCharacter(), LLViewerPartSim::updatePartBurstRate(), and LLViewerPartSim::updateSimulation().
void LLDrawable::setSpatialBridge | ( | LLSpatialBridge * | bridge | ) | [inline] |
Definition at line 283 of file lldrawable.h.
References mSpatialBridge.
Referenced by LLSpatialBridge::cleanupReferences(), getSpatialPartition(), LLSpatialBridge::LLSpatialBridge(), and makeStatic().
LLSpatialBridge* LLDrawable::getSpatialBridge | ( | ) | [inline] |
Definition at line 284 of file lldrawable.h.
References mSpatialBridge.
Referenced by LLVOAvatar::getSpatialExtents(), LLPipeline::updateGeom(), and LLSpatialGroup::validate().
friend class LLPipeline [friend] |
Definition at line 206 of file lldrawable.h.
friend class LLDrawPool [friend] |
Definition at line 207 of file lldrawable.h.
friend class LLSpatialBridge [friend] |
Definition at line 208 of file lldrawable.h.
Definition at line 272 of file lldrawable.h.
Referenced by getBounds(), getIntensity(), getMinMax(), getPosition(), getRotation(), getWorldMatrix(), getWorldPosition(), getWorldRotation(), getXform(), LLFace::setDrawable(), LLViewerObject::setDrawableParent(), LLViewerJointAttachment::setupDrawable(), shiftPos(), and updateXform().
Definition at line 275 of file lldrawable.h.
Referenced by cleanupReferences(), findReferences(), getParent(), init(), isRoot(), isSpatialRoot(), makeActive(), makeStatic(), setVisible(), and shiftPos().
Definition at line 277 of file lldrawable.h.
Referenced by init(), LLDrawable::CompareDistanceGreaterVisibleFirst::operator()(), LLDrawable::CompareDistanceGreater::operator()(), updateDistance(), and updateXform().
Definition at line 279 of file lldrawable.h.
Referenced by init(), makeActive(), LLPipeline::updateMove(), and updateTexture().
F32 LLDrawable::sCurPixelAngle = 0 [static] |
Definition at line 286 of file lldrawable.h.
Referenced by LLPipeline::calcPixelArea(), and incrementVisible().
U32 LLDrawable::mState [private] |
Definition at line 291 of file lldrawable.h.
Referenced by clearState(), getState(), init(), isState(), and setState().
S32 LLDrawable::mRenderType [private] |
Definition at line 292 of file lldrawable.h.
Referenced by getRenderType(), init(), isRenderType(), LLSpatialBridge::LLSpatialBridge(), setRenderType(), and LLPipeline::stateSort().
LLPointer<LLViewerObject> LLDrawable::mVObjp [private] |
Definition at line 293 of file lldrawable.h.
Referenced by addFace(), LLPipeline::allocDrawable(), cleanupReferences(), getChild(), getChildCount(), getLOD(), getPositionAgent(), getRegion(), getSpatialPartition(), getTextureEntry(), getVObj(), getVOVolume(), init(), isAnimating(), isAvatar(), isLight(), makeActive(), makeStatic(), shiftPos(), updateBinRadius(), updateDistance(), updateFaceSize(), updateGeometry(), updateMove(), updateMoveDamped(), updateMoveUndamped(), updateSpatialExtents(), updateTexture(), and updateXform().
face_list_t LLDrawable::mFaces [private] |
Definition at line 294 of file lldrawable.h.
Referenced by addFace(), cleanupReferences(), deleteFaces(), destroy(), getFace(), getNumFaces(), mergeFaces(), setNumFaces(), setNumFacesFast(), and LLPipeline::stateSort().
LLSpatialGroup* LLDrawable::mSpatialGroupp [private] |
Definition at line 295 of file lldrawable.h.
Referenced by getSpatialGroup(), init(), and setSpatialGroup().
LLPointer<LLDrawable> LLDrawable::mSpatialBridge [private] |
Definition at line 296 of file lldrawable.h.
Referenced by getSpatialBridge(), getSpatialPartition(), init(), isVisible(), makeStatic(), markDead(), setSpatialBridge(), setVisible(), shiftPos(), updatePartition(), updateSpatialExtents(), and updateXform().
U32 LLDrawable::mVisible [mutable, private] |
Definition at line 298 of file lldrawable.h.
Referenced by init(), isVisible(), LLSpatialBridge::setVisible(), and setVisible().
F32 LLDrawable::mRadius [private] |
Definition at line 299 of file lldrawable.h.
Referenced by getRadius(), init(), setRadius(), and LLSpatialBridge::updateSpatialExtents().
LLVector3 LLDrawable::mExtents[2] [private] |
Definition at line 300 of file lldrawable.h.
Referenced by getSpatialExtents(), setSpatialExtents(), LLSpatialBridge::setVisible(), LLSpatialBridge::shiftPos(), shiftPos(), LLSpatialBridge::updateSpatialExtents(), and updateSpatialExtents().
LLVector3d LLDrawable::mPositionGroup [private] |
Definition at line 301 of file lldrawable.h.
Referenced by getPositionGroup(), setPositionGroup(), LLSpatialBridge::shiftPos(), shiftPos(), LLSpatialBridge::updateSpatialExtents(), and updateSpatialExtents().
F64 LLDrawable::mBinRadius [private] |
Definition at line 302 of file lldrawable.h.
Referenced by getBinRadius(), init(), LLSpatialBridge::updateBinRadius(), and updateBinRadius().
S32 LLDrawable::mGeneration [private] |
Definition at line 303 of file lldrawable.h.
Referenced by getGeneration(), init(), updateMoveDamped(), and updateMoveUndamped().
LLVector3 LLDrawable::mCurrentScale [private] |
U32 LLDrawable::sCurVisible = 0 [static, private] |
Definition at line 307 of file lldrawable.h.
Referenced by getCurrentFrame(), incrementVisible(), isVisible(), and setVisible().
U32 LLDrawable::sNumZombieDrawables = 0 [static, private] |
LLDynamicArrayPtr< LLPointer< LLDrawable > > LLDrawable::sDeadList [static, private] |