LLWorldMap Class Reference

#include <llworldmap.h>

Inheritance diagram for LLWorldMap:

Inheritance graph
[legend]
Collaboration diagram for LLWorldMap:

Collaboration graph
[legend]

List of all members.

Public Types

typedef void(* url_callback_t )(U64 region_handle, const std::string &url, const LLUUID &snapshot_id, bool teleport)
typedef std::map< U64,
LLSimInfo * > 
sim_info_map_t
typedef std::vector< LLItemInfoitem_info_list_t
typedef std::map< U64,
item_info_list_t
agent_list_map_t

Public Member Functions

 LLWorldMap ()
 ~LLWorldMap ()
void reset ()
void eraseItems ()
void clearImageRefs ()
void clearSimFlags ()
LLSimInfosimInfoFromHandle (const U64 handle)
LLSimInfosimInfoFromPosGlobal (const LLVector3d &pos_global)
LLSimInfosimInfoFromName (const LLString &sim_name)
bool simNameFromPosGlobal (const LLVector3d &pos_global, LLString &outSimName)
void setCurrentLayer (S32 layer, bool request_layer=false)
void sendMapLayerRequest ()
void sendMapBlockRequest (U16 min_x, U16 min_y, U16 max_x, U16 max_y, bool return_nonexistent=false)
void sendNamedRegionRequest (std::string region_name)
void sendNamedRegionRequest (std::string region_name, url_callback_t callback, const std::string &callback_url, bool teleport)
void sendHandleRegionRequest (U64 region_handle, url_callback_t callback, const std::string &callback_url, bool teleport)
void sendItemRequest (U32 type, U64 handle=0)
void dump ()
BOOL extendAABB (U32 x_min, U32 y_min, U32 x_max, U32 y_max)
void updateTelehubCoverage ()
BOOL coveredByTelehub (LLSimInfo *infop)
U32 getWorldWidth () const
U32 getWorldHeight () const

Static Public Member Functions

static void processMapLayerReply (LLMessageSystem *, void **)
static void processMapBlockReply (LLMessageSystem *, void **)
static void processMapItemReply (LLMessageSystem *, void **)

Public Attributes

sim_info_map_t mSimInfoMap
BOOL mIsTrackingUnknownLocation
BOOL mInvalidLocation
BOOL mIsTrackingDoubleClick
BOOL mIsTrackingCommit
LLVector3d mUnknownLocation
bool mRequestLandForSale
item_info_list_t mTelehubs
item_info_list_t mInfohubs
item_info_list_t mPGEvents
item_info_list_t mMatureEvents
item_info_list_t mLandForSale
item_info_list_t mClassifieds
std::map< U64, S32mNumAgents
agent_list_map_t mAgentLocationsMap
std::vector< LLWorldMapLayermMapLayers [MAP_SIM_IMAGE_TYPES]
BOOL mMapLoaded [MAP_SIM_IMAGE_TYPES]
BOOLmMapBlockLoaded [MAP_SIM_IMAGE_TYPES]
S32 mCurrentMap
U32 mMinX
U32 mMaxX
U32 mMinY
U32 mMaxY
U8mNeighborMap
U8mTelehubCoverageMap
S32 mNeighborMapWidth
S32 mNeighborMapHeight

Private Attributes

LLTimer mRequestTimer
std::string mSLURLRegionName
U64 mSLURLRegionHandle
std::string mSLURL
url_callback_t mSLURLCallback
bool mSLURLTeleport


Detailed Description

Definition at line 113 of file llworldmap.h.


Member Typedef Documentation

typedef void(* LLWorldMap::url_callback_t)(U64 region_handle, const std::string &url, const LLUUID &snapshot_id, bool teleport)

Definition at line 181 of file llworldmap.h.

Definition at line 189 of file llworldmap.h.

Definition at line 199 of file llworldmap.h.


Constructor & Destructor Documentation

LLWorldMap::LLWorldMap (  ) 

Definition at line 92 of file llworldmap.cpp.

References FALSE, MAP_BLOCK_RES, MAP_SIM_IMAGE_TYPES, mMapBlockLoaded, mMapLoaded, and S32.

LLWorldMap::~LLWorldMap (  ) 

Definition at line 126 of file llworldmap.cpp.

References MAP_SIM_IMAGE_TYPES, mMapBlockLoaded, reset(), and S32.

Here is the call graph for this function:


Member Function Documentation

void LLWorldMap::reset (  ) 

Definition at line 136 of file llworldmap.cpp.

References clearSimFlags(), eraseItems(), FALSE, MAP_SIM_IMAGE_TYPES, mMapLoaded, mMaxX, mMaxY, mMinX, mMinY, mNeighborMap, mNeighborMapHeight, mNeighborMapWidth, mSimInfoMap, mTelehubCoverageMap, NULL, S32, U32_MAX, and U32_MIN.

Referenced by LLAppViewer::cleanup(), set_god_level(), and ~LLWorldMap().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLWorldMap::eraseItems (  ) 

Definition at line 165 of file llworldmap.cpp.

References LLTimer::getElapsedTimeF32(), mClassifieds, mInfohubs, mLandForSale, mMatureEvents, mPGEvents, mRequestTimer, mTelehubs, REQUEST_ITEMS_TIMER, and LLTimer::reset().

Referenced by LLFloaterWorldMap::reloadIcons(), reset(), and LLFloaterWorldMap::show().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLWorldMap::clearImageRefs (  ) 

Definition at line 183 of file llworldmap.cpp.

References LLSimInfo::mCurrentImage, LLSimInfo::mOverlayImage, mSimInfoMap, and NULL.

Referenced by setCurrentLayer(), and LLFloaterWorldMap::setVisible().

Here is the caller graph for this function:

void LLWorldMap::clearSimFlags (  ) 

Definition at line 202 of file llworldmap.cpp.

References FALSE, MAP_BLOCK_RES, MAP_SIM_IMAGE_TYPES, mMapBlockLoaded, and S32.

Referenced by reset(), setCurrentLayer(), and LLFloaterWorldMap::show().

Here is the caller graph for this function:

LLSimInfo * LLWorldMap::simInfoFromHandle ( const U64  handle  ) 

Definition at line 219 of file llworldmap.cpp.

References mSimInfoMap, and NULL.

Referenced by LLWorldMapView::checkItemHit(), LLWorldMapView::drawAgents(), processMapItemReply(), and simInfoFromPosGlobal().

Here is the caller graph for this function:

LLSimInfo * LLWorldMap::simInfoFromPosGlobal ( const LLVector3d pos_global  ) 

Definition at line 213 of file llworldmap.cpp.

References indra::ipc::xml_rpc::handle(), simInfoFromHandle(), and to_region_handle().

Referenced by LLWorldMapView::handleDoubleClick(), LLWorldMapView::handleToolTip(), LLAgent::teleportViaLocation(), and LLFloaterWorldMap::trackLocation().

Here is the call graph for this function:

Here is the caller graph for this function:

LLSimInfo * LLWorldMap::simInfoFromName ( const LLString sim_name  ) 

Definition at line 234 of file llworldmap.cpp.

References LLStringBase< char >::compareInsensitive(), LLSimInfo::mName, mSimInfoMap, and NULL.

Referenced by LLFloaterWorldMap::trackURL().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLWorldMap::simNameFromPosGlobal ( const LLVector3d pos_global,
LLString outSimName 
)

Definition at line 253 of file llworldmap.cpp.

References indra::ipc::xml_rpc::handle(), LLSimInfo::mName, mSimInfoMap, and to_region_handle().

Referenced by LLFloaterWorldMap::trackLocation(), and LLFloaterWorldMap::updateLocation().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLWorldMap::setCurrentLayer ( S32  layer,
bool  request_layer = false 
)

void LLWorldMap::sendMapLayerRequest (  ) 

void LLWorldMap::sendMapBlockRequest ( U16  min_x,
U16  min_y,
U16  max_x,
U16  max_y,
bool  return_nonexistent = false 
)

void LLWorldMap::sendNamedRegionRequest ( std::string  region_name  ) 

void LLWorldMap::sendNamedRegionRequest ( std::string  region_name,
url_callback_t  callback,
const std::string &  callback_url,
bool  teleport 
)

Definition at line 400 of file llworldmap.cpp.

References mSLURL, mSLURLCallback, mSLURLRegionHandle, mSLURLRegionName, mSLURLTeleport, and sendNamedRegionRequest().

Here is the call graph for this function:

void LLWorldMap::sendHandleRegionRequest ( U64  region_handle,
url_callback_t  callback,
const std::string &  callback_url,
bool  teleport 
)

Definition at line 414 of file llworldmap.cpp.

References from_region_handle(), mSLURL, mSLURLCallback, mSLURLRegionHandle, mSLURLRegionName, mSLURLTeleport, REGION_WIDTH_UNITS, and sendMapBlockRequest().

Referenced by LLURLDispatcherImpl::regionNameCallback().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLWorldMap::sendItemRequest ( U32  type,
U64  handle = 0 
)

void LLWorldMap::processMapLayerReply ( LLMessageSystem msg,
void **   
) [static]

void LLWorldMap::processMapBlockReply ( LLMessageSystem msg,
void **   
) [static]

void LLWorldMap::processMapItemReply ( LLMessageSystem msg,
void **   
) [static]

void LLWorldMap::dump (  ) 

BOOL LLWorldMap::extendAABB ( U32  x_min,
U32  y_min,
U32  x_max,
U32  y_max 
)

Definition at line 842 of file llworldmap.cpp.

References FALSE, lldebugs, llendl, mMaxX, mMaxY, mMinX, mMinY, and TRUE.

Referenced by processMapBlockReply(), processMapLayerReply(), and LLMapLayerResponder::result().

Here is the caller graph for this function:

void LLWorldMap::updateTelehubCoverage (  ) 

Definition at line 898 of file llworldmap.cpp.

BOOL LLWorldMap::coveredByTelehub ( LLSimInfo infop  ) 

Definition at line 882 of file llworldmap.cpp.

References FALSE.

U32 LLWorldMap::getWorldWidth (  )  const

Definition at line 871 of file llworldmap.cpp.

References mMaxX, and mMinX.

Referenced by LLFloaterWorldMap::adjustZoomSliderBounds().

Here is the caller graph for this function:

U32 LLWorldMap::getWorldHeight (  )  const

Definition at line 877 of file llworldmap.cpp.

References mMaxY, and mMinY.

Referenced by LLFloaterWorldMap::adjustZoomSliderBounds().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 187 of file llworldmap.h.

Referenced by sendMapBlockRequest(), and sendMapLayerRequest().

Definition at line 190 of file llworldmap.h.

Referenced by eraseItems(), processMapItemReply(), and setCurrentLayer().

Definition at line 191 of file llworldmap.h.

Referenced by eraseItems(), processMapItemReply(), and setCurrentLayer().

Definition at line 197 of file llworldmap.h.

Referenced by LLWorldMapView::drawAgents(), and LLWorldMapView::handleToolTip().

Definition at line 200 of file llworldmap.h.

Referenced by LLWorldMapView::drawAgents(), and processMapItemReply().

std::vector<LLWorldMapLayer> LLWorldMap::mMapLayers[MAP_SIM_IMAGE_TYPES]

BOOL LLWorldMap::mMapLoaded[MAP_SIM_IMAGE_TYPES]

BOOL* LLWorldMap::mMapBlockLoaded[MAP_SIM_IMAGE_TYPES]

Definition at line 204 of file llworldmap.h.

Referenced by clearSimFlags(), LLWorldMap(), LLWorldMapView::updateBlock(), and ~LLWorldMap().

Definition at line 208 of file llworldmap.h.

Referenced by extendAABB(), getWorldWidth(), and reset().

Definition at line 209 of file llworldmap.h.

Referenced by extendAABB(), getWorldWidth(), and reset().

Definition at line 210 of file llworldmap.h.

Referenced by extendAABB(), getWorldHeight(), and reset().

Definition at line 211 of file llworldmap.h.

Referenced by extendAABB(), getWorldHeight(), and reset().

Definition at line 213 of file llworldmap.h.

Referenced by reset().

Definition at line 214 of file llworldmap.h.

Referenced by reset().

Definition at line 215 of file llworldmap.h.

Referenced by reset().

Definition at line 216 of file llworldmap.h.

Referenced by reset().

Definition at line 219 of file llworldmap.h.

Referenced by eraseItems().

std::string LLWorldMap::mSLURLRegionName [private]

std::string LLWorldMap::mSLURL [private]


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

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