LLWorld Class Reference

#include <llworld.h>

Inheritance diagram for LLWorld:

Inheritance graph
[legend]
Collaboration diagram for LLWorld:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::list
< LLViewerRegion * > 
region_list_t

Public Member Functions

 LLWorld ()
void destroyClass ()
LLViewerRegionaddRegion (const U64 &region_handle, const LLHost &host)
void removeRegion (const LLHost &host)
void disconnectRegions ()
LLViewerRegiongetRegion (const LLHost &host)
LLViewerRegiongetRegionFromPosGlobal (const LLVector3d &pos)
LLViewerRegiongetRegionFromPosAgent (const LLVector3 &pos)
LLViewerRegiongetRegionFromHandle (const U64 &handle)
BOOL positionRegionValidGlobal (const LLVector3d &pos)
LLVector3d clipToVisibleRegions (const LLVector3d &start_pos, const LLVector3d &end_pos)
void updateAgentOffset (const LLVector3d &offset)
LLViewerRegionresolveRegionGlobal (LLVector3 &localpos, const LLVector3d &position)
LLViewerRegionresolveRegionAgent (LLVector3 &localpos, const LLVector3 &position)
F32 resolveLandHeightGlobal (const LLVector3d &position)
F32 resolveLandHeightAgent (const LLVector3 &position)
F32 getMinAllowedZ (LLViewerObject *object)
F32 resolveStepHeightGlobal (const LLVOAvatar *avatarp, const LLVector3d &point_a, const LLVector3d &point_b, LLVector3d &intersection, LLVector3 &intersection_normal, LLViewerObject **viewerObjectPtr=NULL)
LLSurfacePatchresolveLandPatchGlobal (const LLVector3d &position)
LLVector3 resolveLandNormalGlobal (const LLVector3d &position)
U32 getRegionWidthInPoints () const
F32 getRegionScale () const
F32 getRegionWidthInMeters () const
F32 getRegionMinHeight () const
F32 getRegionMaxHeight () const
void updateRegions (F32 max_update_time)
void updateVisibilities ()
void updateParticles ()
void updateClouds (const F32 dt)
LLCloudGroupfindCloudGroup (const LLCloudPuff &puff)
void renderPropertyLines ()
void resetStats ()
void updateNetStats ()
void printPacketsLost ()
void requestCacheMisses ()
F32 getLandFarClip () const
void setLandFarClip (const F32 far_clip)
LLViewerImagegetDefaultWaterTexture ()
void updateWaterObjects ()
void shiftRegions (const LLVector3 &offset)
void setSpaceTimeUSec (const U64 space_time_usec)
U64 getSpaceTimeUSec () const
void getInfo (LLSD &info)
region_list_tgetRegionList ()

Static Public Member Functions

static void processCoarseUpdate (LLMessageSystem *msg, void **user_data)

Public Attributes

region_list_t mActiveRegionList

Private Attributes

region_list_t mRegionList
region_list_t mVisibleRegionList
region_list_t mCulledRegionList
F32 mLandFarClip
LLPatchVertexArray mLandPatch
S32 mLastPacketsIn
S32 mLastPacketsOut
S32 mLastPacketsLost
U32 mMinRegionX
U32 mMaxRegionX
U32 mMinRegionY
U32 mMaxRegionY
std::list< LLVOWater * > mHoleWaterObjects
LLPointer< LLVOWatermEdgeWaterObjects [8]
LLPointer< LLViewerImagemDefaultWaterTexturep
U64 mSpaceTimeUSec

Static Private Attributes

static const U32 mWidth = 256
static const F32 mScale = 1.f
static const F32 mWidthInMeters = mWidth * mScale


Detailed Description

Definition at line 62 of file llworld.h.


Member Typedef Documentation

Definition at line 148 of file llworld.h.


Constructor & Destructor Documentation

LLWorld::LLWorld (  ) 

Definition at line 86 of file llworld.cpp.

References FALSE, gNoRender, i, mDefaultWaterTexturep, mEdgeWaterObjects, LLColor4U::mV, NULL, S32, and TRUE.


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

LLViewerRegion * LLWorld::addRegion ( const U64 region_handle,
const LLHost host 
)

void LLWorld::removeRegion ( const LLHost host  ) 

void LLWorld::disconnectRegions (  ) 

LLViewerRegion * LLWorld::getRegion ( const LLHost host  ) 

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLWorld::positionRegionValidGlobal ( const LLVector3d pos  ) 

Definition at line 406 of file llworld.cpp.

References FALSE, mRegionList, LLViewerRegion::pointInRegionGlobal(), and TRUE.

Referenced by clipToVisibleRegions().

Here is the call graph for this function:

Here is the caller graph for this function:

LLVector3d LLWorld::clipToVisibleRegions ( const LLVector3d start_pos,
const LLVector3d end_pos 
)

void LLWorld::updateAgentOffset ( const LLVector3d offset  ) 

Definition at line 393 of file llworld.cpp.

References mRegionList.

Referenced by LLAgent::setRegion().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

F32 LLWorld::resolveLandHeightGlobal ( const LLVector3d position  ) 

F32 LLWorld::resolveLandHeightAgent ( const LLVector3 position  ) 

Definition at line 459 of file llworld.cpp.

References gAgent, LLAgent::getPosGlobalFromAgent(), and resolveLandHeightGlobal().

Referenced by LLViewerParcelMgr::renderRect().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLWorld::resolveStepHeightGlobal ( const LLVOAvatar avatarp,
const LLVector3d point_a,
const LLVector3d point_b,
LLVector3d intersection,
LLVector3 intersection_normal,
LLViewerObject **  viewerObjectPtr = NULL 
)

LLSurfacePatch * LLWorld::resolveLandPatchGlobal ( const LLVector3d position  ) 

Definition at line 548 of file llworld.cpp.

References LLViewerRegion::getLand(), getRegionFromPosGlobal(), NULL, and LLSurface::resolvePatchGlobal().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

U32 LLWorld::getRegionWidthInPoints (  )  const [inline]

Definition at line 110 of file llworld.h.

References mWidth.

F32 LLWorld::getRegionScale (  )  const [inline]

Definition at line 111 of file llworld.h.

References mScale.

F32 LLWorld::getRegionWidthInMeters (  )  const [inline]

F32 LLWorld::getRegionMinHeight (  )  const [inline]

Definition at line 115 of file llworld.h.

References mWidthInMeters.

Referenced by LLViewerObject::processUpdateMessage().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLWorld::updateVisibilities (  ) 

void LLWorld::updateParticles (  ) 

Definition at line 648 of file llworld.cpp.

References LLSingleton< LLViewerPartSim >::getInstance(), and LLViewerPartSim::updateSimulation().

Referenced by LLAppViewer::idle().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLWorld::renderPropertyLines (  ) 

Definition at line 711 of file llworld.cpp.

References mVisibleRegionList, LLViewerRegion::renderPropertyLines(), and S32.

Referenced by render_hud_elements().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLWorld::resetStats (  ) 

void LLWorld::updateNetStats (  ) 

void LLWorld::printPacketsLost (  ) 

void LLWorld::requestCacheMisses (  ) 

Definition at line 976 of file llworld.cpp.

References mRegionList, and LLViewerRegion::requestCacheMisses().

Referenced by update_statistics().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLWorld::getLandFarClip (  )  const

Definition at line 797 of file llworld.cpp.

References mLandFarClip.

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().

Here is the caller graph for this function:

LLViewerImage * LLWorld::getDefaultWaterTexture (  ) 

Definition at line 961 of file llworld.cpp.

References mDefaultWaterTexturep.

void LLWorld::updateWaterObjects (  ) 

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

U64 LLWorld::getSpaceTimeUSec (  )  const

Definition at line 971 of file llworld.cpp.

References mSpaceTimeUSec.

void LLWorld::getInfo ( LLSD info  ) 

Definition at line 986 of file llworld.cpp.

References LLSD::append(), LLViewerRegion::getInfo(), and mRegionList.

Referenced by LLAppViewer::handleViewerCrash().

Here is the call graph for this function:

Here is the caller graph for this function:

region_list_t& LLWorld::getRegionList (  )  [inline]


Member Data Documentation

Definition at line 156 of file llworld.h.

Referenced by removeRegion(), renderPropertyLines(), and updateVisibilities().

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]

Definition at line 163 of file llworld.h.

Referenced by getRegionScale().

const F32 LLWorld::mWidthInMeters = mWidth * mScale [static, private]

Definition at line 165 of file llworld.h.

Referenced by getRegionMinHeight(), and getRegionWidthInMeters().

Definition at line 167 of file llworld.h.

Referenced by getLandFarClip(), setLandFarClip(), and updateVisibilities().

Definition at line 168 of file llworld.h.

Definition at line 169 of file llworld.h.

Referenced by updateNetStats().

Definition at line 170 of file llworld.h.

Referenced by updateNetStats().

Definition at line 171 of file llworld.h.

Referenced by updateNetStats().

Definition at line 179 of file llworld.h.

Definition at line 180 of file llworld.h.

Definition at line 181 of file llworld.h.

Definition at line 182 of file llworld.h.

std::list<LLVOWater*> LLWorld::mHoleWaterObjects [private]

Definition at line 184 of file llworld.h.

Referenced by updateWaterObjects().

Definition at line 185 of file llworld.h.

Referenced by LLWorld(), and updateWaterObjects().

Definition at line 187 of file llworld.h.

Referenced by getDefaultWaterTexture(), and LLWorld().

Definition at line 188 of file llworld.h.

Referenced by getSpaceTimeUSec(), and setSpaceTimeUSec().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:40:18 2008 for SecondLife by  doxygen 1.5.5