LLNetMap Class Reference

#include <llnetmap.h>

Inheritance diagram for LLNetMap:

Inheritance graph
[legend]
Collaboration diagram for LLNetMap:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLNetMap (const std::string &name, const LLRect &rect, const LLColor4 &bg_color)
virtual ~LLNetMap ()
virtual void draw ()
virtual BOOL handleDoubleClick (S32 x, S32 y, MASK mask)
virtual BOOL handleRightMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleScrollWheel (S32 x, S32 y, S32 clicks)
virtual BOOL handleToolTip (S32 x, S32 y, LLString &msg, LLRect *sticky_rect_screen)
void setScale (F32 scale)
void translatePan (F32 delta_x, F32 delta_y)
void setPan (F32 x, F32 y)
const LLVector3dgetObjectImageCenterGlobal ()
void renderPoint (const LLVector3 &pos, const LLColor4U &color, S32 diameter, S32 relative_height=0)
void renderScaledPointGlobal (const LLVector3d &pos, const LLColor4U &color, F32 radius)
LLVector3 globalPosToView (const LLVector3d &global_pos)
LLVector3d viewPosToGlobal (S32 x, S32 y)
void drawTracking (const LLVector3d &pos_global, const LLColor4 &color, BOOL draw_arrow=TRUE)

Static Public Member Functions

static void setRotateMap (BOOL b)
static void handleZoomLevel (void *which)

Public Attributes

LLHandle< LLViewmPopupMenuHandle
LLColor4 mBackgroundColor
F32 mScale
F32 mPixelsPerMeter
F32 mObjectMapTPM
F32 mObjectMapPixels
F32 mTargetPanX
F32 mTargetPanY
F32 mCurPanX
F32 mCurPanY
BOOL mUpdateNow
LLVector3d mObjectImageCenterGlobal
LLPointer< LLImageRawmObjectRawImagep
LLPointer< LLImageGLmObjectImagep
LLTextBoxmTextBoxEast
LLTextBoxmTextBoxNorth
LLTextBoxmTextBoxWest
LLTextBoxmTextBoxSouth
LLTextBoxmTextBoxSouthEast
LLTextBoxmTextBoxNorthEast
LLTextBoxmTextBoxNorthWest
LLTextBoxmTextBoxSouthWest

Static Public Attributes

static BOOL sRotateMap = FALSE
static LLNetMapsInstance = NULL

Protected Member Functions

void setDirectionPos (LLTextBox *text_box, F32 rotation)
void createObjectImage ()

Static Protected Member Functions

static void teleport (const LLVector3d &destination)
static void fly (const LLVector3d &destination)


Detailed Description

Definition at line 48 of file llnetmap.h.


Constructor & Destructor Documentation

LLNetMap::LLNetMap ( const std::string &  name,
const LLRect rect,
const LLColor4 bg_color 
)

LLNetMap::~LLNetMap (  )  [virtual]

Definition at line 171 of file llnetmap.cpp.

References NULL, and sInstance.


Member Function Documentation

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.

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

Reimplemented from LLView.

Definition at line 765 of file llnetmap.cpp.

References FALSE, NULL, LLFloaterWorldMap::show(), and TRUE.

Here is the call graph for this function:

BOOL LLNetMap::handleRightMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

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().

Here is the call graph for this function:

BOOL LLNetMap::handleScrollWheel ( S32  x,
S32  y,
S32  clicks 
) [virtual]

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.

Here is the call graph for this function:

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

void LLNetMap::setScale ( F32  scale  ) 

void LLNetMap::translatePan ( F32  delta_x,
F32  delta_y 
)

Definition at line 201 of file llnetmap.cpp.

References mTargetPanX, and mTargetPanY.

void LLNetMap::setPan ( F32  x,
F32  y 
) [inline]

Definition at line 62 of file llnetmap.h.

References mTargetPanX, and mTargetPanY.

const LLVector3d& LLNetMap::getObjectImageCenterGlobal (  )  [inline]

Definition at line 64 of file llnetmap.h.

References mObjectImageCenterGlobal.

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

LLVector3 LLNetMap::globalPosToView ( const LLVector3d global_pos  ) 

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

static void LLNetMap::setRotateMap ( BOOL  b  )  [inline, static]

Definition at line 72 of file llnetmap.h.

References sRotateMap.

Referenced by handleRotateNetMapChanged().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static void LLNetMap::teleport ( const LLVector3d destination  )  [static, protected]

static void LLNetMap::fly ( const LLVector3d destination  )  [static, protected]


Member Data Documentation

Definition at line 86 of file llnetmap.h.

Referenced by handleRightMouseDown(), and LLNetMap().

Definition at line 87 of file llnetmap.h.

Referenced by draw().

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 92 of file llnetmap.h.

Referenced by draw(), and setScale().

Definition at line 93 of file llnetmap.h.

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

Definition at line 94 of file llnetmap.h.

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

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().

Definition at line 101 of file llnetmap.h.

Referenced by draw(), and LLNetMap().

Definition at line 102 of file llnetmap.h.

Referenced by draw(), and LLNetMap().

Definition at line 103 of file llnetmap.h.

Referenced by draw(), and LLNetMap().

Definition at line 104 of file llnetmap.h.

Referenced by draw(), and LLNetMap().

Definition at line 106 of file llnetmap.h.

Referenced by draw(), and LLNetMap().

Definition at line 107 of file llnetmap.h.

Referenced by draw(), and LLNetMap().

Definition at line 108 of file llnetmap.h.

Referenced by draw(), and LLNetMap().

Definition at line 109 of file llnetmap.h.

Referenced by draw(), and LLNetMap().

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]

Definition at line 112 of file llnetmap.h.

Referenced by LLNetMap(), and ~LLNetMap().


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

Generated on Fri May 16 08:54:33 2008 for SecondLife by  doxygen 1.5.5