#include <llworld.h>
Definition at line 62 of file llworld.h.
typedef std::list<LLViewerRegion*> LLWorld::region_list_t |
LLWorld::LLWorld | ( | ) |
Definition at line 86 of file llworld.cpp.
References FALSE, gNoRender, i, mDefaultWaterTexturep, mEdgeWaterObjects, LLColor4U::mV, NULL, S32, and TRUE.
void LLWorld::destroyClass | ( | ) |
Definition at line 121 of file llworld.cpp.
References LLViewerObjectList::destroy(), LLViewerPartSim::destroyClass(), LLViewerRegion::getHost(), LLSingleton< LLViewerPartSim >::getInstance(), gObjectList, mRegionList, and removeRegion().
Referenced by LLAppViewer::disconnectViewer().
LLViewerRegion * LLWorld::addRegion | ( | const U64 & | region_handle, | |
const LLHost & | host | |||
) |
Definition at line 133 of file llworld.cpp.
References LLViewerRegion::connectNeighbor(), LLCloudLayer::create(), from_region_handle(), gDirAxes, LLViewerRegion::getHost(), getRegionFromHandle(), getRegionWidthInMeters(), llendl, llerrs, llinfos, llwarns, mActiveRegionList, LLViewerRegion::mAlive, LLViewerRegion::mCloudLayer, mCulledRegionList, mRegionList, LLMemType::MTYPE_REGIONS, mWidth, LLViewerRegion::mWind, removeRegion(), S32, LLCloudLayer::setWidth(), LLCloudLayer::setWindPointer(), to_region_handle(), updateWaterObjects(), and WORLD_PATCH_SIZE.
Referenced by idle_startup(), process_crossed_region(), process_enable_simulator(), and process_teleport_finish().
void LLWorld::removeRegion | ( | const LLHost & | host | ) |
Definition at line 230 of file llworld.cpp.
References LLAppViewer::forceDisconnect(), from_region_handle(), gAgent, LLViewerRegion::getHandle(), LLViewerRegion::getHost(), LLViewerRegion::getName(), LLViewerRegion::getOriginGlobal(), LLAgent::getPositionAgent(), LLAgent::getPositionGlobal(), LLAgent::getRegion(), getRegion(), LLAgent::getRegionsVisited(), gFrameTimeSeconds, LLAppViewer::instance(), llendl, llinfos, llwarns, mActiveRegionList, mCulledRegionList, mRegionList, mVisibleRegionList, and updateWaterObjects().
Referenced by addRegion(), destroyClass(), and process_disable_simulator().
void LLWorld::disconnectRegions | ( | ) |
Definition at line 998 of file llworld.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_AgentQuitCopy, _PREHASH_FuseBlock, _PREHASH_SessionID, _PREHASH_ViewerCircuitCode, LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLAgent::getRegion(), LLAgent::getSessionID(), gMessageSystem, llendl, llinfos, LLMessageSystem::mOurCircuitCode, mRegionList, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), and LLMessageSystem::sendMessage().
LLViewerRegion * LLWorld::getRegion | ( | const LLHost & | host | ) |
Definition at line 280 of file llworld.cpp.
References LLViewerRegion::getHost(), mRegionList, and NULL.
Referenced by LLEstablishAgentCommunication::post(), CoarseLocationUpdate::post(), process_layer_data(), process_region_handshake(), processCoarseUpdate(), LLViewerParcelMgr::processParcelOverlay(), LLViewerParcelMgr::processParcelProperties(), and removeRegion().
LLViewerRegion * LLWorld::getRegionFromPosGlobal | ( | const LLVector3d & | pos | ) |
Definition at line 299 of file llworld.cpp.
References mRegionList, NULL, and LLViewerRegion::pointInRegionGlobal().
Referenced by LLAgent::calcCameraPositionTargetGlobal(), LLViewerParcelMgr::callbackDivideLand(), LLViewerParcelMgr::callbackJoinLand(), clipToVisibleRegions(), LLToolBrushLand::determineAffectedRegions(), LLToolDragAndDrop::dropObject(), LLViewerRegion::getCompositionXY(), getRegionFromPosAgent(), LLViewerParcelMgr::getSelectionRegion(), LLNetMap::handleToolTip(), LLViewerParcelMgr::inAgentParcel(), LLViewerParcelMgr::isOwnedAt(), LLViewerParcelMgr::isOwnedOtherAt(), LLViewerParcelMgr::isOwnedSelfAt(), LLViewerParcelMgr::isSoundLocal(), LLPanelRegionTools::onSelectRegion(), LLToolPlacer::raycastForNewObjPos(), LLViewerParcelMgr::render(), LLViewerParcelMgr::requestHoverParcelProperties(), resolveLandHeightGlobal(), resolveLandNormalGlobal(), resolveLandPatchGlobal(), resolveRegionAgent(), resolveRegionGlobal(), resolveStepHeightGlobal(), LLViewerParcelMgr::selectLand(), LLViewerParcelMgr::sendParcelAccessListRequest(), LLViewerParcelMgr::sendParcelAccessListUpdate(), LLViewerParcelMgr::sendParcelDeed(), LLViewerParcelMgr::sendParcelDwellRequest(), LLViewerParcelMgr::sendParcelGodForceOwner(), LLViewerParcelMgr::sendParcelGodForceToContent(), LLViewerParcelMgr::sendParcelPropertiesUpdate(), LLViewerParcelMgr::sendParcelRelease(), LLRegionPosition::setPositionGlobal(), LLViewerParcelMgr::setupParcelBuy(), LLViewerParcelMgr::startDeedLandToGroup(), LLViewerParcelMgr::startReleaseLand(), and LLVOAvatar::updateCharacter().
LLViewerRegion * LLWorld::getRegionFromPosAgent | ( | const LLVector3 & | pos | ) |
Definition at line 294 of file llworld.cpp.
References gAgent, LLAgent::getPosGlobalFromAgent(), and getRegionFromPosGlobal().
Referenced by LLPipeline::findReflectionMap(), and LLViewerPartGroup::LLViewerPartGroup().
LLViewerRegion * LLWorld::getRegionFromHandle | ( | const U64 & | handle | ) |
Definition at line 378 of file llworld.cpp.
References LLViewerRegion::getHandle(), mRegionList, and NULL.
Referenced by addRegion(), idle_startup(), process_agent_movement_complete(), LLViewerObjectList::processObjectUpdate(), LLViewerObject::processUpdateMessage(), and updateWaterObjects().
BOOL LLWorld::positionRegionValidGlobal | ( | const LLVector3d & | pos | ) |
Definition at line 406 of file llworld.cpp.
References FALSE, mRegionList, LLViewerRegion::pointInRegionGlobal(), and TRUE.
Referenced by clipToVisibleRegions().
LLVector3d LLWorld::clipToVisibleRegions | ( | const LLVector3d & | start_pos, | |
const LLVector3d & | end_pos | |||
) |
Definition at line 314 of file llworld.cpp.
References LLVector3d::abs(), LLVector3d::clamp(), LLViewerRegion::getPosGlobalFromRegion(), LLViewerRegion::getPosRegionFromGlobal(), getRegionFromPosGlobal(), LLViewerRegion::getWidth(), LLVector3d::mdV, LLVector3::mV, positionRegionValidGlobal(), LLVector3d::setVec(), VX, and VY.
Referenced by LLManipRotate::drag(), LLManipScale::dragCorner(), LLManipTranslate::handleHover(), LLToolGrab::handleHoverActive(), and LLManipScale::stretchFace().
void LLWorld::updateAgentOffset | ( | const LLVector3d & | offset | ) |
Definition at line 393 of file llworld.cpp.
References mRegionList.
Referenced by LLAgent::setRegion().
LLViewerRegion * LLWorld::resolveRegionGlobal | ( | LLVector3 & | localpos, | |
const LLVector3d & | position | |||
) |
Definition at line 430 of file llworld.cpp.
References LLViewerRegion::getPosRegionFromGlobal(), getRegionFromPosGlobal(), and NULL.
Referenced by LLAppViewer::idle(), and LLViewerWindow::mousePointOnLandGlobal().
LLViewerRegion * LLWorld::resolveRegionAgent | ( | LLVector3 & | localpos, | |
const LLVector3 & | position | |||
) |
Definition at line 444 of file llworld.cpp.
References gAgent, LLAgent::getPosGlobalFromAgent(), LLViewerRegion::getPosRegionFromGlobal(), getRegionFromPosGlobal(), and NULL.
F32 LLWorld::resolveLandHeightGlobal | ( | const LLVector3d & | position | ) |
Definition at line 466 of file llworld.cpp.
References LLViewerRegion::getLand(), getRegionFromPosGlobal(), and LLSurface::resolveHeightGlobal().
Referenced by LLAgent::calcCameraPositionTargetGlobal(), LLTracker::drawHUDArrow(), getMinAllowedZ(), LLManipTranslate::handleHover(), LLToolGrab::handleHoverActive(), and resolveLandHeightAgent().
Definition at line 459 of file llworld.cpp.
References gAgent, LLAgent::getPosGlobalFromAgent(), and resolveLandHeightGlobal().
Referenced by LLViewerParcelMgr::renderRect().
F32 LLWorld::getMinAllowedZ | ( | LLViewerObject * | object | ) |
Definition at line 422 of file llworld.cpp.
References LLViewerObject::getPositionGlobal(), and resolveLandHeightGlobal().
Referenced by LLManipTranslate::handleHover(), and LLPanelObject::sendPosition().
F32 LLWorld::resolveStepHeightGlobal | ( | const LLVOAvatar * | avatarp, | |
const LLVector3d & | point_a, | |||
const LLVector3d & | point_b, | |||
LLVector3d & | intersection, | |||
LLVector3 & | intersection_normal, | |||
LLViewerObject ** | viewerObjectPtr = NULL | |||
) |
Definition at line 484 of file llworld.cpp.
References LLViewerRegion::getLand(), LLViewerRegion::getPosRegionFromGlobal(), LLViewerObject::getRegion(), getRegionFromPosGlobal(), LLVector4::isExactlyClear(), llclamp(), LLVector3d::mdV, LLVOAvatar::mFootPlane, LLVector4::mV, NULL, LLSurface::resolveHeightGlobal(), resolveLandNormalGlobal(), LLVector3::setVec(), VW, and VZ.
Referenced by LLVOAvatar::getGround(), LLVOAvatar::resolveHeightGlobal(), LLVOAvatar::resolveRayCollisionAgent(), and LLAgent::startAutoPilotGlobal().
LLSurfacePatch * LLWorld::resolveLandPatchGlobal | ( | const LLVector3d & | position | ) |
Definition at line 548 of file llworld.cpp.
References LLViewerRegion::getLand(), getRegionFromPosGlobal(), NULL, and LLSurface::resolvePatchGlobal().
LLVector3 LLWorld::resolveLandNormalGlobal | ( | const LLVector3d & | position | ) |
Definition at line 561 of file llworld.cpp.
References LLViewerRegion::getLand(), getRegionFromPosGlobal(), LLSurface::resolveNormalGlobal(), and LLVector3::z_axis.
Referenced by resolveStepHeightGlobal().
U32 LLWorld::getRegionWidthInPoints | ( | ) | const [inline] |
F32 LLWorld::getRegionScale | ( | ) | const [inline] |
F32 LLWorld::getRegionWidthInMeters | ( | ) | const [inline] |
Definition at line 114 of file llworld.h.
References mWidthInMeters.
Referenced by addRegion(), LLNetMap::draw(), LLWind::getCloudVelocity(), LLWind::getVelocity(), LLViewerObject::processUpdateMessage(), LLManip::renderGuidelines(), LLManipScale::renderGuidelinesPart(), LLWind::renderVectors(), LLNetMap::setScale(), LLAgent::setStartPosition(), and LLNetMap::viewPosToGlobal().
F32 LLWorld::getRegionMinHeight | ( | ) | const [inline] |
Definition at line 115 of file llworld.h.
References mWidthInMeters.
Referenced by LLViewerObject::processUpdateMessage().
F32 LLWorld::getRegionMaxHeight | ( | ) | const [inline] |
Definition at line 116 of file llworld.h.
References MAX_OBJECT_Z.
Referenced by LLViewerObject::processUpdateMessage(), LLPanelObject::sendPosition(), and LLAgent::setStartPosition().
void LLWorld::updateRegions | ( | F32 | max_update_time | ) |
Definition at line 630 of file llworld.cpp.
References FALSE, LLTimer::getElapsedTimeF32(), LLViewerRegion::idleUpdate(), llmin(), and mRegionList.
Referenced by LLAppViewer::idle().
void LLWorld::updateVisibilities | ( | ) |
Definition at line 573 of file llworld.cpp.
References LLViewerRegion::calculateCameraDistance(), F_SQRT2, fsqrtf, gAgent, LLViewerRegion::getCenterAgent(), LLCamera::getFar(), LLSingleton< LLViewerCamera >::getInstance(), LLViewerRegion::getLand(), LLSurface::getMaxZ(), LLSurface::getMinZ(), gNoRender, LLSurface::hasZData(), mCulledRegionList, mLandFarClip, mVisibleRegionList, mWidth, LLCamera::setFar(), LLCamera::sphereInFrustum(), and LLSurface::updatePatchVisibilities().
Referenced by LLAppViewer::idle().
void LLWorld::updateParticles | ( | ) |
Definition at line 648 of file llworld.cpp.
References LLSingleton< LLViewerPartSim >::getInstance(), and LLViewerPartSim::updateSimulation().
Referenced by LLAppViewer::idle().
void LLWorld::updateClouds | ( | const F32 | dt | ) |
Definition at line 653 of file llworld.cpp.
References LLControlGroup::getBOOL(), gSavedSettings, mActiveRegionList, LLViewerRegion::mCloudLayer, LLCloudLayer::updatePuffCount(), LLCloudLayer::updatePuffOwnership(), and LLCloudLayer::updatePuffs().
Referenced by LLAppViewer::idle().
LLCloudGroup * LLWorld::findCloudGroup | ( | const LLCloudPuff & | puff | ) |
Definition at line 690 of file llworld.cpp.
References LLCloudLayer::findCloudGroup(), mActiveRegionList, LLViewerRegion::mCloudLayer, and NULL.
Referenced by LLCloudGroup::updatePuffOwnership().
void LLWorld::renderPropertyLines | ( | ) |
Definition at line 711 of file llworld.cpp.
References mVisibleRegionList, LLViewerRegion::renderPropertyLines(), and S32.
Referenced by render_hud_elements().
void LLWorld::resetStats | ( | ) |
void LLWorld::updateNetStats | ( | ) |
Definition at line 726 of file llworld.cpp.
References LLStat::addValue(), LLPacketRing::getAndResetActualInBits(), LLPacketRing::getAndResetActualOutBits(), LLStat::getCurrent(), LLSingleton< LLViewerStats >::getInstance(), gMessageSystem, llfloor(), mActiveRegionList, LLViewerStats::mActualInKBitStat, LLViewerStats::mActualOutKBitStat, LLViewerRegion::mBitStat, LLMessageSystem::mDroppedPackets, LLViewerStats::mKBitStat, mLastPacketsIn, mLastPacketsLost, mLastPacketsOut, LLMessageSystem::mPacketRing, LLMessageSystem::mPacketsIn, LLViewerStats::mPacketsInStat, LLViewerStats::mPacketsLostPercentStat, LLViewerStats::mPacketsLostStat, LLMessageSystem::mPacketsOut, LLViewerStats::mPacketsOutStat, LLViewerRegion::mPacketsStat, S32, and LLViewerRegion::updateNetStats().
Referenced by update_statistics().
void LLWorld::printPacketsLost | ( | ) |
Definition at line 767 of file llworld.cpp.
References LLCircuit::findCircuit(), gAgent, LLViewerRegion::getCenterGlobal(), LLViewerRegion::getHost(), LLCircuitData::getPacketsLost(), LLAgent::getPositionGlobal(), gMessageSystem, llendl, llinfos, mActiveRegionList, LLVector3d::magVec(), LLMessageSystem::mCircuitInfo, and NULL.
Referenced by print_packets_lost().
void LLWorld::requestCacheMisses | ( | ) |
Definition at line 976 of file llworld.cpp.
References mRegionList, and LLViewerRegion::requestCacheMisses().
Referenced by update_statistics().
void LLWorld::processCoarseUpdate | ( | LLMessageSystem * | msg, | |
void ** | user_data | |||
) | [static] |
Definition at line 788 of file llworld.cpp.
References LLSingleton< LLWorld >::getInstance(), getRegion(), LLMessageSystem::getSender(), and LLViewerRegion::updateCoarseLocations().
Referenced by register_viewer_callbacks().
F32 LLWorld::getLandFarClip | ( | ) | const |
void LLWorld::setLandFarClip | ( | const F32 | far_clip | ) |
Definition at line 802 of file llworld.cpp.
References mLandFarClip.
Referenced by display_update_camera(), handleRenderFarClipChanged(), and idle_startup().
LLViewerImage * LLWorld::getDefaultWaterTexture | ( | ) |
void LLWorld::updateWaterObjects | ( | ) |
Definition at line 808 of file llworld.cpp.
References LLPipeline::addObject(), LLViewerObjectList::createObjectViewer(), DEFAULT_WATER_HEIGHT, FALSE, from_region_handle(), gAgent, gDirAxes, LLCamera::getFar(), LLViewerRegion::getHandle(), LLSingleton< LLViewerCamera >::getInstance(), LLViewerRegion::getLand(), LLAgent::getRegion(), getRegionFromHandle(), LLViewerRegion::getWaterHeight(), LLSurface::getWaterObj(), gObjectList, gPipeline, LLViewerObject::isDead(), LLViewerObjectList::killObject(), LLViewerObject::LL_VO_WATER, llendl, llround(), llwarns, LLVector3d::mdV, mEdgeWaterObjects, mHoleWaterObjects, mRegionList, LLVector3::mV, S32, LLVOWater::setIsEdgePatch(), LLViewerObject::setPositionGlobal(), LLViewerObject::setRegion(), LLViewerObject::setScale(), LLVOWater::setUseTexture(), to_region_handle(), TRUE, and LLViewerObjectList::updateActive().
Referenced by addRegion(), LLShaderMgr::loadShadersEnvironment(), LLShaderMgr::loadShadersWater(), removeRegion(), and LLAgent::setRegion().
void LLWorld::shiftRegions | ( | const LLVector3 & | offset | ) |
Definition at line 950 of file llworld.cpp.
References LLSingleton< LLViewerPartSim >::getInstance(), getRegionList(), i, LLViewerPartSim::shift(), and LLViewerRegion::updateRenderMatrix().
Referenced by LLViewerObjectList::shiftObjects().
void LLWorld::setSpaceTimeUSec | ( | const U64 | space_time_usec | ) |
Definition at line 966 of file llworld.cpp.
References mSpaceTimeUSec.
Referenced by LLAppViewer::idle(), and process_time_synch().
U64 LLWorld::getSpaceTimeUSec | ( | ) | const |
void LLWorld::getInfo | ( | LLSD & | info | ) |
Definition at line 986 of file llworld.cpp.
References LLSD::append(), LLViewerRegion::getInfo(), and mRegionList.
Referenced by LLAppViewer::handleViewerCrash().
region_list_t& LLWorld::getRegionList | ( | ) | [inline] |
Definition at line 152 of file llworld.h.
References mActiveRegionList.
Referenced by LLPipeline::dirtyPoolObjectTextures(), LLToolSelectRect::handleRectangleSelection(), LLPipeline::pickObject(), LLPipeline::processImagery(), LLPipeline::renderDebug(), LLViewerObjectList::renderObjectsForSelect(), LLPipeline::resetVertexBuffers(), LLPipeline::restoreGL(), LLPipeline::shiftObjects(), shiftRegions(), LLPipeline::updateCull(), and LLPipeline::updateMove().
Definition at line 150 of file llworld.h.
Referenced by addRegion(), LLNetMap::draw(), findCloudGroup(), getRegionList(), LLPanelRequestTools::onClickRequest(), printPacketsLost(), LLPanelRequestTools::refresh(), removeRegion(), send_agent_pause(), send_agent_resume(), updateClouds(), and updateNetStats().
region_list_t LLWorld::mRegionList [private] |
Definition at line 155 of file llworld.h.
Referenced by addRegion(), destroyClass(), disconnectRegions(), getInfo(), getRegion(), getRegionFromHandle(), getRegionFromPosGlobal(), positionRegionValidGlobal(), removeRegion(), requestCacheMisses(), updateAgentOffset(), updateRegions(), and updateWaterObjects().
region_list_t LLWorld::mVisibleRegionList [private] |
Definition at line 156 of file llworld.h.
Referenced by removeRegion(), renderPropertyLines(), and updateVisibilities().
region_list_t LLWorld::mCulledRegionList [private] |
Definition at line 157 of file llworld.h.
Referenced by addRegion(), removeRegion(), and updateVisibilities().
const U32 LLWorld::mWidth = 256 [static, private] |
Definition at line 160 of file llworld.h.
Referenced by addRegion(), getRegionWidthInPoints(), and updateVisibilities().
const F32 LLWorld::mScale = 1.f [static, private] |
const F32 LLWorld::mWidthInMeters = mWidth * mScale [static, private] |
Definition at line 165 of file llworld.h.
Referenced by getRegionMinHeight(), and getRegionWidthInMeters().
F32 LLWorld::mLandFarClip [private] |
Definition at line 167 of file llworld.h.
Referenced by getLandFarClip(), setLandFarClip(), and updateVisibilities().
LLPatchVertexArray LLWorld::mLandPatch [private] |
S32 LLWorld::mLastPacketsIn [private] |
S32 LLWorld::mLastPacketsOut [private] |
S32 LLWorld::mLastPacketsLost [private] |
U32 LLWorld::mMinRegionX [private] |
U32 LLWorld::mMaxRegionX [private] |
U32 LLWorld::mMinRegionY [private] |
U32 LLWorld::mMaxRegionY [private] |
std::list<LLVOWater*> LLWorld::mHoleWaterObjects [private] |
LLPointer<LLVOWater> LLWorld::mEdgeWaterObjects[8] [private] |
LLPointer<LLViewerImage> LLWorld::mDefaultWaterTexturep [private] |
U64 LLWorld::mSpaceTimeUSec [private] |