llregionhandle.h File Reference

Routines for converting positions to/from region handles. More...

#include "indra_constants.h"
#include "v3math.h"
#include "v3dmath.h"

Include dependency graph for llregionhandle.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

U64 to_region_handle (const U32 x_origin, const U32 y_origin)
U64 to_region_handle (const LLVector3d &pos_global)
U64 to_region_handle_global (const F32 x_global, const F32 y_global)
BOOL to_region_handle (const F32 x_pos, const F32 y_pos, U64 *region_handle)
void from_region_handle (const U64 &region_handle, F32 *x_pos, F32 *y_pos)
void from_region_handle (const U64 &region_handle, U32 *x_pos, U32 *y_pos)
LLVector3d from_region_handle (const U64 &region_handle)
U64 grid_to_region_handle (U32 grid_x, U32 grid_y)
void grid_from_region_handle (const U64 &region_handle, U32 *grid_x, U32 *grid_y)


Detailed Description

Routines for converting positions to/from region handles.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llregionhandle.h.


Function Documentation

LLVector3d from_region_handle ( const U64 region_handle  )  [inline]

Definition at line 111 of file llregionhandle.h.

References f.

void from_region_handle ( const U64 region_handle,
U32 x_pos,
U32 y_pos 
) [inline]

Definition at line 104 of file llregionhandle.h.

void from_region_handle ( const U64 region_handle,
F32 x_pos,
F32 y_pos 
) [inline]

Definition at line 97 of file llregionhandle.h.

Referenced by LLWorld::addRegion(), LLFloaterURLDisplay::displayParcelInfo(), LLWorldMapView::draw(), LLWorldMapView::drawAgents(), LLWorldMap::dump(), LLVLComposition::generateHeights(), LLSurface::generateWaterTexture(), LLSimInfo::getGlobalPos(), LLLandmark::getGlobalPos(), LLAgent::getHomePosGlobal(), LLViewerRegion::getInfoString(), grid_from_region_handle(), idle_startup(), LLSurface::initTextures(), LLViewerRegion::LLViewerRegion(), LLFloaterWorldMap::onCommitSearchResult(), process_agent_movement_complete(), process_sound_trigger(), LLViewerObject::processUpdateMessage(), LLURLDispatcherImpl::regionHandleCallback(), LLWorld::removeRegion(), LLAgent::teleportViaLocation(), and LLWorld::updateWaterObjects().

void grid_from_region_handle ( const U64 region_handle,
U32 grid_x,
U32 grid_y 
) [inline]

Definition at line 124 of file llregionhandle.h.

References from_region_handle(), and REGION_WIDTH_UNITS.

Referenced by LLLandmark::processRegionIDAndHandle().

U64 grid_to_region_handle ( U32  grid_x,
U32  grid_y 
) [inline]

Definition at line 118 of file llregionhandle.h.

References REGION_WIDTH_UNITS, and to_region_handle().

BOOL to_region_handle ( const F32  x_pos,
const F32  y_pos,
U64 region_handle 
) [inline]

Definition at line 71 of file llregionhandle.h.

References f, FALSE, llround(), to_region_handle(), and TRUE.

U64 to_region_handle ( const LLVector3d pos_global  )  [inline]

Definition at line 47 of file llregionhandle.h.

References LLVector3d::mdV, to_region_handle(), VX, and VY.

U64 to_region_handle ( const U32  x_origin,
const U32  y_origin 
) [inline]

Definition at line 39 of file llregionhandle.h.

Referenced by LLWorld::addRegion(), LLPanelPlace::displayParcelInfo(), grid_to_region_handle(), idle_startup(), LLItemInfo::LLItemInfo(), LLWorldMap::processMapBlockReply(), LLMapLayerResponder::result(), LLWorldMap::simInfoFromPosGlobal(), LLWorldMap::simNameFromPosGlobal(), to_region_handle(), and LLWorld::updateWaterObjects().

U64 to_region_handle_global ( const F32  x_global,
const F32  y_global 
) [inline]

Definition at line 58 of file llregionhandle.h.

References REGION_WIDTH_U32.

Referenced by LLAgent::teleportViaLocation().


Generated on Thu Jul 1 06:10:38 2010 for Second Life Viewer by  doxygen 1.4.7