LLWorldMapView Class Reference

#include <llworldmapview.h>

Inheritance diagram for LLWorldMapView:

Inheritance graph
[legend]
Collaboration diagram for LLWorldMapView:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::vector< U64handle_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, LLPointer< LLViewerImage > image)
void drawGenericItem (const LLItemInfo &item, LLPointer< LLViewerImage > image)
void drawImage (const LLVector3d &global_pos, LLPointer< LLViewerImage > image, const LLColor4 &color=LLColor4::white)
void drawImageStack (const LLVector3d &global_pos, LLPointer< LLViewerImage > 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
LLTextBoxmTextBoxEast
LLTextBoxmTextBoxNorth
LLTextBoxmTextBoxWest
LLTextBoxmTextBoxSouth
LLTextBoxmTextBoxSouthEast
LLTextBoxmTextBoxNorthEast
LLTextBoxmTextBoxNorthWest
LLTextBoxmTextBoxSouthWest
LLTextBoxmTextBoxScrollHint
S32 mSelectIDStart
handle_list_t mVisibleRegions

Static Public Attributes

static LLPointer< LLViewerImagesAvatarYouSmallImage = NULL
static LLPointer< LLViewerImagesAvatarSmallImage = NULL
static LLPointer< LLViewerImagesAvatarLargeImage = NULL
static LLPointer< LLViewerImagesAvatarAboveImage = NULL
static LLPointer< LLViewerImagesAvatarBelowImage = NULL
static LLPointer< LLViewerImagesTelehubImage = NULL
static LLPointer< LLViewerImagesInfohubImage = NULL
static LLPointer< LLViewerImagesHomeImage = NULL
static LLPointer< LLViewerImagesEventImage = NULL
static LLPointer< LLViewerImagesEventMatureImage = NULL
static LLPointer< LLViewerImagesTrackCircleImage = NULL
static LLPointer< LLViewerImagesTrackArrowImage = NULL
static LLPointer< LLViewerImagesClassifiedsImage = NULL
static LLPointer< LLViewerImagesPopularImage = NULL
static LLPointer< LLViewerImagesForSaleImage = 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 ()

Detailed Description

Definition at line 63 of file llworldmapview.h.


Member Typedef Documentation

typedef std::vector<U64> LLWorldMapView::handle_list_t

Definition at line 196 of file llworldmapview.h.


Constructor & Destructor Documentation

LLWorldMapView::LLWorldMapView ( const std::string &  name,
const LLRect rect 
)

Definition at line 176 of file llworldmapview.cpp.

References LLView::addChild(), clearLastClick(), f, gMapScale, mTextBoxEast, mTextBoxNorth, mTextBoxNorthEast, mTextBoxNorthWest, mTextBoxSouth, mTextBoxSouthEast, mTextBoxSouthWest, mTextBoxWest, REGION_WIDTH_METERS, S32, LLTextBox::setColor(), and sPixelsPerMeter.

LLWorldMapView::~LLWorldMapView (  )  [virtual]

Definition at line 231 of file llworldmapview.cpp.

References cleanupTextures().


Member Function Documentation

bool LLWorldMapView::checkItemHit ( S32  x,
S32  y,
LLItemInfo item,
LLUUID id,
bool  track 
)

Definition at line 1499 of file llworldmapview.cpp.

References BIG_DOT_RADIUS, gFloaterWorldMap, globalPosToView(), gWorldMap, 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().

void LLWorldMapView::cleanupClass (  )  [static]

Reimplemented from LLThreadSafeRefCount.

Definition at line 157 of file llworldmapview.cpp.

References NULL, sAvatarAboveImage, sAvatarBelowImage, sAvatarLargeImage, sAvatarSmallImage, sAvatarYouSmallImage, sClassifiedsImage, sEventImage, sEventMatureImage, sForSaleImage, sHomeImage, sInfohubImage, sPopularImage, sTelehubImage, sTrackArrowImage, and sTrackCircleImage.

Referenced by cleanup_app().

void LLWorldMapView::cleanupTextures (  )  [static]

Definition at line 238 of file llworldmapview.cpp.

Referenced by LLViewerWindow::~LLViewerWindow(), and ~LLWorldMapView().

static void LLWorldMapView::clearLastClick (  )  [inline, static]

Definition at line 133 of file llworldmapview.h.

References FALSE, and sHandledLastClick.

Referenced by LLWorldMapView(), and LLFloaterWorldMap::show().

void LLWorldMapView::draw (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 301 of file llworldmapview.cpp.

References AGENTS_UPDATE_TIME, LLFontGL::BASELINE, LLViewerImage::bind(), LLViewerImage::bindTexture(), LLViewerImage::BOOST_MAP, LLViewerImage::BOOST_MAP_LAYER, bottom, LLTextureView::clearDebugImages(), LLView::draw(), drawAgents(), drawEvents(), drawFrustum(), drawGenericItems(), drawImage(), drawTracking(), LLFontGL::DROP_SHADOW, f, FALSE, from_region_handle(), gAgent, LLControlGroup::getBOOL(), LLAgent::getCameraPositionGlobal(), LLTimer::getElapsedSeconds(), LLImageGL::getHasGLTexture(), LLRectBase< Type >::getHeight(), LLAgent::getHomePosGlobal(), LLViewerImageList::getImage(), LLCriticalDamp::getInterpolant(), LLTracker::getLabel(), LLView::getLocalRect(), LLAgent::getPositionGlobal(), LLTracker::getToolTip(), LLTracker::getTrackedPositionGlobal(), LLTracker::getTrackingStatus(), LLView::getVisible(), LLRectBase< Type >::getWidth(), gImageList, gl_rect_2d(), glBegin, glBlendFunc, glColor4f, glColor4fv, glEnd, globalPosToView(), glVertex2f, gMapScale, gSavedSettings, gTrackColor, gWorldMap, gWorldPointer, height, LLAvatarTracker::instance(), LLVector3d::isExactlyZero(), LLViewerImage::isMissingAsset(), LLAgent::isTeen(), LLWorldMapLayer::LayerExtents, LLWorldMapLayer::LayerImage, LLFontGL::LEFT, left, lerp(), llfloor(), llround(), lltrunc(), MAP_ITEM_AGENT_LOCATIONS, MAX_STRING, mBackgroundColor, LLRectBase< Type >::mBottom, LLWorldMap::mClassifieds, LLWorldMap::mCurrentMap, LLVector3d::mdV, LLWorldMap::mInfohubs, LLWorldMap::mInvalidLocation, MIPMAP_TRUE, LLWorldMap::mIsTrackingUnknownLocation, LLWorldMap::mLandForSale, LLRectBase< Type >::mLeft, LLWorldMap::mMapLayers, LLWorldMap::mPopular, LLView::mRect, LLWorldMap::mSimInfoMap, LLWorldMap::mTelehubs, LLWorldMap::mUnknownLocation, LLVector3::mV, LLColor4::mV, mVisibleRegions, LLColor4::orange, LLView::pointInView(), REGION_FLAGS_NULL_LAYER, REGION_WIDTH_METERS, LLFontGL::renderUTF8(), right, S32, sAvatarLargeImage, sClassifiedsImage, LLWorldMap::sendItemRequest(), LLViewerImage::setBoostLevel(), LLViewerImage::setKnownDrawSize(), sForSaleImage, sHomeImage, SIM_ACCESS_DOWN, SIM_ACCESS_PG, SIM_MAP_AGENT_SCALE, SIM_MAP_SCALE, SIM_NULL_MAP_SCALE, sInfohubImage, sPanX, sPanY, sPopularImage, LLFontGL::sSansSerifSmall, sTargetPanX, sTargetPanY, sTelehubImage, sThresholdA, sThresholdB, top, LLTracker::TRACKING_AVATAR, LLTracker::TRACKING_LANDMARK, LLTracker::TRACKING_LOCATION, TRUE, updateDirections(), updateVisibleBlocks(), VX, VY, LLColor4::white, width, and LLColor4::yellow.

void LLWorldMapView::drawAgents (  ) 

Definition at line 878 of file llworldmapview.cpp.

References drawImageStack(), f, from_region_handle(), gAvatarMapColor, gMapScale, gWorldMap, LLSimInfo::mAccess, LLWorldMap::mAgentLocationsMap, LLWorldMap::mNumAgents, LLSimInfo::mShowAgentLocations, mVisibleRegions, REGION_WIDTH_METERS, S32, sAvatarSmallImage, SIM_ACCESS_DOWN, LLWorldMap::simInfoFromHandle(), VX, and VY.

Referenced by draw().

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 1223 of file llworldmapview.cpp.

References LLImageGL::getHeight(), LLImageGL::getWidth(), gl_draw_image(), llround(), sAvatarAboveImage, sAvatarBelowImage, and sAvatarSmallImage.

Referenced by LLNetMap::draw().

void LLWorldMapView::drawEvents (  ) 

Definition at line 926 of file llworldmapview.cpp.

References drawGenericItem(), e, LLControlGroup::getBOOL(), gSavedSettings, gWorldMap, LLWorldMap::mMatureEvents, LLWorldMap::mPGEvents, sEventImage, and sEventMatureImage.

Referenced by draw().

void LLWorldMapView::drawFrustum (  ) 

Definition at line 971 of file llworldmapview.cpp.

References f, gCamera, LLCamera::getAspect(), LLCoordFrame::getAtAxis(), LLCamera::getFar(), LLRectBase< Type >::getHeight(), LLCamera::getView(), LLRectBase< Type >::getWidth(), glBegin, glColor4f, glEnd, glPopMatrix, glRotatef, glTranslatef, glVertex2f, gMapScale, LLView::mRect, LLVector3::mV, RAD_TO_DEG, REGION_WIDTH_METERS, sPanX, sPanY, VX, and VY.

Referenced by draw().

void LLWorldMapView::drawGenericItem ( const LLItemInfo item,
LLPointer< LLViewerImage image 
)

Definition at line 850 of file llworldmapview.cpp.

References drawImage(), and LLItemInfo::mPosGlobal.

Referenced by drawEvents(), and drawGenericItems().

void LLWorldMapView::drawGenericItems ( const LLWorldMap::item_info_list_t items,
LLPointer< LLViewerImage image 
)

Definition at line 841 of file llworldmapview.cpp.

References drawGenericItem(), and e.

Referenced by 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 1259 of file llworldmapview.cpp.

References BIG_DOT_RADIUS, LLFontGL::DROP_SHADOW, LLFontGL::HCENTER, llround(), LLFontGL::renderUTF8(), S32, LLFontGL::sSansSerif, and LLFontGL::TOP.

void LLWorldMapView::drawImage ( const LLVector3d global_pos,
LLPointer< LLViewerImage image,
const LLColor4 color = LLColor4::white 
)

Definition at line 856 of file llworldmapview.cpp.

References gl_draw_image(), globalPosToView(), llround(), LLVector3::mV, VX, and VY.

Referenced by draw(), drawGenericItem(), and drawTracking().

void LLWorldMapView::drawImageStack ( const LLVector3d global_pos,
LLPointer< LLViewerImage image,
U32  count,
F32  offset,
const LLColor4 color 
)

Definition at line 865 of file llworldmapview.cpp.

References gl_draw_image(), globalPosToView(), i, llround(), LLVector3::mV, VX, and VY.

Referenced by drawAgents().

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 1027 of file llworldmapview.cpp.

References LLFontGL::BASELINE, DEFAULT_TRACKING_ARROW_SIZE, drawImage(), drawTrackingArrow(), drawTrackingCircle(), LLFontGL::DROP_SHADOW, LLRectBase< Type >::getHeight(), LLFontGL::getLineHeight(), LLTracker::getTrackedLocationType(), LLTracker::getTrackingStatus(), LLRectBase< Type >::getWidth(), LLFontGL::getWidthF32(), globalPosToView(), LLFontGL::HCENTER, llclamp(), llfloor(), llround(), LLTracker::LOCATION_NOTHING, LLView::mRect, LLVector3::mV, LLFontGL::renderUTF8(), S32, LLFontGL::sSansSerifSmall, sTrackCircleImage, sTrackingArrowX, sTrackingArrowY, LLTracker::TRACKING_LOCATION, VX, VY, LLColor4::white, x, and y.

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 1392 of file llworldmapview.cpp.

References angle, f, 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::drawTrackingCircle ( const LLRect rect,
S32  x,
S32  y,
const LLColor4 color,
S32  min_thickness,
S32  overlap 
) [static]

Definition at line 1294 of file llworldmapview.cpp.

References f, F_PI, F_PI_BY_TWO, F_TWO_PI, LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), gl_washer_segment_2d(), glPopMatrix, glTranslatef, llmax(), llmin(), and sqrtf.

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 1247 of file llworldmapview.cpp.

References drawDot(), and sTrackCircleImage.

Referenced by LLNetMap::drawTracking().

LLVector3 LLWorldMapView::globalPosToView ( const LLVector3d global_pos  ) 

Definition at line 1009 of file llworldmapview.cpp.

References gAgent, LLAgent::getCameraPositionGlobal(), LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), LLView::mRect, LLVector3::mV, LLVector3::setVec(), sPanX, sPanY, sPixelsPerMeter, VX, and VY.

Referenced by checkItemHit(), draw(), drawImage(), drawImageStack(), and drawTracking().

void LLWorldMapView::handleClick ( S32  x,
S32  y,
MASK  mask,
S32 hit_type,
LLUUID id 
)

Definition at line 1531 of file llworldmapview.cpp.

References checkItemHit(), FALSE, gAgent, LLControlGroup::getBOOL(), gFloaterWorldMap, gSavedSettings, gWorldMap, LLAgent::isGodlike(), MAP_ITEM_CLASSIFIED, MAP_ITEM_LAND_FOR_SALE, MAP_ITEM_MATURE_EVENT, MAP_ITEM_PG_EVENT, MAP_ITEM_POPULAR, LLWorldMap::mClassifieds, LLVector3d::mdV, LLWorldMap::mIsTrackingCommit, LLWorldMap::mIsTrackingDoubleClick, LLWorldMap::mIsTrackingUnknownLocation, mItemPicked, LLWorldMap::mLandForSale, LLWorldMap::mMatureEvents, LLWorldMap::mPGEvents, LLWorldMap::mPopular, LLUUID::null, LLFloaterWorldMap::trackEvent(), LLFloaterWorldMap::trackLocation(), TRUE, viewPosToGlobal(), and VZ.

Referenced by handleDoubleClick(), and handleMouseUp().

BOOL LLWorldMapView::handleDoubleClick ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 1804 of file llworldmapview.cpp.

References LLFloater::close(), FALSE, gAgent, gFloaterWorldMap, gWorldMap, handleClick(), LLSimInfo::mAccess, MAP_ITEM_CLASSIFIED, MAP_ITEM_LAND_FOR_SALE, MAP_ITEM_MATURE_EVENT, MAP_ITEM_PG_EVENT, MAP_ITEM_POPULAR, LLWorldMap::mIsTrackingDoubleClick, LLWorldMap::mIsTrackingUnknownLocation, S32, sHandledLastClick, LLFloaterDirectory::showClassified(), LLFloaterDirectory::showEvents(), LLFloaterDirectory::showLandForSale(), LLFloaterDirectory::showPopular(), SIM_ACCESS_DOWN, LLWorldMap::simInfoFromPosGlobal(), LLAgent::teleportViaLocation(), TRUE, and viewPosToGlobal().

BOOL LLWorldMapView::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 1756 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::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 1671 of file llworldmapview.cpp.

References gFocusMgr, llround(), mMouseDownPanX, mMouseDownPanY, mMouseDownX, mMouseDownY, LLFocusMgr::setMouseCapture(), sHandledLastClick, sPanX, sPanY, and TRUE.

BOOL LLWorldMapView::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 1683 of file llworldmapview.cpp.

References LLRectBase< Type >::clipPointToRect(), FALSE, gFocusMgr, gViewerWindow, handleClick(), LLView::hasMouseCapture(), llfloor(), mMouseDownPanX, mMouseDownPanY, mMouseDownX, mMouseDownY, mPanning, LLView::mRect, NULL, S32, LLUI::setCursorPositionLocal(), LLFocusMgr::setMouseCapture(), LLViewerWindow::showCursor(), sPanX, sPanY, LLRectBase< Type >::stretch(), and TRUE.

BOOL LLWorldMapView::handleToolTip ( S32  x,
S32  y,
LLString msg,
LLRect sticky_rect_screen 
) [virtual]

Reimplemented from LLView.

Definition at line 1118 of file llworldmapview.cpp.

References LLViewerRegion::accessToString(), FALSE, gAgent, LLViewerRegion::getHandle(), LLAgent::getRegion(), LLView::getVisible(), gWorldMap, 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, LLView::pointInView(), LLViewerRegion::regionFlagsToString(), S32, SIM_ACCESS_DOWN, LLWorldMap::simInfoFromPosGlobal(), TRUE, and viewPosToGlobal().

void LLWorldMapView::initClass (  )  [static]

Reimplemented from LLThreadSafeRefCount.

Definition at line 103 of file llworldmapview.cpp.

References LLViewerImageList::getImage(), LLControlGroup::getString(), gImageList, gViewerArt, MIPMAP_FALSE, sAvatarAboveImage, sAvatarBelowImage, sAvatarLargeImage, sAvatarSmallImage, sAvatarYouSmallImage, sClassifiedsImage, LLUUID::set(), sEventImage, sEventMatureImage, sForSaleImage, sHomeImage, sInfohubImage, sPopularImage, sTelehubImage, sTrackArrowImage, sTrackCircleImage, and TRUE.

Referenced by LLViewerWindow::initWorldUI().

void LLWorldMapView::reshape ( S32  width,
S32  height,
BOOL  called_from_parent = TRUE 
) [virtual]

Reimplemented from LLView.

Definition at line 1494 of file llworldmapview.cpp.

References LLView::reshape().

void LLWorldMapView::setDirectionPos ( LLTextBox text_box,
F32  rotation 
) [protected]

Definition at line 1440 of file llworldmapview.cpp.

References LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), llmin(), llround(), LLView::mRect, and LLView::setOrigin().

void LLWorldMapView::setPan ( S32  x,
S32  y,
BOOL  snap = TRUE 
) [static]

Definition at line 278 of file llworldmapview.cpp.

References sPanX, sPanY, sTargetPanX, and sTargetPanY.

Referenced by LLFloaterWorldMap::centerOnTarget(), LLFloaterWorldMap::onShowAgentBtn(), and LLFloaterWorldMap::show().

void LLWorldMapView::setScale ( F32  scale  )  [static]

Definition at line 244 of file llworldmapview.cpp.

References f, gMapScale, REGION_WIDTH_METERS, sPanX, sPanY, sPixelsPerMeter, sTargetPanX, and sTargetPanY.

Referenced by LLFloaterWorldMap::draw().

void LLWorldMapView::setVisible ( BOOL  visible  )  [virtual]

Reimplemented from LLView.

Definition at line 809 of file llworldmapview.cpp.

References gWorldMap, LLWorldMapLayer::LayerImage, MAP_SIM_IMAGE_TYPES, LLWorldMap::mMapLayers, LLWorldMap::mSimInfoMap, S32, and LLView::setVisible().

void LLWorldMapView::translatePan ( S32  delta_x,
S32  delta_y 
) [static]

Definition at line 268 of file llworldmapview.cpp.

References sPanX, sPanY, sTargetPanX, and sTargetPanY.

Referenced by LLFloaterWorldMap::onPanBtn().

void LLWorldMapView::updateBlock ( S32  block_x,
S32  block_y 
)

Definition at line 1718 of file llworldmapview.cpp.

References gWorldMap, MAP_BLOCK_RES, LLWorldMap::mCurrentMap, LLWorldMap::mMapBlockLoaded, S32, LLWorldMap::sendMapBlockRequest(), and TRUE.

Referenced by updateVisibleBlocks().

void LLWorldMapView::updateDirections (  )  [protected]

Definition at line 1458 of file llworldmapview.cpp.

References bottom, LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), height, left, LLView::mRect, mTextBoxEast, mTextBoxNorth, mTextBoxNorthEast, mTextBoxNorthWest, mTextBoxSouth, mTextBoxSouthEast, mTextBoxSouthWest, mTextBoxWest, right, S32, LLView::setOrigin(), top, and width.

Referenced by draw().

void LLWorldMapView::updateVisibleBlocks (  ) 

Definition at line 1729 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().

LLVector3d LLWorldMapView::viewPosToGlobal ( S32  x,
S32  y 
)

Definition at line 1093 of file llworldmapview.cpp.

References f, gAgent, LLAgent::getCameraPositionGlobal(), LLRectBase< Type >::getHeight(), LLAgent::getPositionAgent(), LLRectBase< Type >::getWidth(), gMapScale, GODLY_TELEPORT_HEIGHT, LLAgent::isGodlike(), llfloor(), LLVector3d::mdV, LLView::mRect, LLVector3::mV, REGION_WIDTH_METERS, LLVector3d::setVec(), sPanX, sPanY, and VZ.

Referenced by handleClick(), handleDoubleClick(), and handleToolTip().


Member Data Documentation

LLColor4 LLWorldMapView::mBackgroundColor

Definition at line 144 of file llworldmapview.h.

Referenced by draw().

BOOL LLWorldMapView::mItemPicked

Definition at line 166 of file llworldmapview.h.

Referenced by handleClick().

S32 LLWorldMapView::mMouseDownPanX

Definition at line 177 of file llworldmapview.h.

Referenced by handleMouseDown(), and handleMouseUp().

S32 LLWorldMapView::mMouseDownPanY

Definition at line 178 of file llworldmapview.h.

Referenced by handleMouseDown(), and handleMouseUp().

S32 LLWorldMapView::mMouseDownX

Definition at line 179 of file llworldmapview.h.

Referenced by handleHover(), handleMouseDown(), and handleMouseUp().

S32 LLWorldMapView::mMouseDownY

Definition at line 180 of file llworldmapview.h.

Referenced by handleHover(), handleMouseDown(), and handleMouseUp().

BOOL LLWorldMapView::mPanning

Definition at line 176 of file llworldmapview.h.

Referenced by handleHover(), and handleMouseUp().

S32 LLWorldMapView::mSelectIDStart

Definition at line 194 of file llworldmapview.h.

LLTextBox* LLWorldMapView::mTextBoxEast

Definition at line 182 of file llworldmapview.h.

Referenced by LLWorldMapView(), and updateDirections().

LLTextBox* LLWorldMapView::mTextBoxNorth

Definition at line 183 of file llworldmapview.h.

Referenced by LLWorldMapView(), and updateDirections().

LLTextBox* LLWorldMapView::mTextBoxNorthEast

Definition at line 188 of file llworldmapview.h.

Referenced by LLWorldMapView(), and updateDirections().

LLTextBox* LLWorldMapView::mTextBoxNorthWest

Definition at line 189 of file llworldmapview.h.

Referenced by LLWorldMapView(), and updateDirections().

LLTextBox* LLWorldMapView::mTextBoxScrollHint

Definition at line 191 of file llworldmapview.h.

LLTextBox* LLWorldMapView::mTextBoxSouth

Definition at line 185 of file llworldmapview.h.

Referenced by LLWorldMapView(), and updateDirections().

LLTextBox* LLWorldMapView::mTextBoxSouthEast

Definition at line 187 of file llworldmapview.h.

Referenced by LLWorldMapView(), and updateDirections().

LLTextBox* LLWorldMapView::mTextBoxSouthWest

Definition at line 190 of file llworldmapview.h.

Referenced by LLWorldMapView(), and updateDirections().

LLTextBox* LLWorldMapView::mTextBoxWest

Definition at line 184 of file llworldmapview.h.

Referenced by LLWorldMapView(), and updateDirections().

handle_list_t LLWorldMapView::mVisibleRegions

Definition at line 197 of file llworldmapview.h.

Referenced by draw(), and drawAgents().

LLPointer< LLViewerImage > LLWorldMapView::sAvatarAboveImage = NULL [static]

Definition at line 149 of file llworldmapview.h.

Referenced by cleanupClass(), drawAvatar(), and initClass().

LLPointer< LLViewerImage > LLWorldMapView::sAvatarBelowImage = NULL [static]

Definition at line 150 of file llworldmapview.h.

Referenced by cleanupClass(), drawAvatar(), and initClass().

LLPointer< LLViewerImage > LLWorldMapView::sAvatarLargeImage = NULL [static]

Definition at line 148 of file llworldmapview.h.

Referenced by cleanupClass(), draw(), and initClass().

LLPointer< LLViewerImage > LLWorldMapView::sAvatarSmallImage = NULL [static]

Definition at line 147 of file llworldmapview.h.

Referenced by cleanupClass(), drawAgents(), drawAvatar(), and initClass().

LLPointer< LLViewerImage > LLWorldMapView::sAvatarYouSmallImage = NULL [static]

Definition at line 146 of file llworldmapview.h.

Referenced by cleanupClass(), LLNetMap::draw(), and initClass().

LLPointer< LLViewerImage > LLWorldMapView::sClassifiedsImage = NULL [static]

Definition at line 158 of file llworldmapview.h.

Referenced by cleanupClass(), draw(), and initClass().

LLPointer< LLViewerImage > LLWorldMapView::sEventImage = NULL [static]

Definition at line 154 of file llworldmapview.h.

Referenced by cleanupClass(), drawEvents(), and initClass().

LLPointer< LLViewerImage > LLWorldMapView::sEventMatureImage = NULL [static]

Definition at line 155 of file llworldmapview.h.

Referenced by cleanupClass(), drawEvents(), and initClass().

LLPointer< LLViewerImage > LLWorldMapView::sForSaleImage = NULL [static]

Definition at line 160 of file llworldmapview.h.

Referenced by cleanupClass(), draw(), and initClass().

BOOL LLWorldMapView::sHandledLastClick = FALSE [static]

Definition at line 193 of file llworldmapview.h.

Referenced by clearLastClick(), handleDoubleClick(), and handleMouseDown().

LLPointer< LLViewerImage > LLWorldMapView::sHomeImage = NULL [static]

Definition at line 153 of file llworldmapview.h.

Referenced by cleanupClass(), draw(), and initClass().

LLPointer< LLViewerImage > LLWorldMapView::sInfohubImage = NULL [static]

Definition at line 152 of file llworldmapview.h.

Referenced by cleanupClass(), draw(), and initClass().

F32 LLWorldMapView::sPanX = 0.f [static]

Definition at line 168 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 169 of file llworldmapview.h.

Referenced by draw(), drawFrustum(), globalPosToView(), handleHover(), handleMouseDown(), handleMouseUp(), setPan(), setScale(), translatePan(), updateVisibleBlocks(), and viewPosToGlobal().

F32 LLWorldMapView::sPixelsPerMeter = 1.f [static]

Definition at line 164 of file llworldmapview.h.

Referenced by LLFloaterWorldMap::centerOnTarget(), globalPosToView(), LLWorldMapView(), and setScale().

LLPointer< LLViewerImage > LLWorldMapView::sPopularImage = NULL [static]

Definition at line 159 of file llworldmapview.h.

Referenced by cleanupClass(), draw(), and initClass().

F32 LLWorldMapView::sTargetPanX = 0.f [static]

Definition at line 170 of file llworldmapview.h.

Referenced by draw(), handleHover(), setPan(), setScale(), and translatePan().

F32 LLWorldMapView::sTargetPanY = 0.f [static]

Definition at line 171 of file llworldmapview.h.

Referenced by draw(), handleHover(), setPan(), setScale(), and translatePan().

LLPointer< LLViewerImage > LLWorldMapView::sTelehubImage = NULL [static]

Definition at line 151 of file llworldmapview.h.

Referenced by cleanupClass(), draw(), and initClass().

F32 LLWorldMapView::sThresholdA = 48.f [static]

Definition at line 162 of file llworldmapview.h.

Referenced by draw().

F32 LLWorldMapView::sThresholdB = 96.f [static]

Definition at line 163 of file llworldmapview.h.

Referenced by draw().

LLPointer< LLViewerImage > LLWorldMapView::sTrackArrowImage = NULL [static]

Definition at line 157 of file llworldmapview.h.

Referenced by cleanupClass(), LLTracker::drawMarker(), drawTrackingArrow(), and initClass().

LLPointer< LLViewerImage > LLWorldMapView::sTrackCircleImage = NULL [static]

Definition at line 156 of file llworldmapview.h.

Referenced by cleanupClass(), drawTracking(), drawTrackingDot(), and initClass().

S32 LLWorldMapView::sTrackingArrowX = 0 [static]

Definition at line 172 of file llworldmapview.h.

Referenced by drawTracking(), and drawTrackingArrow().

S32 LLWorldMapView::sTrackingArrowY = 0 [static]

Definition at line 173 of file llworldmapview.h.

Referenced by drawTracking(), and drawTrackingArrow().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:12:04 2010 for Second Life Viewer by  doxygen 1.4.7