LLViewerObjectList Class Reference

#include <llviewerobjectlist.h>

Collaboration diagram for LLViewerObjectList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLViewerObjectList ()
 ~LLViewerObjectList ()
void destroy ()
LLViewerObjectgetObject (const S32 index)
LLViewerObjectfindObject (const LLUUID &id)
LLViewerObjectcreateObjectViewer (const LLPCode pcode, LLViewerRegion *regionp)
LLViewerObjectcreateObject (const LLPCode pcode, LLViewerRegion *regionp, const LLUUID &uuid, const U32 local_id, const LLHost &sender)
LLViewerObjectreplaceObject (const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp)
BOOL killObject (LLViewerObject *objectp)
void killObjects (LLViewerRegion *regionp)
void killAllObjects ()
void removeDrawable (LLDrawable *drawablep)
void cleanDeadObjects (const BOOL use_timer=TRUE)
void processUpdateCore (LLViewerObject *objectp, void **data, U32 block, const EObjectUpdateType update_type, LLDataPacker *dpp, BOOL justCreated)
void processObjectUpdate (LLMessageSystem *mesgsys, void **user_data, EObjectUpdateType update_type, bool cached=false, bool compressed=false)
void processCompressedObjectUpdate (LLMessageSystem *mesgsys, void **user_data, EObjectUpdateType update_type)
void processCachedObjectUpdate (LLMessageSystem *mesgsys, void **user_data, EObjectUpdateType update_type)
void updateApparentAngles (LLAgent &agent)
void update (LLAgent &agent, LLWorld &world)
void shiftObjects (const LLVector3 &offset)
void renderObjectsForMap (LLNetMap &netmap)
void renderObjectBounds (const LLVector3 &center)
void addDebugBeacon (const LLVector3 &pos_agent, const LLString &string, const LLColor4 &color=LLColor4(1.f, 0.f, 0.f, 0.5f), const LLColor4 &text_color=LLColor4(1.f, 1.f, 1.f, 1.f), S32 line_width=1)
void renderObjectBeacons ()
void resetObjectBeacons ()
void relightAllObjects ()
void dirtyAllObjectInventory ()
void updateActive (LLViewerObject *objectp)
void updateAvatarVisibility ()
U32 renderObjectsForSelect (LLCamera &camera, BOOL pick_parcel_wall=FALSE, BOOL keep_pick_list=FALSE)
LLViewerObjectgetSelectedObject (const U32 object_id)
S32 getNumObjects ()
void addToMap (LLViewerObject *objectp)
void removeFromMap (LLViewerObject *objectp)
void clearDebugText ()
void cleanupReferences (LLViewerObject *objectp)
S32 findReferences (LLDrawable *drawablep) const
S32 getOrphanParentCount () const
S32 getOrphanCount () const
void orphanize (LLViewerObject *childp, U32 parent_id, U32 ip, U32 port)
void findOrphans (LLViewerObject *objectp, U32 ip, U32 port)

Static Public Member Functions

static void getUUIDFromLocal (LLUUID &id, const U32 local_id, const U32 ip, const U32 port)
static void setUUIDAndLocal (const LLUUID &id, const U32 local_id, const U32 ip, const U32 port)
static BOOL removeFromLocalIDTable (const LLViewerObject &object)
static U64 getIndex (const U32 local_id, const U32 ip, const U32 port)

Public Attributes

U32 mCurBin
LLStat mNumObjectsStat
LLStat mNumActiveObjectsStat
LLStat mNumNewObjectsStat
LLStat mNumSizeCulledStat
LLStat mNumVisCulledStat
S32 mNumNewObjects
S32 mNumSizeCulled
S32 mNumVisCulled
BOOL mWasPaused
S32 mNumUnknownUpdates
S32 mNumDeadObjectUpdates
S32 mNumUnknownKills
S32 mNumDeadObjects

Protected Types

typedef std::map< LLUUID,
LLPointer< LLViewerObject > > 
vo_map

Protected Attributes

LLDynamicArray< U64mOrphanParents
LLDynamicArray< OrphanInfomOrphanChildren
S32 mNumOrphans
LLDynamicArrayPtr< LLPointer<
LLViewerObject >, 256 > 
mObjects
std::set< LLPointer< LLViewerObject > > mActiveObjects
LLDynamicArrayPtr< LLPointer<
LLViewerObject > > 
mMapObjects
vo_map mDeadObjects
std::map< LLUUID, LLPointer<
LLViewerObject > > 
mUUIDObjectMap
LLDynamicArray< LLDebugBeaconmDebugBeacons
S32 mCurLazyUpdateIndex
std::set< LLViewerObject * > mSelectPickList

Static Protected Attributes

static U32 sSimulatorMachineIndex = 1
static LLMap< U64, U32sIPAndPortToIndex
static std::map< U64, LLUUIDsIndexAndLocalIDToUUID

Friends

class LLViewerObject

Classes

class  OrphanInfo

Detailed Description

Definition at line 61 of file llviewerobjectlist.h.


Member Typedef Documentation

typedef std::map<LLUUID, LLPointer<LLViewerObject> > LLViewerObjectList::vo_map [protected]

Definition at line 199 of file llviewerobjectlist.h.


Constructor & Destructor Documentation

LLViewerObjectList::LLViewerObjectList (  ) 

Definition at line 97 of file llviewerobjectlist.cpp.

References FALSE, mCurBin, mCurLazyUpdateIndex, mNumDeadObjects, mNumDeadObjectUpdates, mNumNewObjects, mNumOrphans, mNumSizeCulled, mNumUnknownKills, mNumUnknownUpdates, mNumVisCulled, and mWasPaused.

LLViewerObjectList::~LLViewerObjectList (  ) 

Definition at line 112 of file llviewerobjectlist.cpp.

References destroy().


Member Function Documentation

void LLViewerObjectList::addDebugBeacon ( const LLVector3 pos_agent,
const LLString string,
const LLColor4 color = LLColor4(1.f, 0.f, 0.f, 0.5f),
const LLColor4 text_color = LLColor4(1.f, 1.f, 1.f, 1.f),
S32  line_width = 1 
)

Definition at line 1244 of file llviewerobjectlist.cpp.

References LLDebugBeacon::mColor, mDebugBeacons, LLDebugBeacon::mLineWidth, LLDebugBeacon::mPositionAgent, LLDebugBeacon::mString, LLDebugBeacon::mTextColor, and LLDynamicArray< Type, BlockSize >::reserve_block().

Referenced by LLFloaterTelehub::addBeacons(), findOrphans(), LLPipeline::postSort(), LLPipeline::renderDebug(), renderParticleBeacons(), renderPhysicalBeacons(), renderScriptedBeacons(), and renderScriptedTouchBeacons().

void LLViewerObjectList::addToMap ( LLViewerObject objectp  )  [inline]

Definition at line 269 of file llviewerobjectlist.h.

References mMapObjects, and LLDynamicArray< Type, BlockSize >::put().

Referenced by LLViewerObject::setScale().

void LLViewerObjectList::cleanDeadObjects ( const BOOL  use_timer = TRUE  ) 

Definition at line 918 of file llviewerobjectlist.cpp.

References LLDynamicArray< Type, BlockSize >::count(), i, LLViewerObject::isDead(), mDeadObjects, mNumDeadObjects, mObjects, LLDynamicArray< Type, BlockSize >::remove(), and S32.

Referenced by idle(), killAllObjects(), and killObjects().

void LLViewerObjectList::cleanupReferences ( LLViewerObject objectp  ) 

Definition at line 793 of file llviewerobjectlist.cpp.

References FALSE, LLViewerObject::isOnMap(), llendl, llinfos, mActiveObjects, mDeadObjects, LLViewerObject::mDrawable, LLViewerObject::mID, mMapObjects, mNumDeadObjects, LLMemType::MTYPE_OBJECT, mUUIDObjectMap, LLViewerObject::onActiveList(), removeDrawable(), removeFromLocalIDTable(), LLDynamicArray< Type, BlockSize >::removeObj(), and LLViewerObject::setOnActiveList().

Referenced by LLViewerObject::markDead(), and replaceObject().

void LLViewerObjectList::clearDebugText (  ) 

Definition at line 784 of file llviewerobjectlist.cpp.

References LLDynamicArray< Type, BlockSize >::count(), i, mObjects, and S32.

Referenced by LLPipeline::resetFrameStats().

LLViewerObject * LLViewerObjectList::createObject ( const LLPCode  pcode,
LLViewerRegion regionp,
const LLUUID uuid,
const U32  local_id,
const LLHost sender 
)

Definition at line 1287 of file llviewerobjectlist.cpp.

References LLViewerObject::createObject(), LLFastTimer::FTM_CREATE_OBJECT, LLUUID::generate(), LLMessageSystem::getSenderIP(), LLMessageSystem::getSenderPort(), gMessageSystem, mObjects, LLMemType::MTYPE_OBJECT, mUUIDObjectMap, NULL, LLUUID::null, LLDynamicArray< Type, BlockSize >::put(), setUUIDAndLocal(), t, and updateActive().

Referenced by processObjectUpdate(), and replaceObject().

LLViewerObject * LLViewerObjectList::createObjectViewer ( const LLPCode  pcode,
LLViewerRegion regionp 
)

Definition at line 1263 of file llviewerobjectlist.cpp.

References LLViewerObject::createObject(), LLUUID::generate(), mObjects, LLMemType::MTYPE_OBJECT, mUUIDObjectMap, NULL, LLDynamicArray< Type, BlockSize >::put(), and updateActive().

Referenced by LLSky::init(), LLSurface::initTextures(), LLPreviewAnimation::LLPreviewAnimation(), LLViewerPartGroup::LLViewerPartGroup(), process_kill_object(), LLViewerObject::processUpdateMessage(), LLSurfacePatch::setSurface(), LLCloudGroup::updatePuffs(), and LLWorld::updateWaterObjects().

void LLViewerObjectList::destroy (  ) 

Definition at line 117 of file llviewerobjectlist.cpp.

References killAllObjects(), mActiveObjects, mDeadObjects, mMapObjects, mUUIDObjectMap, and resetObjectBeacons().

Referenced by disconnect_viewer(), and ~LLViewerObjectList().

void LLViewerObjectList::dirtyAllObjectInventory (  ) 

Definition at line 546 of file llviewerobjectlist.cpp.

References LLDynamicArray< Type, BlockSize >::count(), count, i, mObjects, and S32.

Referenced by set_god_level().

LLViewerObject * LLViewerObjectList::findObject ( const LLUUID id  )  [inline]

Definition at line 244 of file llviewerobjectlist.h.

References mUUIDObjectMap, and NULL.

Referenced by LLFloaterTelehub::addBeacons(), LLFloaterScriptDebug::addScriptLine(), LLPanelGroupInvite::addUsers(), LLAgent::autoPilot(), LLTaskInvFVBridge::buyItem(), callback_eject(), callback_freeze(), LLTaskInvFVBridge::commitBuyItem(), LLToolDragAndDrop::commitGiveInventoryCategory(), LLToolDragAndDrop::commitGiveInventoryItem(), copy_inventory_from_notecard(), LLCategoryDropObserver::done(), LLFolderBridge::dragItemIntoFolder(), LLTaskCategoryBridge::dragOrDrop(), LLLiveLSLEditor::draw(), LLToolDragAndDrop::dropInventory(), LLToolDragAndDrop::dropScript(), find_avatar(), find_avatar_from_object(), LLTaskInvFVBridge::findItem(), LLFloaterProperties::findItem(), findOrphans(), LLAvatarTracker::getDegreesAndDist(), LLAvatarTracker::getGlobalPos(), LLPreview::getItem(), LLFloaterReporter::getObjectInfo(), LLFloaterPay::give(), handle_object_open(), handle_sit_or_stand(), LLToolDragAndDrop::handleDropTextureProtections(), LLObjectEnableSitOrStand::handleEvent(), LLObjectEnableOpen::handleEvent(), LLObjectEnableTouch::handleEvent(), LLObjectTouch::handleEvent(), LLFloaterNotRunQueue::handleInventory(), LLFloaterRunQueue::handleInventory(), LLFloaterResetQueue::handleInventory(), LLToolSelect::handleMouseDown(), LLToolSelect::handleMouseUp(), LLToolGrab::handleObjectHit(), LLTrackingData::haveTrackingInfo(), LLAgent::heardChat(), invite_to_group(), LLTaskInvFVBridge::isItemRemovable(), LLTaskInvFVBridge::isItemRenameable(), LLViewerWindow::lastNonFloraObjectHit(), LLViewerWindow::lastObjectHit(), LLLiveLSLEditor::loadAsset(), LLPreviewNotecard::loadAsset(), LLToolDragAndDrop::locateInventory(), LLAgent::lookAtObject(), move_inv_category_world_to_agent(), move_task_inventory_callback(), notify_cautioned_script_question(), LLVOAvatar::onBakedTextureLoaded(), LLVOAvatar::onBakedTextureMasksLoaded(), LLPreview::onCommit(), LLFloaterProperties::onCommitDescription(), LLFloaterProperties::onCommitName(), LLFloaterProperties::onCommitPermissions(), LLVOAvatar::onInitialBakedTextureLoaded(), LLVOAvatar::onLocalTextureLoaded(), LLLiveLSLEditor::onReset(), LLLiveLSLEditor::onRunningCheckboxClicked(), LLLiveLSLEditor::onSaveBytecodeComplete(), LLPreviewNotecard::onSaveComplete(), LLPreviewGesture::onSaveComplete(), LLTaskAnimationBridge::openItem(), LLTaskGestureBridge::openItem(), LLTaskNotecardBridge::openItem(), LLTaskLSLBridge::openItem(), LLFloaterPay::payViaObject(), LLObjectBridge::performAction(), LLToolObjPicker::pickCallback(), LLToolGrab::pickCallback(), LLFloaterScriptQueue::popNext(), print_agent_nvpairs(), process_attached_sound(), process_attached_sound_gain_change(), process_avatar_animation(), process_avatar_appearance(), process_avatar_sit_response(), process_chat_from_simulator(), process_improved_im(), process_kill_object(), process_name_value(), process_offer_callingcard(), process_preload_sound(), process_remove_name_value(), process_set_follow_cam_properties(), LLSelectMgr::processForceObjectSelect(), processObjectUpdate(), LLViewerObject::processTaskInv(), LLViewerObject::processTaskInvFile(), LLViewerObject::processUpdateMessage(), raycast_for_new_obj_pos(), LLFloaterProperties::refreshFromItem(), remove_inventory_category_from_avatar_step2(), remove_task_inventory_callback(), LLTaskInvFVBridge::removeBatch(), LLTaskInvFVBridge::removeItem(), LLTaskInvFVBridge::renameItem(), replaceObject(), request_friendship(), LLPermissionsView::revokePermissions(), LLLiveLSLEditor::saveIfNeeded(), LLFloaterCompileQueue::saveItemByAssetID(), send_eject(), send_freeze(), LLAgent::setCameraPosAndFocusGlobal(), LLAgent::setFocusGlobal(), LLAgent::setSitCamera(), LLAgent::setStartPosition(), LLTaskCategoryBridge::startDrag(), LLTaskInvFVBridge::startDrag(), LLAgent::startFollowPilot(), LLAgent::startTyping(), LLVOAvatar::stopMotionFromSource(), LLHUDEffectSpiral::unpackData(), LLHUDEffectPointAt::unpackData(), LLHUDEffectLookAt::unpackData(), LLHUDEffectBeam::unpackData(), LLViewerPartSourceScript::unpackPSS(), LLViewerPartSourceScript::update(), LLPanelInventory::updateInventory(), LLSelectMgr::updatePointAt(), LLFloaterProperties::updateSaleInfo(), LLLocalSpeakerMgr::updateSpeakerList(), and LLUpdateTaskInventoryResponder::uploadComplete().

void LLViewerObjectList::findOrphans ( LLViewerObject objectp,
U32  ip,
U32  port 
)

Definition at line 1402 of file llviewerobjectlist.cpp.

References LLViewerObject::addChild(), addDebugBeacon(), LLDrawable::CLEAR_INVISIBLE, LLSelectMgr::deselectObjectAndFamily(), FALSE, findObject(), getIndex(), LLPrimitive::getPCodeString(), LLViewerObject::getPositionAgent(), LLViewerObject::getPositionGlobal(), LLSelectMgr::getSelection(), gNoRender, gPipeline, gSelectMgr, LLViewerObject::hideExtraDisplayItems(), i, LLViewerObject::isDead(), LLViewerObject::isSelected(), llendl, llinfos, llwarns, LLPipeline::markMoved(), LLViewerObject::mDrawable, LLViewerObject::mID, LLViewerObject::mLocalID, mNumOrphans, mOrphanChildren, LLViewerObject::mOrphaned, mOrphanParents, LLXform::MOVED, LLPointer< Type >::notNull(), S32, LLSelectMgr::selectObjectAndFamily(), LLXform::setChanged(), LLViewerObject::setDrawableParent(), LLXform::SILHOUETTE, and TRUE.

Referenced by processUpdateCore().

S32 LLViewerObjectList::findReferences ( LLDrawable drawablep  )  const

Definition at line 1336 of file llviewerobjectlist.cpp.

References LLDynamicArray< Type, BlockSize >::count(), i, LLViewerObject::mDrawable, mObjects, LLPointer< Type >::notNull(), and S32.

Referenced by LLPipeline::findReferences().

U64 LLViewerObjectList::getIndex ( const U32  local_id,
const U32  ip,
const U32  port 
) [static]

Definition at line 149 of file llviewerobjectlist.cpp.

References sIPAndPortToIndex.

Referenced by findOrphans(), and orphanize().

S32 LLViewerObjectList::getNumObjects (  )  [inline]

Definition at line 117 of file llviewerobjectlist.h.

References LLDynamicArray< Type, BlockSize >::count(), and mObjects.

Referenced by LLFrameStats::addFrameData(), and output_statistics().

LLViewerObject * LLViewerObjectList::getObject ( const S32  index  )  [inline]

Definition at line 257 of file llviewerobjectlist.h.

References LLViewerObject::isDead(), mObjects, and NULL.

Referenced by output_statistics(), and shiftObjects().

S32 LLViewerObjectList::getOrphanCount (  )  const [inline]

Definition at line 132 of file llviewerobjectlist.h.

References mNumOrphans.

Referenced by output_statistics().

S32 LLViewerObjectList::getOrphanParentCount (  )  const [inline]

Definition at line 131 of file llviewerobjectlist.h.

References mOrphanParents.

LLViewerObject * LLViewerObjectList::getSelectedObject ( const U32  object_id  ) 

Definition at line 1231 of file llviewerobjectlist.cpp.

References mSelectPickList, and NULL.

Referenced by LLViewerWindow::performPick().

void LLViewerObjectList::getUUIDFromLocal ( LLUUID id,
const U32  local_id,
const U32  ip,
const U32  port 
) [static]

Definition at line 129 of file llviewerobjectlist.cpp.

References get_if_there(), LLUUID::null, sIndexAndLocalIDToUUID, sIPAndPortToIndex, and sSimulatorMachineIndex.

Referenced by process_kill_object(), LLSelectMgr::processForceObjectSelect(), processObjectUpdate(), and LLViewerObject::processUpdateMessage().

void LLViewerObjectList::killAllObjects (  ) 

Definition at line 884 of file llviewerobjectlist.cpp.

References cleanDeadObjects(), LLDynamicArray< Type, BlockSize >::count(), FALSE, i, killObject(), llassert, llendl, llwarns, mActiveObjects, mMapObjects, mObjects, and S32.

Referenced by destroy(), and LLWorld::~LLWorld().

BOOL LLViewerObjectList::killObject ( LLViewerObject objectp  ) 

Definition at line 843 of file llviewerobjectlist.cpp.

References FALSE, LLViewerObject::isDead(), LLViewerObject::markDead(), and TRUE.

Referenced by LLViewerPartGroup::cleanup(), LLCloudGroup::cleanup(), killAllObjects(), killObjects(), process_kill_object(), LLViewerObject::processUpdateMessage(), update(), LLViewerPartGroup::updateParticles(), and LLWorld::updateWaterObjects().

void LLViewerObjectList::killObjects ( LLViewerRegion regionp  ) 

Definition at line 865 of file llviewerobjectlist.cpp.

References cleanDeadObjects(), LLDynamicArray< Type, BlockSize >::count(), FALSE, i, killObject(), mObjects, LLViewerObject::mRegionp, and S32.

Referenced by LLViewerRegion::~LLViewerRegion().

void LLViewerObjectList::orphanize ( LLViewerObject childp,
U32  parent_id,
U32  ip,
U32  port 
)

Definition at line 1353 of file llviewerobjectlist.cpp.

References LLDrawable::FORCE_INVISIBLE, LLViewerObject::getID(), getIndex(), LLXform::getParent(), LLViewerObject::getRegion(), llendl, llinfos, LLViewerObject::mDrawable, LLViewerObject::mID, mNumOrphans, mOrphanChildren, LLViewerObject::mOrphaned, mOrphanParents, LLMemType::MTYPE_OBJECT, LLPointer< Type >::notNull(), and TRUE.

Referenced by LLViewerObject::processUpdateMessage().

void LLViewerObjectList::processCachedObjectUpdate ( LLMessageSystem mesgsys,
void **  user_data,
EObjectUpdateType  update_type 
)

Definition at line 527 of file llviewerobjectlist.cpp.

References processObjectUpdate().

Referenced by process_cached_object_update().

void LLViewerObjectList::processCompressedObjectUpdate ( LLMessageSystem mesgsys,
void **  user_data,
EObjectUpdateType  update_type 
)

Definition at line 520 of file llviewerobjectlist.cpp.

References processObjectUpdate().

Referenced by process_compressed_object_update(), and process_terse_object_update_improved().

void LLViewerObjectList::processObjectUpdate ( LLMessageSystem mesgsys,
void **  user_data,
EObjectUpdateType  update_type,
bool  cached = false,
bool  compressed = false 
)

Definition at line 255 of file llviewerobjectlist.cpp.

References _PREHASH_CRC, _PREHASH_Data, _PREHASH_FullID, _PREHASH_ID, _PREHASH_ObjectData, _PREHASH_PCode, _PREHASH_RegionData, _PREHASH_RegionHandle, _PREHASH_UpdateFlags, LLDataPackerBinaryBuffer::assignBuffer(), LLViewerRegion::cacheFullUpdate(), createObject(), LLVOAvatar::cullAvatarsByPixelArea(), FALSE, findObject(), FLAGS_ZLIB_COMPRESSED, LLFastTimer::FTM_PROCESS_OBJECTS, gAgent, LLMessageSystem::getBinaryDataFast(), LLAgent::getCameraPositionGlobal(), LLViewerRegion::getDP(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getReceiveCompressedSize(), LLMessageSystem::getReceiveSize(), LLViewerObject::getRegion(), LLMessageSystem::getSender(), LLMessageSystem::getSenderIP(), LLMessageSystem::getSenderPort(), LLMessageSystem::getSizeFast(), LLMessageSystem::getU32Fast(), LLMessageSystem::getU64Fast(), LLMessageSystem::getU8Fast(), LLMessageSystem::getUUIDFast(), getUUIDFromLocal(), gFullObjectUpdates, gMessageSystem, gTerseObjectUpdates, gWorldPointer, i, LLViewerObject::isDead(), LLUUID::isNull(), llendl, llwarns, mDeadObjects, LLViewerObject::mID, LLViewerObject::mLocalID, mNumDeadObjectUpdates, mNumNewObjects, mNumUnknownUpdates, LLViewerObject::mRegionp, NULL, OUT_FULL, OUT_TERSE_IMPROVED, processUpdateCore(), removeFromLocalIDTable(), LLDataPackerBinaryBuffer::reset(), LLDataPacker::reset(), S32, LLViewerObject::setRegion(), setUUIDAndLocal(), size, t, TRUE, LLDataPackerBinaryBuffer::unpackU32(), LLDataPacker::unpackU32(), LLDataPackerBinaryBuffer::unpackU8(), LLDataPacker::unpackU8(), LLDataPackerBinaryBuffer::unpackUUID(), LLDataPacker::unpackUUID(), and LLViewerObject::updateRegion().

Referenced by process_object_update(), processCachedObjectUpdate(), and processCompressedObjectUpdate().

void LLViewerObjectList::processUpdateCore ( LLViewerObject objectp,
void **  data,
U32  block,
const EObjectUpdateType  update_type,
LLDataPacker dpp,
BOOL  justCreated 
)

Definition at line 201 of file llviewerobjectlist.cpp.

References LLPipeline::addObject(), LLWindow::decBusyCount(), dialog_refresh_all(), findOrphans(), gAgent, LLToolMgr::getCurrentTool(), LLMessageSystem::getSenderIP(), LLMessageSystem::getSenderPort(), LLViewerWindow::getWindow(), gMessageSystem, gPipeline, gSelectMgr, gToolMgr, gToolPie, gViewerWindow, LLViewerObject::isDead(), OUT_TERSE_IMPROVED, LLViewerObject::processUpdateMessage(), LLSelectMgr::selectObjectAndFamily(), LLWindow::setCursor(), UI_CURSOR_ARROW, and updateActive().

Referenced by processObjectUpdate().

void LLViewerObjectList::relightAllObjects (  ) 

Definition at line 534 of file llviewerobjectlist.cpp.

References LLDynamicArray< Type, BlockSize >::count(), gPipeline, i, LLPipeline::markRelight(), mObjects, and S32.

Referenced by LLPipeline::setLightingDetail().

void LLViewerObjectList::removeDrawable ( LLDrawable drawablep  ) 

Definition at line 829 of file llviewerobjectlist.cpp.

References LLDrawable::getFace(), LLDrawable::getNumFaces(), LLFace::getViewerObject(), i, mSelectPickList, and S32.

Referenced by cleanupReferences(), and LLDrawable::cleanupReferences().

BOOL LLViewerObjectList::removeFromLocalIDTable ( const LLViewerObject object  )  [static]

Definition at line 165 of file llviewerobjectlist.cpp.

References FALSE, LLHost::getAddress(), LLViewerRegion::getHost(), LLHost::getPort(), LLViewerObject::getRegion(), LLViewerObject::mLocalID, sIndexAndLocalIDToUUID, sIPAndPortToIndex, and TRUE.

Referenced by cleanupReferences(), and processObjectUpdate().

void LLViewerObjectList::removeFromMap ( LLViewerObject objectp  )  [inline]

Definition at line 274 of file llviewerobjectlist.h.

References mMapObjects, and LLDynamicArray< Type, BlockSize >::removeObj().

Referenced by LLViewerObject::setScale().

void LLViewerObjectList::renderObjectBeacons (  ) 

Definition at line 1004 of file llglsandbox.cpp.

References LLHUDObject::addHUDObject(), LLDynamicArray< Type, BlockSize >::count(), draw_line_cube(), f, FALSE, glBegin, glColor4fv, glEnd, i, LLHUDObject::LL_HUD_TEXT, mDebugBeacons, LLVector3::mV, LLColor4::mV, S32, LLHUDText::setColor(), LLHUDObject::setPositionAgent(), LLHUDText::setString(), LLHUDText::setZCompare(), utf8str_to_wstring(), VX, VY, and VZ.

Referenced by render_hud_elements().

void LLViewerObjectList::renderObjectBounds ( const LLVector3 center  ) 

Definition at line 1090 of file llviewerobjectlist.cpp.

void LLViewerObjectList::renderObjectsForMap ( LLNetMap netmap  ) 

Definition at line 1017 of file llviewerobjectlist.cpp.

References LLDynamicArray< Type, BlockSize >::count(), f, gColors, LLControlGroup::getColor(), i, LLVector3d::mdV, mMapObjects, LLVector3::mV, LLNetMap::renderScaledPointGlobal(), S32, VX, VY, and VZ.

Referenced by LLNetMap::draw().

U32 LLViewerObjectList::renderObjectsForSelect ( LLCamera camera,
BOOL  pick_parcel_wall = FALSE,
BOOL  keep_pick_list = FALSE 
)

Definition at line 1095 of file llviewerobjectlist.cpp.

References LLHUDText::addPickable(), LLDynamicArray< Type, BlockSize >::count(), LLSpatialPartition::cull(), FALSE, gAgent, LLHUDIcon::generatePickIDs(), LLAgent::getAvatarObject(), LLViewerJointAttachment::getIsHUDAttachment(), LLHUDIcon::getNumInstances(), LLViewerJointAttachment::getObject(), LLPipeline::getSpatialPartition(), GL_NAME_INDEX_OFFSET, gPipeline, gRenderForSelect, gViewerWindow, i, LLViewerObject::isDead(), LLVOAvatar::mAttachmentPoints, LLViewerObject::mDrawable, LLViewerObject::mGLName, mObjects, mSelectPickList, LLPointer< Type >::notNull(), NULL, LLPipeline::NUM_PARTITIONS, LLHUDObject::renderAllForSelect(), LLPipeline::renderForSelect(), LLViewerWindow::renderSelections(), S32, LLCharacter::sInstances, and TRUE.

Referenced by LLViewerWindow::hitObjectOrLandGlobalAsync(), LLViewerWindow::rawSnapshot(), and LLPipeline::renderGeom().

LLViewerObject * LLViewerObjectList::replaceObject ( const LLUUID id,
const LLPCode  pcode,
LLViewerRegion regionp 
)

Definition at line 1323 of file llviewerobjectlist.cpp.

References cleanupReferences(), createObject(), findObject(), and NULL.

void LLViewerObjectList::resetObjectBeacons (  ) 

Definition at line 1258 of file llviewerobjectlist.cpp.

References mDebugBeacons, and LLDynamicArray< Type, BlockSize >::reset().

Referenced by destroy(), and render_hud_elements().

void LLViewerObjectList::setUUIDAndLocal ( const LLUUID id,
const U32  local_id,
const U32  ip,
const U32  port 
) [static]

Definition at line 178 of file llviewerobjectlist.cpp.

References sIndexAndLocalIDToUUID, sIPAndPortToIndex, and sSimulatorMachineIndex.

Referenced by createObject(), and processObjectUpdate().

void LLViewerObjectList::shiftObjects ( const LLVector3 offset  ) 

Definition at line 985 of file llviewerobjectlist.cpp.

References LLDynamicArray< Type, BlockSize >::count(), getObject(), gNoRender, gPipeline, gWorldPointer, i, LLVector3::magVecSquared(), LLPipeline::markShift(), LLViewerObject::mDrawable, mObjects, LLPointer< Type >::notNull(), S32, LLPipeline::shiftObjects(), and LLViewerObject::updatePositionCaches().

Referenced by process_agent_movement_complete().

void LLViewerObjectList::update ( LLAgent agent,
LLWorld world 
)

Definition at line 631 of file llviewerobjectlist.cpp.

References LLStat::addValue(), LLDynamicArray< Type, BlockSize >::count(), f, gAnimateTextures, LLControlGroup::getBOOL(), LLFrameTimer::getElapsedSeconds(), LLPrimitive::getPCode(), gFrameIntervalSeconds, gFrameTime, gFrameTimeSeconds, gPingInterpolate, gSavedSettings, gStartTime, gVelocityInterpolate, gViewerStats, LLViewerObject::idleUpdate(), LLPrimitive::isAvatar(), killObject(), LLViewerObject::LL_VO_CLOUDS, llendl, llwarns, mActiveObjects, mNumActiveObjectsStat, mNumObjectsStat, mNumSizeCulled, mNumSizeCulledStat, mNumVisCulled, mNumVisCulledStat, mObjects, LLMemType::MTYPE_OBJECT, mWasPaused, NULL, S32, SEC_TO_MICROSEC, LLVOAvatar::sNumLODChangesThisFrame, totalTime(), U64_to_F64(), and LLViewerStats::updateFrameStats().

Referenced by idle().

void LLViewerObjectList::updateActive ( LLViewerObject objectp  ) 

Definition at line 957 of file llviewerobjectlist.cpp.

References FALSE, LLViewerObject::isActive(), LLViewerObject::isDead(), mActiveObjects, LLMemType::MTYPE_OBJECT, LLViewerObject::onActiveList(), LLViewerObject::setOnActiveList(), and TRUE.

Referenced by createObject(), createObjectViewer(), processUpdateCore(), and LLWorld::updateWaterObjects().

void LLViewerObjectList::updateApparentAngles ( LLAgent agent  ) 

Definition at line 555 of file llviewerobjectlist.cpp.

References LLViewerObject::boostTexturePriority(), LLDynamicArray< Type, BlockSize >::count(), LLVOAvatar::cullAvatarsByPixelArea(), f, func, gAgent, LLAgent::getFocusObject(), LLHoverView::getLastHoverObject(), LLSelectMgr::getSelection(), gHoverView, gImageList, gNoRender, gSelectMgr, i, LLViewerObject::isDead(), llmin(), mCurBin, mCurLazyUpdateIndex, mObjects, NUM_BINS, S32, LLViewerObject::setPixelAreaAndAngle(), LLViewerImageList::setUpdateStats(), TRUE, and LLViewerObject::updateTextures().

Referenced by idle().

void LLViewerObjectList::updateAvatarVisibility (  ) 


Friends And Related Function Documentation

friend class LLViewerObject [friend]

Definition at line 215 of file llviewerobjectlist.h.


Member Data Documentation

std::set<LLPointer<LLViewerObject> > LLViewerObjectList::mActiveObjects [protected]

Definition at line 195 of file llviewerobjectlist.h.

Referenced by cleanupReferences(), destroy(), killAllObjects(), update(), and updateActive().

U32 LLViewerObjectList::mCurBin

Definition at line 150 of file llviewerobjectlist.h.

Referenced by LLViewerObjectList(), and updateApparentAngles().

S32 LLViewerObjectList::mCurLazyUpdateIndex [protected]

Definition at line 206 of file llviewerobjectlist.h.

Referenced by LLViewerObjectList(), and updateApparentAngles().

vo_map LLViewerObjectList::mDeadObjects [protected]

Definition at line 200 of file llviewerobjectlist.h.

Referenced by cleanDeadObjects(), cleanupReferences(), destroy(), and processObjectUpdate().

LLDynamicArray<LLDebugBeacon> LLViewerObjectList::mDebugBeacons [protected]

Definition at line 204 of file llviewerobjectlist.h.

Referenced by addDebugBeacon(), renderObjectBeacons(), and resetObjectBeacons().

LLDynamicArrayPtr<LLPointer<LLViewerObject> > LLViewerObjectList::mMapObjects [protected]

Definition at line 197 of file llviewerobjectlist.h.

Referenced by addToMap(), cleanupReferences(), destroy(), killAllObjects(), removeFromMap(), and renderObjectsForMap().

LLStat LLViewerObjectList::mNumActiveObjectsStat

Definition at line 158 of file llviewerobjectlist.h.

Referenced by update().

S32 LLViewerObjectList::mNumDeadObjects

Definition at line 188 of file llviewerobjectlist.h.

Referenced by cleanDeadObjects(), cleanupReferences(), LLViewerObjectList(), and output_statistics().

S32 LLViewerObjectList::mNumDeadObjectUpdates

Definition at line 186 of file llviewerobjectlist.h.

Referenced by idle(), LLViewerObjectList(), and processObjectUpdate().

S32 LLViewerObjectList::mNumNewObjects

Definition at line 163 of file llviewerobjectlist.h.

Referenced by idle_network(), LLViewerObjectList(), and processObjectUpdate().

LLStat LLViewerObjectList::mNumNewObjectsStat

Definition at line 159 of file llviewerobjectlist.h.

Referenced by idle_network(), and init_stat_view().

LLStat LLViewerObjectList::mNumObjectsStat

Definition at line 157 of file llviewerobjectlist.h.

Referenced by init_stat_view(), and update().

S32 LLViewerObjectList::mNumOrphans [protected]

Definition at line 192 of file llviewerobjectlist.h.

Referenced by findOrphans(), getOrphanCount(), LLViewerObjectList(), and orphanize().

S32 LLViewerObjectList::mNumSizeCulled

Definition at line 165 of file llviewerobjectlist.h.

Referenced by LLViewerObjectList(), and update().

LLStat LLViewerObjectList::mNumSizeCulledStat

Definition at line 160 of file llviewerobjectlist.h.

Referenced by update().

S32 LLViewerObjectList::mNumUnknownKills

Definition at line 187 of file llviewerobjectlist.h.

Referenced by idle(), LLViewerObjectList(), and process_kill_object().

S32 LLViewerObjectList::mNumUnknownUpdates

Definition at line 185 of file llviewerobjectlist.h.

Referenced by idle(), LLViewerObjectList(), and processObjectUpdate().

S32 LLViewerObjectList::mNumVisCulled

Definition at line 166 of file llviewerobjectlist.h.

Referenced by LLViewerObjectList(), and update().

LLStat LLViewerObjectList::mNumVisCulledStat

Definition at line 161 of file llviewerobjectlist.h.

Referenced by update().

LLDynamicArrayPtr<LLPointer<LLViewerObject>, 256> LLViewerObjectList::mObjects [protected]

Definition at line 194 of file llviewerobjectlist.h.

Referenced by cleanDeadObjects(), clearDebugText(), createObject(), createObjectViewer(), dirtyAllObjectInventory(), findReferences(), getNumObjects(), getObject(), killAllObjects(), killObjects(), relightAllObjects(), renderObjectsForSelect(), shiftObjects(), update(), and updateApparentAngles().

LLDynamicArray<OrphanInfo> LLViewerObjectList::mOrphanChildren [protected]

Definition at line 191 of file llviewerobjectlist.h.

Referenced by findOrphans(), and orphanize().

LLDynamicArray<U64> LLViewerObjectList::mOrphanParents [protected]

Definition at line 190 of file llviewerobjectlist.h.

Referenced by findOrphans(), getOrphanParentCount(), and orphanize().

std::set<LLViewerObject *> LLViewerObjectList::mSelectPickList [protected]

Definition at line 213 of file llviewerobjectlist.h.

Referenced by getSelectedObject(), removeDrawable(), and renderObjectsForSelect().

std::map<LLUUID, LLPointer<LLViewerObject> > LLViewerObjectList::mUUIDObjectMap [protected]

Definition at line 202 of file llviewerobjectlist.h.

Referenced by cleanupReferences(), createObject(), createObjectViewer(), destroy(), and findObject().

BOOL LLViewerObjectList::mWasPaused

Definition at line 170 of file llviewerobjectlist.h.

Referenced by LLViewerObjectList(), send_agent_pause(), and update().

std::map< U64, LLUUID > LLViewerObjectList::sIndexAndLocalIDToUUID [static, protected]

Definition at line 211 of file llviewerobjectlist.h.

Referenced by getUUIDFromLocal(), removeFromLocalIDTable(), and setUUIDAndLocal().

LLMap< U64, U32 > LLViewerObjectList::sIPAndPortToIndex [static, protected]

Definition at line 209 of file llviewerobjectlist.h.

Referenced by getIndex(), getUUIDFromLocal(), removeFromLocalIDTable(), and setUUIDAndLocal().

U32 LLViewerObjectList::sSimulatorMachineIndex = 1 [static, protected]

Definition at line 208 of file llviewerobjectlist.h.

Referenced by getUUIDFromLocal(), and setUUIDAndLocal().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:58 2010 for Second Life Viewer by  doxygen 1.4.7