#include <llworldmapview.h>
Public Types | |
typedef std::vector< U64 > | handle_list_t |
Public Member Functions | |
LLWorldMapView (const std::string &name, const LLRect &rect) | |
virtual | ~LLWorldMapView () |
virtual void | reshape (S32 width, S32 height, BOOL called_from_parent=TRUE) |
virtual void | setVisible (BOOL visible) |
virtual BOOL | handleMouseDown (S32 x, S32 y, MASK mask) |
virtual BOOL | handleMouseUp (S32 x, S32 y, MASK mask) |
virtual BOOL | handleDoubleClick (S32 x, S32 y, MASK mask) |
virtual BOOL | handleHover (S32 x, S32 y, MASK mask) |
virtual BOOL | handleToolTip (S32 x, S32 y, LLString &msg, LLRect *sticky_rect_screen) |
bool | checkItemHit (S32 x, S32 y, LLItemInfo &item, LLUUID *id, bool track) |
void | handleClick (S32 x, S32 y, MASK mask, S32 *hit_type, LLUUID *id) |
LLVector3 | globalPosToView (const LLVector3d &global_pos) |
LLVector3d | viewPosToGlobal (S32 x, S32 y) |
virtual void | draw () |
void | drawGenericItems (const LLWorldMap::item_info_list_t &items, LLUIImagePtr image) |
void | drawGenericItem (const LLItemInfo &item, LLUIImagePtr image) |
void | drawImage (const LLVector3d &global_pos, LLUIImagePtr image, const LLColor4 &color=LLColor4::white) |
void | drawImageStack (const LLVector3d &global_pos, LLUIImagePtr image, U32 count, F32 offset, const LLColor4 &color) |
void | drawAgents () |
void | drawEvents () |
void | drawFrustum () |
void | drawTracking (const LLVector3d &pos_global, const LLColor4 &color, BOOL draw_arrow=TRUE, LLString label=LLString(), LLString tooltip="", S32 vert_offset=0) |
void | updateBlock (S32 block_x, S32 block_y) |
void | updateVisibleBlocks () |
Static Public Member Functions | |
static void | initClass () |
static void | cleanupClass () |
static void | setScale (F32 scale) |
static void | translatePan (S32 delta_x, S32 delta_y) |
static void | setPan (S32 x, S32 y, BOOL snap=TRUE) |
static void | cleanupTextures () |
static void | drawTrackingArrow (const LLRect &view_rect, S32 x, S32 y, const LLColor4 &color, S32 arrow_size=DEFAULT_TRACKING_ARROW_SIZE) |
static void | drawTrackingDot (F32 x_pixels, F32 y_pixels, const LLColor4 &color, F32 relative_z=0.f, F32 dot_radius=3.f) |
static void | drawTrackingCircle (const LLRect &rect, S32 x, S32 y, const LLColor4 &color, S32 min_thickness, S32 overlap) |
static void | drawAvatar (F32 x_pixels, F32 y_pixels, const LLColor4 &color, F32 relative_z=0.f, F32 dot_radius=3.f) |
static void | drawIconName (F32 x_pixels, F32 y_pixels, const LLColor4 &color, const std::string &first_line, const std::string &second_line) |
static void | clearLastClick () |
Public Attributes | |
LLColor4 | mBackgroundColor |
BOOL | mItemPicked |
BOOL | mPanning |
S32 | mMouseDownPanX |
S32 | mMouseDownPanY |
S32 | mMouseDownX |
S32 | mMouseDownY |
LLTextBox * | mTextBoxEast |
LLTextBox * | mTextBoxNorth |
LLTextBox * | mTextBoxWest |
LLTextBox * | mTextBoxSouth |
LLTextBox * | mTextBoxSouthEast |
LLTextBox * | mTextBoxNorthEast |
LLTextBox * | mTextBoxNorthWest |
LLTextBox * | mTextBoxSouthWest |
LLTextBox * | mTextBoxScrollHint |
S32 | mSelectIDStart |
handle_list_t | mVisibleRegions |
Static Public Attributes | |
static LLUIImagePtr | sAvatarYouSmallImage = NULL |
static LLUIImagePtr | sAvatarSmallImage = NULL |
static LLUIImagePtr | sAvatarLargeImage = NULL |
static LLUIImagePtr | sAvatarAboveImage = NULL |
static LLUIImagePtr | sAvatarBelowImage = NULL |
static LLUIImagePtr | sTelehubImage = NULL |
static LLUIImagePtr | sInfohubImage = NULL |
static LLUIImagePtr | sHomeImage = NULL |
static LLUIImagePtr | sEventImage = NULL |
static LLUIImagePtr | sEventMatureImage = NULL |
static LLUIImagePtr | sTrackCircleImage = NULL |
static LLUIImagePtr | sTrackArrowImage = NULL |
static LLUIImagePtr | sClassifiedsImage = NULL |
static LLUIImagePtr | sForSaleImage = NULL |
static F32 | sThresholdA = 48.f |
static F32 | sThresholdB = 96.f |
static F32 | sPixelsPerMeter = 1.f |
static F32 | sPanX = 0.f |
static F32 | sPanY = 0.f |
static F32 | sTargetPanX = 0.f |
static F32 | sTargetPanY = 0.f |
static S32 | sTrackingArrowX = 0 |
static S32 | sTrackingArrowY = 0 |
static BOOL | sHandledLastClick = FALSE |
Protected Member Functions | |
void | setDirectionPos (LLTextBox *text_box, F32 rotation) |
void | updateDirections () |
Definition at line 56 of file llworldmapview.h.
typedef std::vector<U64> LLWorldMapView::handle_list_t |
Definition at line 188 of file llworldmapview.h.
LLWorldMapView::LLWorldMapView | ( | const std::string & | name, | |
const LLRect & | rect | |||
) |
Definition at line 152 of file llworldmapview.cpp.
References LLView::addChild(), clearLastClick(), gMapScale, LLRectBase< Type >::mRight, mTextBoxEast, mTextBoxNorth, mTextBoxNorthEast, mTextBoxNorthWest, mTextBoxSouth, mTextBoxSouthEast, mTextBoxSouthWest, mTextBoxWest, REGION_WIDTH_METERS, S32, LLTextBox::setColor(), and sPixelsPerMeter.
LLWorldMapView::~LLWorldMapView | ( | ) | [virtual] |
Definition at line 209 of file llworldmapview.cpp.
References cleanupTextures().
void LLWorldMapView::initClass | ( | void | ) | [static] |
Definition at line 111 of file llworldmapview.cpp.
References LLUI::getUIImage(), sAvatarAboveImage, sAvatarBelowImage, sAvatarLargeImage, sAvatarSmallImage, sAvatarYouSmallImage, sClassifiedsImage, sEventImage, sEventMatureImage, sForSaleImage, sHomeImage, sInfohubImage, sTelehubImage, sTrackArrowImage, and sTrackCircleImage.
Referenced by LLViewerWindow::initWorldUI().
void LLWorldMapView::cleanupClass | ( | void | ) | [static] |
Definition at line 132 of file llworldmapview.cpp.
References NULL, sAvatarAboveImage, sAvatarBelowImage, sAvatarLargeImage, sAvatarSmallImage, sAvatarYouSmallImage, sClassifiedsImage, sEventImage, sEventMatureImage, sForSaleImage, sHomeImage, sInfohubImage, sTelehubImage, sTrackArrowImage, and sTrackCircleImage.
Referenced by LLAppViewer::cleanup().
Reimplemented from LLView.
Definition at line 1461 of file llworldmapview.cpp.
References LLView::reshape().
void LLWorldMapView::setVisible | ( | BOOL | visible | ) | [virtual] |
Reimplemented from LLView.
Definition at line 784 of file llworldmapview.cpp.
References LLSingleton< LLWorldMap >::getInstance(), LLWorldMapLayer::LayerImage, MAP_SIM_IMAGE_TYPES, LLSimInfo::mCurrentImage, LLWorldMap::mMapLayers, LLSimInfo::mOverlayImage, LLWorldMap::mSimInfoMap, LLPointer< Type >::notNull(), S32, and LLView::setVisible().
Reimplemented from LLView.
Definition at line 1619 of file llworldmapview.cpp.
References gFocusMgr, llround(), mMouseDownPanX, mMouseDownPanY, mMouseDownX, mMouseDownY, LLFocusMgr::setMouseCapture(), sHandledLastClick, sPanX, sPanY, and TRUE.
Reimplemented from LLView.
Definition at line 1631 of file llworldmapview.cpp.
References LLRectBase< Type >::clipPointToRect(), FALSE, LLView::getRect(), gFocusMgr, gViewerWindow, handleClick(), LLView::hasMouseCapture(), llfloor(), mMouseDownPanX, mMouseDownPanY, mMouseDownX, mMouseDownY, mPanning, NULL, S32, LLUI::setCursorPositionLocal(), LLFocusMgr::setMouseCapture(), LLViewerWindow::showCursor(), sPanX, sPanY, LLRectBase< Type >::stretch(), and TRUE.
Reimplemented from LLView.
Definition at line 1752 of file llworldmapview.cpp.
References LLFloater::close(), FALSE, gAgent, LLSingleton< LLWorldMap >::getInstance(), gFloaterWorldMap, handleClick(), LLSimInfo::mAccess, MAP_ITEM_CLASSIFIED, MAP_ITEM_LAND_FOR_SALE, MAP_ITEM_MATURE_EVENT, MAP_ITEM_PG_EVENT, LLWorldMap::mIsTrackingDoubleClick, S32, sHandledLastClick, LLFloaterDirectory::showClassified(), LLFloaterDirectory::showEvents(), LLFloaterDirectory::showLandForSale(), SIM_ACCESS_DOWN, LLWorldMap::simInfoFromPosGlobal(), LLAgent::teleportViaLocation(), TRUE, and viewPosToGlobal().
Reimplemented from LLView.
Definition at line 1704 of file llworldmapview.cpp.
References LLViewerWindow::getCurrentMouseDX(), LLViewerWindow::getCurrentMouseDY(), LLTracker::getTrackedPositionGlobal(), gViewerWindow, LLView::hasMouseCapture(), LLViewerWindow::hideCursor(), LLVector3d::isExactlyZero(), LLTracker::isTracking(), lldebugst, llendl, mMouseDownX, mMouseDownY, LLViewerWindow::moveCursorToCenter(), mPanning, NULL, outside_slop(), LLViewerWindow::setCursor(), sPanX, sPanY, sTargetPanX, sTargetPanY, TRUE, UI_CURSOR_CROSS, and UI_CURSOR_WAIT.
BOOL LLWorldMapView::handleToolTip | ( | S32 | x, | |
S32 | y, | |||
LLString & | msg, | |||
LLRect * | sticky_rect_screen | |||
) | [virtual] |
Reimplemented from LLView.
Definition at line 1091 of file llworldmapview.cpp.
References LLViewerRegion::accessToString(), gAgent, LLViewerRegion::getHandle(), LLSingleton< LLWorldMap >::getInstance(), LLAgent::getRegion(), llformat(), LLView::localPointToScreen(), LLSimInfo::mAccess, LLRectBase< Type >::mBottom, LLSimInfo::mHandle, LLRectBase< Type >::mLeft, LLSimInfo::mName, LLWorldMap::mNumAgents, LLSimInfo::mRegionFlags, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, LLViewerRegion::regionFlagsToString(), S32, SIM_ACCESS_DOWN, LLWorldMap::simInfoFromPosGlobal(), TRUE, and viewPosToGlobal().
bool LLWorldMapView::checkItemHit | ( | S32 | x, | |
S32 | y, | |||
LLItemInfo & | item, | |||
LLUUID * | id, | |||
bool | track | |||
) |
Definition at line 1466 of file llworldmapview.cpp.
References BIG_DOT_RADIUS, LLSingleton< LLWorldMap >::getInstance(), gFloaterWorldMap, globalPosToView(), llround(), LLItemInfo::mID, LLItemInfo::mPosGlobal, LLItemInfo::mRegionHandle, LLItemInfo::mSelected, LLVector3::mV, S32, LLWorldMap::simInfoFromHandle(), LLFloaterWorldMap::trackGenericItem(), LLFloaterWorldMap::trackLocation(), TRUE, VX, and VY.
Referenced by handleClick().
Definition at line 1498 of file llworldmapview.cpp.
References checkItemHit(), FALSE, gAgent, LLControlGroup::getBOOL(), LLSingleton< LLWorldMap >::getInstance(), gFloaterWorldMap, gSavedSettings, LLAgent::isGodlike(), MAP_ITEM_CLASSIFIED, MAP_ITEM_LAND_FOR_SALE, MAP_ITEM_MATURE_EVENT, MAP_ITEM_PG_EVENT, LLWorldMap::mClassifieds, LLVector3d::mdV, LLWorldMap::mIsTrackingCommit, LLWorldMap::mIsTrackingDoubleClick, LLWorldMap::mIsTrackingUnknownLocation, mItemPicked, LLWorldMap::mLandForSale, LLWorldMap::mMatureEvents, LLWorldMap::mPGEvents, LLUUID::null, LLFloaterWorldMap::trackEvent(), LLFloaterWorldMap::trackLocation(), TRUE, viewPosToGlobal(), and VZ.
Referenced by handleDoubleClick(), and handleMouseUp().
void LLWorldMapView::setScale | ( | F32 | scale | ) | [static] |
Definition at line 222 of file llworldmapview.cpp.
References gMapScale, REGION_WIDTH_METERS, sPanX, sPanY, sPixelsPerMeter, sTargetPanX, and sTargetPanY.
Referenced by LLFloaterWorldMap::draw().
Definition at line 246 of file llworldmapview.cpp.
References sPanX, sPanY, sTargetPanX, and sTargetPanY.
Referenced by LLFloaterWorldMap::onPanBtn().
Definition at line 256 of file llworldmapview.cpp.
References sPanX, sPanY, sTargetPanX, and sTargetPanY.
Referenced by LLFloaterWorldMap::centerOnTarget(), LLFloaterWorldMap::onShowAgentBtn(), and LLFloaterWorldMap::show().
LLVector3 LLWorldMapView::globalPosToView | ( | const LLVector3d & | global_pos | ) |
Definition at line 982 of file llworldmapview.cpp.
References gAgent, LLAgent::getCameraPositionGlobal(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), LLVector3::mV, LLVector3::setVec(), sPanX, sPanY, sPixelsPerMeter, VX, and VY.
Referenced by checkItemHit(), draw(), drawImage(), drawImageStack(), and drawTracking().
LLVector3d LLWorldMapView::viewPosToGlobal | ( | S32 | x, | |
S32 | y | |||
) |
Definition at line 1066 of file llworldmapview.cpp.
References gAgent, LLAgent::getCameraPositionGlobal(), LLAgent::getPositionAgent(), LLView::getRect(), gMapScale, GODLY_TELEPORT_HEIGHT, LLAgent::isGodlike(), llfloor(), LLVector3d::mdV, LLVector3::mV, REGION_WIDTH_METERS, LLVector3d::setVec(), sPanX, sPanY, and VZ.
Referenced by handleClick(), handleDoubleClick(), and handleToolTip().
void LLWorldMapView::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 279 of file llworldmapview.cpp.
References AGENTS_UPDATE_TIME, LLFontGL::BASELINE, LLGLImmediate::begin(), LLViewerImage::bindTexture(), LLGLImmediate::blendFunc(), LLViewerImage::BOOST_MAP, LLViewerImage::BOOST_MAP_LAYER, LLTextureView::clearDebugImages(), LLGLImmediate::color3f(), LLGLImmediate::color4f(), LLGLImmediate::color4fv(), LLView::draw(), drawAgents(), drawEvents(), drawFrustum(), drawGenericItems(), drawImage(), drawTracking(), LLFontGL::DROP_SHADOW, LLGLImmediate::end(), FALSE, LLGLImmediate::flush(), from_region_handle(), gAgent, LLControlGroup::getBOOL(), LLAgent::getCameraPositionGlobal(), LLTimer::getElapsedSeconds(), LLImageGL::getHasGLTexture(), LLRectBase< Type >::getHeight(), LLAgent::getHomePosGlobal(), LLViewerImageList::getImage(), LLSingleton< LLWorldMap >::getInstance(), LLCriticalDamp::getInterpolant(), LLTracker::getLabel(), LLView::getLocalRect(), LLAgent::getPositionGlobal(), LLView::getRect(), LLTracker::getToolTip(), LLTracker::getTrackedPositionGlobal(), LLTracker::getTrackingStatus(), LLRectBase< Type >::getWidth(), gGL, gImageList, gl_rect_2d(), globalPosToView(), gMapScale, gSavedSettings, gTrackColor, indra::ipc::xml_rpc::handle(), LLAvatarTracker::instance(), LLVector3d::isExactlyZero(), LLViewerImage::isMissingAsset(), LLPointer< Type >::isNull(), LLAgent::isTeen(), LLWorldMapLayer::LayerExtents, LLWorldMapLayer::LayerImage, LLFontGL::LEFT, lerp(), LLVertexBuffer::LINES, llfloor(), llround(), lltrunc(), LLSimInfo::mAccess, LLSimInfo::mAgentsUpdateTime, LLSimInfo::mAlpha, MAP_ITEM_AGENT_LOCATIONS, MAX_STRING, mBackgroundColor, LLRectBase< Type >::mBottom, LLSimInfo::mCurrentImage, LLWorldMap::mCurrentMap, LLVector3d::mdV, LLSimInfo::mHandle, MIPMAP_TRUE, LLRectBase< Type >::mLeft, LLSimInfo::mMapImageID, LLWorldMap::mMapLayers, LLSimInfo::mName, LLSimInfo::mOverlayImage, LLSimInfo::mRegionFlags, LLSimInfo::mShowAgentLocations, LLWorldMap::mSimInfoMap, LLVector3::mV, LLColor4::mV, mVisibleRegions, LLUUID::notNull(), LLColor4::orange, LLView::pointInView(), LLVertexBuffer::QUADS, REGION_FLAGS_NULL_LAYER, REGION_WIDTH_METERS, LLFontGL::renderUTF8(), S32, sAvatarLargeImage, sClassifiedsImage, LLWorldMap::sendItemRequest(), LLViewerImage::setBoostLevel(), LLViewerImage::setKnownDrawSize(), sForSaleImage, LLUI::sGLScaleFactor, sHomeImage, SIM_ACCESS_DOWN, SIM_ACCESS_PG, SIM_MAP_AGENT_SCALE, SIM_MAP_SCALE, SIM_NULL_MAP_SCALE, sInfohubImage, sPanX, sPanY, LLFontGL::sSansSerifSmall, sTargetPanX, sTargetPanY, sTelehubImage, sThresholdA, sThresholdB, LLGLImmediate::texCoord2f(), LLTracker::TRACKING_AVATAR, LLTracker::TRACKING_LANDMARK, LLTracker::TRACKING_LOCATION, TRUE, updateDirections(), updateVisibleBlocks(), LLGLImmediate::vertex2f(), LLGLImmediate::vertex3f(), VX, VY, LLColor4::white, and LLColor4::yellow.
void LLWorldMapView::drawGenericItems | ( | const LLWorldMap::item_info_list_t & | items, | |
LLUIImagePtr | image | |||
) |
Definition at line 816 of file llworldmapview.cpp.
References drawGenericItem().
Referenced by draw().
void LLWorldMapView::drawGenericItem | ( | const LLItemInfo & | item, | |
LLUIImagePtr | image | |||
) |
Definition at line 825 of file llworldmapview.cpp.
References drawImage(), and LLItemInfo::mPosGlobal.
Referenced by drawEvents(), and drawGenericItems().
void LLWorldMapView::drawImage | ( | const LLVector3d & | global_pos, | |
LLUIImagePtr | image, | |||
const LLColor4 & | color = LLColor4::white | |||
) |
Definition at line 831 of file llworldmapview.cpp.
References globalPosToView(), llround(), LLVector3::mV, VX, and VY.
Referenced by draw(), drawGenericItem(), and drawTracking().
void LLWorldMapView::drawImageStack | ( | const LLVector3d & | global_pos, | |
LLUIImagePtr | image, | |||
U32 | count, | |||
F32 | offset, | |||
const LLColor4 & | color | |||
) |
Definition at line 839 of file llworldmapview.cpp.
References globalPosToView(), i, llround(), LLVector3::mV, VX, and VY.
Referenced by drawAgents().
void LLWorldMapView::drawAgents | ( | ) |
Definition at line 851 of file llworldmapview.cpp.
References drawImageStack(), from_region_handle(), gAvatarMapColor, LLSingleton< LLWorldMap >::getInstance(), gMapScale, indra::ipc::xml_rpc::handle(), LLSimInfo::mAccess, LLWorldMap::mAgentLocationsMap, LLItemInfo::mExtra, LLWorldMap::mNumAgents, LLItemInfo::mPosGlobal, LLSimInfo::mShowAgentLocations, mVisibleRegions, REGION_WIDTH_METERS, S32, sAvatarSmallImage, SIM_ACCESS_DOWN, LLWorldMap::simInfoFromHandle(), VX, and VY.
Referenced by draw().
void LLWorldMapView::drawEvents | ( | ) |
Definition at line 899 of file llworldmapview.cpp.
References drawGenericItem(), LLControlGroup::getBOOL(), LLSingleton< LLWorldMap >::getInstance(), gSavedSettings, LLWorldMap::mMatureEvents, LLWorldMap::mPGEvents, sEventImage, and sEventMatureImage.
Referenced by draw().
void LLWorldMapView::drawFrustum | ( | ) |
Definition at line 944 of file llworldmapview.cpp.
References LLGLImmediate::begin(), LLGLImmediate::color4f(), LLGLImmediate::end(), LLCamera::getAspect(), LLCamera::getFar(), LLRectBase< Type >::getHeight(), LLSingleton< LLViewerCamera >::getInstance(), LLView::getRect(), LLCamera::getView(), LLRectBase< Type >::getWidth(), gGL, gMapScale, LLGLImmediate::popMatrix(), LLGLImmediate::pushMatrix(), RAD_TO_DEG, REGION_WIDTH_METERS, sPanX, sPanY, LLGLImmediate::translatef(), LLVertexBuffer::TRIANGLES, LLGLImmediate::vertex2f(), VX, and VY.
Referenced by draw().
void LLWorldMapView::cleanupTextures | ( | ) | [static] |
Definition at line 216 of file llworldmapview.cpp.
Referenced by LLViewerWindow::~LLViewerWindow(), and ~LLWorldMapView().
void LLWorldMapView::drawTracking | ( | const LLVector3d & | pos_global, | |
const LLColor4 & | color, | |||
BOOL | draw_arrow = TRUE , |
|||
LLString | label = LLString() , |
|||
LLString | tooltip = "" , |
|||
S32 | vert_offset = 0 | |||
) |
Definition at line 1000 of file llworldmapview.cpp.
References LLFontGL::BASELINE, DEFAULT_TRACKING_ARROW_SIZE, drawImage(), drawTrackingArrow(), drawTrackingCircle(), LLFontGL::DROP_SHADOW, LLRectBase< Type >::getHeight(), LLFontGL::getLineHeight(), LLView::getRect(), LLTracker::getTrackedLocationType(), LLTracker::getTrackingStatus(), LLRectBase< Type >::getWidth(), LLFontGL::getWidthF32(), globalPosToView(), LLFontGL::HCENTER, llclamp(), llfloor(), llround(), LLTracker::LOCATION_NOTHING, LLVector3::mV, LLFontGL::renderUTF8(), S32, LLFontGL::sSansSerifSmall, sTrackCircleImage, sTrackingArrowX, sTrackingArrowY, LLTracker::TRACKING_LOCATION, VX, VY, and LLColor4::white.
Referenced by draw().
void LLWorldMapView::drawTrackingArrow | ( | const LLRect & | view_rect, | |
S32 | x, | |||
S32 | y, | |||
const LLColor4 & | color, | |||
S32 | arrow_size = DEFAULT_TRACKING_ARROW_SIZE | |||
) | [static] |
Definition at line 1359 of file llworldmapview.cpp.
References LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), gl_draw_scaled_rotated_image(), llabs(), llclamp(), llfloor(), RAD_TO_DEG, S32, sTrackArrowImage, sTrackingArrowX, and sTrackingArrowY.
Referenced by drawTracking(), and LLNetMap::drawTracking().
void LLWorldMapView::drawTrackingDot | ( | F32 | x_pixels, | |
F32 | y_pixels, | |||
const LLColor4 & | color, | |||
F32 | relative_z = 0.f , |
|||
F32 | dot_radius = 3.f | |||
) | [static] |
Definition at line 1214 of file llworldmapview.cpp.
References drawDot(), and sTrackCircleImage.
Referenced by LLNetMap::drawTracking().
void LLWorldMapView::drawTrackingCircle | ( | const LLRect & | rect, | |
S32 | x, | |||
S32 | y, | |||
const LLColor4 & | color, | |||
S32 | min_thickness, | |||
S32 | overlap | |||
) | [static] |
Definition at line 1261 of file llworldmapview.cpp.
References F_PI, F_PI_BY_TWO, F_TWO_PI, LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), gGL, gl_washer_segment_2d(), llmax(), llmin(), LLGLImmediate::popMatrix(), LLGLImmediate::pushMatrix(), sqrtf, and LLGLImmediate::translatef().
Referenced by drawTracking(), and LLNetMap::drawTracking().
void LLWorldMapView::drawAvatar | ( | F32 | x_pixels, | |
F32 | y_pixels, | |||
const LLColor4 & | color, | |||
F32 | relative_z = 0.f , |
|||
F32 | dot_radius = 3.f | |||
) | [static] |
Definition at line 1190 of file llworldmapview.cpp.
References llround(), sAvatarAboveImage, sAvatarBelowImage, and sAvatarSmallImage.
Referenced by LLNetMap::draw().
void LLWorldMapView::drawIconName | ( | F32 | x_pixels, | |
F32 | y_pixels, | |||
const LLColor4 & | color, | |||
const std::string & | first_line, | |||
const std::string & | second_line | |||
) | [static] |
Definition at line 1226 of file llworldmapview.cpp.
References BIG_DOT_RADIUS, LLFontGL::DROP_SHADOW, LLFontGL::HCENTER, llround(), LLFontGL::renderUTF8(), S32, LLFontGL::sSansSerif, and LLFontGL::TOP.
static void LLWorldMapView::clearLastClick | ( | ) | [inline, static] |
Definition at line 126 of file llworldmapview.h.
References FALSE, and sHandledLastClick.
Referenced by LLWorldMapView(), and LLFloaterWorldMap::show().
Definition at line 1666 of file llworldmapview.cpp.
References LLSingleton< LLWorldMap >::getInstance(), MAP_BLOCK_RES, LLWorldMap::mCurrentMap, LLWorldMap::mMapBlockLoaded, S32, LLWorldMap::sendMapBlockRequest(), and TRUE.
Referenced by updateVisibleBlocks().
void LLWorldMapView::updateVisibleBlocks | ( | ) |
Definition at line 1677 of file llworldmapview.cpp.
References gAgent, LLAgent::getCameraPositionGlobal(), gMapScale, llmax(), llmin(), MAP_BLOCK_RES, LLVector3d::mdV, REGION_WIDTH_METERS, S32, SIM_MAP_SCALE, sPanX, sPanY, and updateBlock().
Referenced by draw(), and LLFloaterWorldMap::show().
Definition at line 1407 of file llworldmapview.cpp.
References LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), llmin(), llround(), and LLView::setOrigin().
void LLWorldMapView::updateDirections | ( | ) | [protected] |
Definition at line 1425 of file llworldmapview.cpp.
References LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), mTextBoxEast, mTextBoxNorth, mTextBoxNorthEast, mTextBoxNorthWest, mTextBoxSouth, mTextBoxSouthEast, mTextBoxSouthWest, mTextBoxWest, S32, and LLView::setOrigin().
Referenced by draw().
LLUIImagePtr LLWorldMapView::sAvatarYouSmallImage = NULL [static] |
Definition at line 139 of file llworldmapview.h.
Referenced by cleanupClass(), LLNetMap::draw(), and initClass().
LLUIImagePtr LLWorldMapView::sAvatarSmallImage = NULL [static] |
Definition at line 140 of file llworldmapview.h.
Referenced by cleanupClass(), drawAgents(), drawAvatar(), and initClass().
LLUIImagePtr LLWorldMapView::sAvatarLargeImage = NULL [static] |
Definition at line 141 of file llworldmapview.h.
Referenced by cleanupClass(), draw(), and initClass().
LLUIImagePtr LLWorldMapView::sAvatarAboveImage = NULL [static] |
Definition at line 142 of file llworldmapview.h.
Referenced by cleanupClass(), drawAvatar(), and initClass().
LLUIImagePtr LLWorldMapView::sAvatarBelowImage = NULL [static] |
Definition at line 143 of file llworldmapview.h.
Referenced by cleanupClass(), drawAvatar(), and initClass().
LLUIImagePtr LLWorldMapView::sTelehubImage = NULL [static] |
Definition at line 144 of file llworldmapview.h.
Referenced by cleanupClass(), draw(), and initClass().
LLUIImagePtr LLWorldMapView::sInfohubImage = NULL [static] |
Definition at line 145 of file llworldmapview.h.
Referenced by cleanupClass(), draw(), and initClass().
LLUIImagePtr LLWorldMapView::sHomeImage = NULL [static] |
Definition at line 146 of file llworldmapview.h.
Referenced by cleanupClass(), draw(), and initClass().
LLUIImagePtr LLWorldMapView::sEventImage = NULL [static] |
Definition at line 147 of file llworldmapview.h.
Referenced by cleanupClass(), drawEvents(), and initClass().
LLUIImagePtr LLWorldMapView::sEventMatureImage = NULL [static] |
Definition at line 148 of file llworldmapview.h.
Referenced by cleanupClass(), drawEvents(), and initClass().
LLUIImagePtr LLWorldMapView::sTrackCircleImage = NULL [static] |
Definition at line 149 of file llworldmapview.h.
Referenced by cleanupClass(), drawTracking(), drawTrackingDot(), and initClass().
LLUIImagePtr LLWorldMapView::sTrackArrowImage = NULL [static] |
Definition at line 150 of file llworldmapview.h.
Referenced by cleanupClass(), LLTracker::drawMarker(), drawTrackingArrow(), and initClass().
LLUIImagePtr LLWorldMapView::sClassifiedsImage = NULL [static] |
Definition at line 151 of file llworldmapview.h.
Referenced by cleanupClass(), draw(), and initClass().
LLUIImagePtr LLWorldMapView::sForSaleImage = NULL [static] |
Definition at line 152 of file llworldmapview.h.
Referenced by cleanupClass(), draw(), and initClass().
F32 LLWorldMapView::sThresholdA = 48.f [static] |
F32 LLWorldMapView::sThresholdB = 96.f [static] |
F32 LLWorldMapView::sPixelsPerMeter = 1.f [static] |
Definition at line 156 of file llworldmapview.h.
Referenced by LLFloaterWorldMap::centerOnTarget(), globalPosToView(), LLWorldMapView(), and setScale().
F32 LLWorldMapView::sPanX = 0.f [static] |
Definition at line 160 of file llworldmapview.h.
Referenced by draw(), drawFrustum(), globalPosToView(), handleHover(), handleMouseDown(), handleMouseUp(), setPan(), setScale(), translatePan(), updateVisibleBlocks(), and viewPosToGlobal().
F32 LLWorldMapView::sPanY = 0.f [static] |
Definition at line 161 of file llworldmapview.h.
Referenced by draw(), drawFrustum(), globalPosToView(), handleHover(), handleMouseDown(), handleMouseUp(), setPan(), setScale(), translatePan(), updateVisibleBlocks(), and viewPosToGlobal().
F32 LLWorldMapView::sTargetPanX = 0.f [static] |
Definition at line 162 of file llworldmapview.h.
Referenced by draw(), handleHover(), setPan(), setScale(), and translatePan().
F32 LLWorldMapView::sTargetPanY = 0.f [static] |
Definition at line 163 of file llworldmapview.h.
Referenced by draw(), handleHover(), setPan(), setScale(), and translatePan().
S32 LLWorldMapView::sTrackingArrowX = 0 [static] |
Definition at line 164 of file llworldmapview.h.
Referenced by drawTracking(), and drawTrackingArrow().
S32 LLWorldMapView::sTrackingArrowY = 0 [static] |
Definition at line 165 of file llworldmapview.h.
Referenced by drawTracking(), and drawTrackingArrow().
Definition at line 169 of file llworldmapview.h.
Referenced by handleMouseDown(), and handleMouseUp().
Definition at line 170 of file llworldmapview.h.
Referenced by handleMouseDown(), and handleMouseUp().
Definition at line 171 of file llworldmapview.h.
Referenced by handleHover(), handleMouseDown(), and handleMouseUp().
Definition at line 172 of file llworldmapview.h.
Referenced by handleHover(), handleMouseDown(), and handleMouseUp().
Definition at line 174 of file llworldmapview.h.
Referenced by LLWorldMapView(), and updateDirections().
Definition at line 175 of file llworldmapview.h.
Referenced by LLWorldMapView(), and updateDirections().
Definition at line 176 of file llworldmapview.h.
Referenced by LLWorldMapView(), and updateDirections().
Definition at line 177 of file llworldmapview.h.
Referenced by LLWorldMapView(), and updateDirections().
Definition at line 179 of file llworldmapview.h.
Referenced by LLWorldMapView(), and updateDirections().
Definition at line 180 of file llworldmapview.h.
Referenced by LLWorldMapView(), and updateDirections().
Definition at line 181 of file llworldmapview.h.
Referenced by LLWorldMapView(), and updateDirections().
Definition at line 182 of file llworldmapview.h.
Referenced by LLWorldMapView(), and updateDirections().
Definition at line 183 of file llworldmapview.h.
BOOL LLWorldMapView::sHandledLastClick = FALSE [static] |
Definition at line 185 of file llworldmapview.h.
Referenced by clearLastClick(), handleDoubleClick(), and handleMouseDown().
Definition at line 186 of file llworldmapview.h.