#include <llnetmap.h>
Definition at line 48 of file llnetmap.h.
Definition at line 83 of file llnetmap.cpp.
References LLView::addChild(), LLMenuGL::append(), LLMenuGL::appendSeparator(), FALSE, gAgent, LLControlGroup::getBOOL(), LLAgent::getCameraPositionGlobal(), LLView::getHandle(), gMiniMapScale, gSavedSettings, handleZoomLevel(), LLTracker::isTracking(), mObjectImageCenterGlobal, mPixelsPerMeter, mPopupMenuHandle, LLRectBase< Type >::mRight, mTextBoxEast, mTextBoxNorth, mTextBoxNorthEast, mTextBoxNorthWest, mTextBoxSouth, mTextBoxSouthEast, mTextBoxSouthWest, mTextBoxWest, NULL, REGION_WIDTH_METERS, S32, LLMenuGL::setCanTearOff(), LLTextBox::setColor(), LLMenuGL::setVisible(), sInstance, sRotateMap, and LLTracker::stopTracking().
LLNetMap::~LLNetMap | ( | ) | [virtual] |
void LLNetMap::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 210 of file llnetmap.cpp.
References ABOVE_WATERLINE_ALPHA, LLGLImmediate::begin(), LLViewerImage::bindTexture(), LLGLImmediate::color4f(), LLGLImmediate::color4fv(), createObjectImage(), LLView::draw(), LLWorldMapView::drawAvatar(), drawTracking(), LLGLImmediate::end(), F_PI, F_PI_BY_TWO, FALSE, gAgent, gAvatarMapColor, LLDynamicArray< Type, BlockSize >::get(), LLCamera::getAspect(), LLAgent::getAutoPilot(), LLAgent::getAutoPilotTargetGlobal(), LLAgent::getCameraPositionAgent(), LLAgent::getCameraPositionGlobal(), LLFrameTimer::getElapsedTimeF32(), LLCamera::getFar(), LLRectBase< Type >::getHeight(), LLSingleton< LLWorld >::getInstance(), LLSingleton< LLViewerCamera >::getInstance(), LLCriticalDamp::getInterpolant(), LLViewerRegion::getLand(), LLView::getLocalRect(), LLViewerRegion::getOriginAgent(), LLViewerRegion::getOriginGlobal(), LLAgent::getPosAgentFromGlobal(), LLAgent::getPositionGlobal(), LLView::getRect(), LLAgent::getRegion(), LLWorld::getRegionWidthInMeters(), LLSurface::getSTexture(), LLTracker::getTrackedPositionGlobal(), LLTracker::getTrackingStatus(), LLCamera::getView(), LLSurface::getWaterTexture(), LLRectBase< Type >::getWidth(), gFriendMapColor, gFrustumMapColor, gGL, gl_rect_2d(), globalPosToView(), gMiniMapScale, gObjectList, gRotatingFrustumMapColor, gTrackColor, i, LLAvatarTracker::instance(), is_agent_friend(), LLPointer< Type >::isNull(), lerp(), llfloor(), llround(), LLWorld::mActiveRegionList, LLViewerRegion::mAlive, mBackgroundColor, mCurPanX, mCurPanY, LLVector3d::mdV, LLViewerRegion::mMapAvatarIDs, LLViewerRegion::mMapAvatars, mObjectImageCenterGlobal, mObjectImagep, mObjectMapPixels, mObjectMapTPM, mObjectRawImagep, mTargetPanX, mTargetPanY, mTextBoxEast, mTextBoxNorth, mTextBoxNorthEast, mTextBoxNorthWest, mTextBoxSouth, mTextBoxSouthEast, mTextBoxSouthWest, mTextBoxWest, mUpdateNow, LLVector3::mV, LLColor4::mV, LLGLImmediate::popMatrix(), LLGLImmediate::pushMatrix(), LLVertexBuffer::QUADS, RAD_TO_DEG, LLViewerObjectList::renderObjectsForMap(), LLFrameTimer::reset(), S32, LLWorldMapView::sAvatarYouSmallImage, setDirectionPos(), LLVector3d::setVec(), sRotateMap, LLGLImmediate::texCoord2f(), LLTracker::TRACKING_AVATAR, LLTracker::TRACKING_LANDMARK, LLTracker::TRACKING_LOCATION, LLGLImmediate::translatef(), LLVertexBuffer::TRIANGLES, LLGLImmediate::vertex2f(), VX, VY, and VZ.
Reimplemented from LLView.
Definition at line 765 of file llnetmap.cpp.
References FALSE, NULL, LLFloaterWorldMap::show(), and TRUE.
Reimplemented from LLView.
Definition at line 771 of file llnetmap.cpp.
References LLMenuGL::buildDrawLabels(), LLHandle< T >::get(), mPopupMenuHandle, LLMenuGL::showPopup(), LLMenuGL::sMenuContainer, TRUE, and LLMenuGL::updateParent().
Reimplemented from LLView.
Definition at line 576 of file llnetmap.cpp.
References gMiniMapScale, llclamp(), MAP_SCALE_INCREMENT, MAP_SCALE_MAX, MAP_SCALE_MIN, setScale(), and TRUE.
BOOL LLNetMap::handleToolTip | ( | S32 | x, | |
S32 | y, | |||
LLString & | msg, | |||
LLRect * | sticky_rect_screen | |||
) | [virtual] |
Reimplemented from LLView.
Definition at line 583 of file llnetmap.cpp.
References FALSE, gDisconnected, LLViewerRegion::getHost(), LLHost::getHostName(), LLSingleton< LLWorld >::getInstance(), LLViewerRegion::getName(), LLWorld::getRegionFromPosGlobal(), LLHost::getString(), LLView::localPointToScreen(), MAX_STRING, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, S32, TRUE, and viewPosToGlobal().
void LLNetMap::setScale | ( | F32 | scale | ) |
Definition at line 176 of file llnetmap.cpp.
References LLRectBase< Type >::getHeight(), LLSingleton< LLWorld >::getInstance(), LLView::getRect(), LLWorld::getRegionWidthInMeters(), LLRectBase< Type >::getWidth(), gMiniMapScale, mObjectImagep, mObjectMapPixels, mObjectMapTPM, mPixelsPerMeter, mUpdateNow, LLPointer< Type >::notNull(), REGION_WIDTH_METERS, and TRUE.
Referenced by createObjectImage(), handleScrollWheel(), and handleZoomLevel().
const LLVector3d& LLNetMap::getObjectImageCenterGlobal | ( | ) | [inline] |
void LLNetMap::renderPoint | ( | const LLVector3 & | pos, | |
const LLColor4U & | color, | |||
S32 | diameter, | |||
S32 | relative_height = 0 | |||
) |
Definition at line 650 of file llnetmap.cpp.
References llround(), LLColor4U::mAll, mObjectImagep, mObjectMapTPM, mObjectRawImagep, LLVector3::mV, S32, VX, and VY.
Referenced by renderScaledPointGlobal().
void LLNetMap::renderScaledPointGlobal | ( | const LLVector3d & | pos, | |
const LLColor4U & | color, | |||
F32 | radius | |||
) |
Definition at line 640 of file llnetmap.cpp.
References llround(), mObjectImageCenterGlobal, mObjectMapTPM, renderPoint(), S32, and LLVector3::setVec().
Referenced by LLViewerObjectList::renderObjectsForMap().
LLVector3 LLNetMap::globalPosToView | ( | const LLVector3d & | global_pos | ) |
Definition at line 503 of file llnetmap.cpp.
References gAgent, LLAgent::getCameraPositionGlobal(), LLRectBase< Type >::getHeight(), LLSingleton< LLViewerCamera >::getInstance(), LLView::getRect(), LLRectBase< Type >::getWidth(), mCurPanX, mCurPanY, mPixelsPerMeter, LLVector3::mV, LLVector3::rotVec(), LLVector3::setVec(), sRotateMap, VX, and VY.
Referenced by draw(), and drawTracking().
LLVector3d LLNetMap::viewPosToGlobal | ( | S32 | x, | |
S32 | y | |||
) |
Definition at line 552 of file llnetmap.cpp.
References gAgent, LLAgent::getCameraPositionGlobal(), LLSingleton< LLWorld >::getInstance(), LLSingleton< LLViewerCamera >::getInstance(), LLView::getRect(), LLWorld::getRegionWidthInMeters(), gMiniMapScale, llround(), mCurPanX, mCurPanY, LLVector3::rotVec(), LLVector3d::setVec(), sRotateMap, VX, and VY.
Referenced by handleToolTip().
static void LLNetMap::setRotateMap | ( | BOOL | b | ) | [inline, static] |
Definition at line 72 of file llnetmap.h.
References sRotateMap.
Referenced by handleRotateNetMapChanged().
void LLNetMap::handleZoomLevel | ( | void * | which | ) | [static] |
Definition at line 785 of file llnetmap.cpp.
References MAP_SCALE_MAX, MAP_SCALE_MID, MAP_SCALE_MIN, and setScale().
Referenced by LLNetMap().
void LLNetMap::drawTracking | ( | const LLVector3d & | pos_global, | |
const LLColor4 & | color, | |||
BOOL | draw_arrow = TRUE | |||
) |
Definition at line 526 of file llnetmap.cpp.
References LLWorldMapView::drawTrackingArrow(), LLWorldMapView::drawTrackingCircle(), LLWorldMapView::drawTrackingDot(), LLView::getRect(), globalPosToView(), llround(), LLVector3::mV, S32, VX, VY, and VZ.
Referenced by draw().
Definition at line 620 of file llnetmap.cpp.
References LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), llmin(), llround(), and LLView::setOrigin().
Referenced by draw().
void LLNetMap::createObjectImage | ( | ) | [protected] |
Definition at line 735 of file llnetmap.cpp.
References FALSE, LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), gMiniMapScale, LLPointer< Type >::isNull(), MAX_SIZE, mObjectImagep, mObjectRawImagep, mUpdateNow, S32, setScale(), and TRUE.
Referenced by draw().
static void LLNetMap::teleport | ( | const LLVector3d & | destination | ) | [static, protected] |
static void LLNetMap::fly | ( | const LLVector3d & | destination | ) | [static, protected] |
Definition at line 89 of file llnetmap.h.
Definition at line 90 of file llnetmap.h.
Referenced by globalPosToView(), LLNetMap(), and setScale().
Definition at line 91 of file llnetmap.h.
Referenced by draw(), renderPoint(), renderScaledPointGlobal(), and setScale().
Definition at line 95 of file llnetmap.h.
Referenced by draw(), globalPosToView(), and viewPosToGlobal().
Definition at line 96 of file llnetmap.h.
Referenced by draw(), globalPosToView(), and viewPosToGlobal().
Definition at line 97 of file llnetmap.h.
Referenced by createObjectImage(), draw(), and setScale().
Definition at line 98 of file llnetmap.h.
Referenced by draw(), getObjectImageCenterGlobal(), LLNetMap(), and renderScaledPointGlobal().
Definition at line 99 of file llnetmap.h.
Referenced by createObjectImage(), draw(), and renderPoint().
Definition at line 100 of file llnetmap.h.
Referenced by createObjectImage(), draw(), renderPoint(), and setScale().
BOOL LLNetMap::sRotateMap = FALSE [static] |
Definition at line 111 of file llnetmap.h.
Referenced by draw(), globalPosToView(), LLNetMap(), setRotateMap(), and viewPosToGlobal().
LLNetMap * LLNetMap::sInstance = NULL [static] |