#include <llworldmap.h>
Definition at line 113 of file llworldmap.h.
typedef void(* LLWorldMap::url_callback_t)(U64 region_handle, const std::string &url, const LLUUID &snapshot_id, bool teleport) |
typedef std::map<U64, LLSimInfo*> LLWorldMap::sim_info_map_t |
Definition at line 181 of file llworldmap.h.
typedef std::vector<LLItemInfo> LLWorldMap::item_info_list_t |
Definition at line 189 of file llworldmap.h.
typedef std::map<U64, item_info_list_t> LLWorldMap::agent_list_map_t |
Definition at line 199 of file llworldmap.h.
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.
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().
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().
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().
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().
Definition at line 219 of file llworldmap.cpp.
References mSimInfoMap, and NULL.
Referenced by LLWorldMapView::checkItemHit(), LLWorldMapView::drawAgents(), processMapItemReply(), and simInfoFromPosGlobal().
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().
Definition at line 234 of file llworldmap.cpp.
References LLStringBase< char >::compareInsensitive(), LLSimInfo::mName, mSimInfoMap, and NULL.
Referenced by LLFloaterWorldMap::trackURL().
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().
void LLWorldMap::setCurrentLayer | ( | S32 | layer, | |
bool | request_layer = false | |||
) |
Definition at line 274 of file llworldmap.cpp.
References clearImageRefs(), clearSimFlags(), MAP_ITEM_CLASSIFIED, MAP_ITEM_LAND_FOR_SALE, MAP_ITEM_MATURE_EVENT, MAP_ITEM_PG_EVENT, MAP_ITEM_TELEHUB, mClassifieds, mCurrentMap, mInfohubs, mLandForSale, mMapLoaded, mMatureEvents, mPGEvents, mTelehubs, sendItemRequest(), and sendMapLayerRequest().
Referenced by LLFloaterWorldMap::onCommitBackground(), set_god_level(), and LLFloaterWorldMap::show().
void LLWorldMap::sendMapLayerRequest | ( | ) |
Definition at line 337 of file llworldmap.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_EstateID, _PREHASH_Flags, _PREHASH_Godlike, _PREHASH_MapLayerRequest, _PREHASH_SessionID, LLMessageSystem::addBOOLFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), FALSE, gAgent, LLViewerRegion::getCapability(), LLAgent::getID(), LLAgent::getRegion(), LLAgent::getSessionID(), gMessageSystem, LLAgent::isGodlike(), llendl, llinfos, mCurrentMap, mRequestLandForSale, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLHTTPClient::post(), S32, and LLAgent::sendReliableMessage().
Referenced by LLFloaterWorldMap::reloadIcons(), and setCurrentLayer().
void LLWorldMap::sendMapBlockRequest | ( | U16 | min_x, | |
U16 | min_y, | |||
U16 | max_x, | |||
U16 | max_y, | |||
bool | return_nonexistent = false | |||
) |
Definition at line 435 of file llworldmap.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_EstateID, _PREHASH_Flags, _PREHASH_Godlike, _PREHASH_MapBlockRequest, _PREHASH_MaxX, _PREHASH_MaxY, _PREHASH_MinX, _PREHASH_MinY, _PREHASH_PositionData, _PREHASH_SessionID, LLMessageSystem::addBOOLFast(), LLMessageSystem::addU16Fast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), FALSE, gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, mCurrentMap, mRequestLandForSale, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), S32, and LLAgent::sendReliableMessage().
Referenced by sendHandleRegionRequest(), LLFloaterWorldMap::trackLocation(), and LLWorldMapView::updateBlock().
void LLWorldMap::sendNamedRegionRequest | ( | std::string | region_name | ) |
Definition at line 382 of file llworldmap.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_EstateID, _PREHASH_Flags, _PREHASH_Godlike, _PREHASH_MapNameRequest, _PREHASH_Name, _PREHASH_NameData, _PREHASH_SessionID, LLMessageSystem::addBOOLFast(), LLMessageSystem::addStringFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), FALSE, gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, mCurrentMap, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), S32, and LLAgent::sendReliableMessage().
Referenced by LLURLDispatcherImpl::dispatchRegion(), LLTeleportHandler::handle(), LLFloaterWorldMap::onLocationCommit(), sendNamedRegionRequest(), and LLFloaterWorldMap::trackURL().
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().
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().
Definition at line 316 of file llworldmap.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_EstateID, _PREHASH_Flags, _PREHASH_Godlike, _PREHASH_ItemType, _PREHASH_MapItemRequest, _PREHASH_RegionHandle, _PREHASH_RequestData, _PREHASH_SessionID, LLMessageSystem::addBOOLFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addU64Fast(), LLMessageSystem::addUUIDFast(), FALSE, gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, mCurrentMap, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), S32, and LLAgent::sendReliableMessage().
Referenced by LLWorldMapView::draw(), and setCurrentLayer().
void LLWorldMap::processMapLayerReply | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static] |
Definition at line 474 of file llworldmap.cpp.
References _PREHASH_AgentData, _PREHASH_Bottom, _PREHASH_Flags, _PREHASH_ImageID, _PREHASH_LayerData, _PREHASH_Left, _PREHASH_Right, _PREHASH_Top, LLFloaterWorldMap::adjustZoomSliderBounds(), extendAABB(), FALSE, LLRectBase< Type >::getHeight(), LLViewerImageList::getImage(), LLSingleton< LLWorldMap >::getInstance(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getU32Fast(), LLMessageSystem::getUUIDFast(), LLRectBase< Type >::getWidth(), gFloaterWorldMap, gImageList, LLWorldMapLayer::LayerDefined, LLWorldMapLayer::LayerExtents, LLWorldMapLayer::LayerImage, LLWorldMapLayer::LayerImageID, llendl, llinfos, llwarns, LLRectBase< Type >::mBottom, mCurrentMap, MIPMAP_TRUE, LLRectBase< Type >::mLeft, mMapLayers, mMapLoaded, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, REGION_WIDTH_UNITS, S32, and TRUE.
Referenced by register_viewer_callbacks().
void LLWorldMap::processMapBlockReply | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static] |
Definition at line 529 of file llworldmap.cpp.
References _PREHASH_Access, _PREHASH_AgentData, _PREHASH_Agents, _PREHASH_Data, _PREHASH_Flags, _PREHASH_MapImageID, _PREHASH_Name, _PREHASH_RegionFlags, _PREHASH_WaterHeight, _PREHASH_X, _PREHASH_Y, LLFloaterWorldMap::adjustZoomSliderBounds(), extendAABB(), FALSE, gAgent, LLViewerImageList::getImage(), LLSingleton< LLWorldMap >::getInstance(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getStringFast(), LLTracker::getTrackedPositionGlobal(), LLMessageSystem::getU16Fast(), LLMessageSystem::getU32Fast(), LLMessageSystem::getU8Fast(), LLMessageSystem::getUUIDFast(), gFloaterWorldMap, gImageList, indra::ipc::xml_rpc::handle(), llendl, llwarns, LLSimInfo::mAccess, MAP_SIM_IMAGE_TYPES, MAX_STRING, LLSimInfo::mCurrentImage, mCurrentMap, LLVector3d::mdV, LLSimInfo::mHandle, mInvalidLocation, MIPMAP_TRUE, mIsTrackingDoubleClick, mIsTrackingUnknownLocation, LLSimInfo::mMapImageID, LLSimInfo::mName, LLSimInfo::mOverlayImage, LLSimInfo::mRegionFlags, mSimInfoMap, mSLURL, mSLURLCallback, mSLURLRegionHandle, mSLURLRegionName, mSLURLTeleport, mUnknownLocation, LLSimInfo::mWaterHeight, LLUUID::notNull(), NULL, REGION_WIDTH_UNITS, S32, SIM_ACCESS_DOWN, LLAgent::teleportViaLocation(), to_region_handle(), LLFloaterWorldMap::trackLocation(), TRUE, and LLFloaterWorldMap::updateSims().
Referenced by register_viewer_callbacks().
void LLWorldMap::processMapItemReply | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static] |
Definition at line 672 of file llworldmap.cpp.
References _PREHASH_Data, _PREHASH_Extra, _PREHASH_Extra2, _PREHASH_ID, _PREHASH_ItemType, _PREHASH_Name, _PREHASH_RequestData, _PREHASH_X, _PREHASH_Y, LLSingleton< LLWorldMap >::getInstance(), LLMessageSystem::getNumberOfBlocks(), LLMessageSystem::getS32Fast(), LLMessageSystem::getStringFast(), LLMessageSystem::getU32Fast(), LLMessageSystem::getUUIDFast(), gPacificDaylightTime, llendl, llformat(), llinfos, mAgentLocationsMap, MAP_ITEM_AGENT_LOCATIONS, MAP_ITEM_CLASSIFIED, MAP_ITEM_LAND_FOR_SALE, MAP_ITEM_MATURE_EVENT, MAP_ITEM_PG_EVENT, MAP_ITEM_TELEHUB, MAX_STRING, mClassifieds, LLVector3d::mdV, LLItemInfo::mExtra, LLItemInfo::mExtra2, mInfohubs, mLandForSale, mMatureEvents, LLItemInfo::mName, mPGEvents, LLItemInfo::mPosGlobal, LLItemInfo::mRegionHandle, mTelehubs, LLItemInfo::mToolTip, REGION_WIDTH_UNITS, S32, simInfoFromHandle(), tut::tm(), utc_to_pacific_time(), and VZ.
Referenced by register_viewer_callbacks().
void LLWorldMap::dump | ( | ) |
Definition at line 810 of file llworldmap.cpp.
References from_region_handle(), indra::ipc::xml_rpc::handle(), llendl, llinfos, LLSimInfo::mAccess, LLSimInfo::mCurrentImage, LLSimInfo::mName, LLSimInfo::mRegionFlags, mSimInfoMap, LLSimInfo::mWaterHeight, and S32.
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().
void LLWorldMap::updateTelehubCoverage | ( | ) |
Definition at line 898 of file llworldmap.cpp.
U32 LLWorldMap::getWorldWidth | ( | ) | const |
Definition at line 871 of file llworldmap.cpp.
Referenced by LLFloaterWorldMap::adjustZoomSliderBounds().
U32 LLWorldMap::getWorldHeight | ( | ) | const |
Definition at line 877 of file llworldmap.cpp.
Referenced by LLFloaterWorldMap::adjustZoomSliderBounds().
Definition at line 182 of file llworldmap.h.
Referenced by clearImageRefs(), LLWorldMapView::draw(), dump(), LLFloaterWorldMap::onCommitSearchResult(), processMapBlockReply(), reset(), LLMapLayerResponder::result(), LLWorldMapView::setVisible(), simInfoFromHandle(), simInfoFromName(), simNameFromPosGlobal(), and LLFloaterWorldMap::updateSims().
Definition at line 184 of file llworldmap.h.
Referenced by LLWorldMapView::handleClick(), LLFloaterWorldMap::onClearBtn(), processMapBlockReply(), LLMapLayerResponder::result(), and LLFloaterWorldMap::trackLocation().
Definition at line 184 of file llworldmap.h.
Referenced by processMapBlockReply(), LLMapLayerResponder::result(), and LLFloaterWorldMap::trackLocation().
Definition at line 184 of file llworldmap.h.
Referenced by LLWorldMapView::handleClick(), LLWorldMapView::handleDoubleClick(), processMapBlockReply(), LLMapLayerResponder::result(), and LLFloaterWorldMap::trackLocation().
Definition at line 184 of file llworldmap.h.
Referenced by LLFloaterWorldMap::clearLocationSelection(), LLWorldMapView::handleClick(), LLFloaterWorldMap::onLocationCommit(), LLFloaterWorldMap::trackLocation(), LLFloaterWorldMap::trackURL(), and LLFloaterWorldMap::updateSims().
Definition at line 185 of file llworldmap.h.
Referenced by LLFloaterWorldMap::centerOnTarget(), processMapBlockReply(), LLMapLayerResponder::result(), and LLFloaterWorldMap::trackLocation().
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 192 of file llworldmap.h.
Referenced by LLWorldMapView::drawEvents(), eraseItems(), LLWorldMapView::handleClick(), processMapItemReply(), and setCurrentLayer().
Definition at line 193 of file llworldmap.h.
Referenced by LLWorldMapView::drawEvents(), eraseItems(), LLWorldMapView::handleClick(), processMapItemReply(), and setCurrentLayer().
Definition at line 194 of file llworldmap.h.
Referenced by eraseItems(), LLWorldMapView::handleClick(), processMapItemReply(), and setCurrentLayer().
Definition at line 195 of file llworldmap.h.
Referenced by eraseItems(), LLWorldMapView::handleClick(), processMapItemReply(), and setCurrentLayer().
std::map<U64,S32> LLWorldMap::mNumAgents |
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] |
Definition at line 202 of file llworldmap.h.
Referenced by LLWorldMapView::draw(), processMapLayerReply(), LLMapLayerResponder::result(), and LLWorldMapView::setVisible().
BOOL LLWorldMap::mMapLoaded[MAP_SIM_IMAGE_TYPES] |
Definition at line 203 of file llworldmap.h.
Referenced by LLWorldMap(), processMapLayerReply(), reset(), LLMapLayerResponder::result(), and setCurrentLayer().
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 205 of file llworldmap.h.
Referenced by LLWorldMapView::draw(), processMapBlockReply(), processMapLayerReply(), LLMapLayerResponder::result(), sendItemRequest(), sendMapBlockRequest(), sendMapLayerRequest(), sendNamedRegionRequest(), setCurrentLayer(), and LLWorldMapView::updateBlock().
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().
LLTimer LLWorldMap::mRequestTimer [private] |
std::string LLWorldMap::mSLURLRegionName [private] |
Definition at line 222 of file llworldmap.h.
Referenced by processMapBlockReply(), sendHandleRegionRequest(), and sendNamedRegionRequest().
U64 LLWorldMap::mSLURLRegionHandle [private] |
Definition at line 223 of file llworldmap.h.
Referenced by processMapBlockReply(), sendHandleRegionRequest(), and sendNamedRegionRequest().
std::string LLWorldMap::mSLURL [private] |
Definition at line 224 of file llworldmap.h.
Referenced by processMapBlockReply(), sendHandleRegionRequest(), and sendNamedRegionRequest().
url_callback_t LLWorldMap::mSLURLCallback [private] |
Definition at line 225 of file llworldmap.h.
Referenced by processMapBlockReply(), sendHandleRegionRequest(), and sendNamedRegionRequest().
bool LLWorldMap::mSLURLTeleport [private] |
Definition at line 226 of file llworldmap.h.
Referenced by processMapBlockReply(), sendHandleRegionRequest(), and sendNamedRegionRequest().