LLFloaterWorldMap Class Reference

#include <llfloaterworldmap.h>

Inheritance diagram for LLFloaterWorldMap:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterWorldMap:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLFloaterWorldMap ()
virtual ~LLFloaterWorldMap ()
BOOL postBuild ()
void onClose (bool app_quitting)
void reshape (S32 width, S32 height, BOOL called_from_parent=TRUE)
BOOL handleHover (S32 x, S32 y, MASK mask)
BOOL handleScrollWheel (S32 x, S32 y, S32 clicks)
void setVisible (BOOL visible)
void draw ()
void observeInventory (LLInventoryModel *inventory)
void inventoryChanged ()
void observeFriends ()
void friendsChanged ()
void trackAvatar (const LLUUID &avatar_id, const LLString &name)
void trackLandmark (const LLUUID &landmark_item_id)
void trackLocation (const LLVector3d &pos)
void trackEvent (const LLItemInfo &event_info)
void trackGenericItem (const LLItemInfo &item)
void trackURL (const LLString &region_name, S32 x_coord, S32 y_coord, S32 z_coord)
F32 getDistanceToDestination (const LLVector3d &pos_global, F32 z_attenuation=0.5f) const
void clearLocationSelection (BOOL clear_ui=FALSE)
void clearAvatarSelection (BOOL clear_ui=FALSE)
void clearLandmarkSelection (BOOL clear_ui=FALSE)
void adjustZoomSliderBounds ()
void updateSims (bool found_null_sim)
void teleport ()

Static Public Member Functions

static void * createWorldMapView (void *data)
static void show (void *, BOOL center_on_target)
static void reloadIcons (void *)
static void toggle (void *)
static void hide (void *)
static const LLUUIDgetHomeID ()

Protected Member Functions

void centerOnTarget (BOOL animate)
void updateLocation ()
void fly ()
void buildLandmarkIDLists ()
void flyToLandmark ()
void teleportToLandmark ()
void setLandmarkVisited ()
void buildAvatarIDList ()
void flyToAvatar ()
void teleportToAvatar ()
void cacheLandmarkPosition ()

Static Protected Member Functions

static void onPanBtn (void *userdata)
static void onGoHome (void *data)
static void onLandmarkComboPrearrange (LLUICtrl *ctrl, void *data)
static void onLandmarkComboCommit (LLUICtrl *ctrl, void *data)
static void onAvatarComboPrearrange (LLUICtrl *ctrl, void *data)
static void onAvatarComboCommit (LLUICtrl *ctrl, void *data)
static void onCommitBackground (void *data, bool from_click)
static void onComboTextEntry (LLLineEditor *ctrl, void *data)
static void onSearchTextEntry (LLLineEditor *ctrl, void *data)
static void onClearBtn (void *)
static void onFlyBtn (void *)
static void onClickTeleportBtn (void *)
static void onShowTargetBtn (void *)
static void onShowAgentBtn (void *)
static void onCopySLURL (void *)
static void onCheckEvents (LLUICtrl *ctrl, void *)
static void onGoToLandmarkDialog (S32 option, void *userdata)
static void updateSearchEnabled (LLUICtrl *ctrl, void *userdata)
static void onLocationFocusChanged (LLFocusableElement *ctrl, void *userdata)
static void onLocationCommit (void *userdata)
static void onCommitLocation (LLUICtrl *ctrl, void *userdata)
static void onCommitSearchResult (LLUICtrl *ctrl, void *userdata)

Protected Attributes

LLTabContainermTabs
F32 mCurZoomVal
LLFrameTimer mZoomTimer
LLDynamicArray< LLUUIDmLandmarkAssetIDList
LLDynamicArray< LLUUIDmLandmarkItemIDList
BOOL mHasLandmarkPosition
LLInventoryModelmInventory
LLInventoryObservermInventoryObserver
LLFriendObservermFriendObserver
LLString mCompletingRegionName
LLString mLastRegionName
BOOL mWaitingForTracker
BOOL mExactMatch
BOOL mIsClosing
BOOL mSetToUserPosition
LLVector3d mTrackedLocation
LLTracker::ETrackingStatus mTrackedStatus
LLString mTrackedSimName
LLString mTrackedAvatarName
LLString mSLURL

Static Protected Attributes

static const LLUUID sHomeID


Detailed Description

Definition at line 54 of file llfloaterworldmap.h.


Constructor & Destructor Documentation

LLFloaterWorldMap::LLFloaterWorldMap (  ) 

Definition at line 152 of file llfloaterworldmap.cpp.

References LLUICtrlFactory::buildFloater(), createWorldMapView(), LLSingleton< LLUICtrlFactory >::getInstance(), and NULL.

Here is the call graph for this function:

LLFloaterWorldMap::~LLFloaterWorldMap (  )  [virtual]

Definition at line 260 of file llfloaterworldmap.cpp.

References mFriendObserver, mInventory, mInventoryObserver, mTabs, and NULL.


Member Function Documentation

void * LLFloaterWorldMap::createWorldMapView ( void *  data  )  [static]

Definition at line 172 of file llfloaterworldmap.cpp.

Referenced by LLFloaterWorldMap().

Here is the caller graph for this function:

BOOL LLFloaterWorldMap::postBuild ( void   )  [virtual]

void LLFloaterWorldMap::onClose ( bool  app_quitting  )  [virtual]

Reimplemented from LLFloater.

Definition at line 275 of file llfloaterworldmap.cpp.

References FALSE, and setVisible().

Here is the call graph for this function:

void LLFloaterWorldMap::show ( void *  ,
BOOL  center_on_target 
) [static]

void LLFloaterWorldMap::reloadIcons ( void *   )  [static]

Definition at line 341 of file llfloaterworldmap.cpp.

References LLWorldMap::eraseItems(), LLSingleton< LLWorldMap >::getInstance(), and LLWorldMap::sendMapLayerRequest().

Referenced by handle_toggle_pg().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::toggle ( void *   )  [static]

Definition at line 350 of file llfloaterworldmap.cpp.

References LLFloater::close(), FALSE, LLView::getVisible(), mIsClosing, NULL, show(), and TRUE.

Referenced by handle_map(), and LLShowFloater::handleEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::hide ( void *   )  [static]

Definition at line 367 of file llfloaterworldmap.cpp.

References LLFloater::close(), mIsClosing, and TRUE.

Referenced by LLAgent::teleportCore().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from LLFloater.

Definition at line 411 of file llfloaterworldmap.cpp.

References LLFloater::reshape().

Here is the call graph for this function:

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

Reimplemented from LLView.

Definition at line 390 of file llfloaterworldmap.cpp.

References LLView::handleHover().

Here is the call graph for this function:

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

Reimplemented from LLView.

Definition at line 397 of file llfloaterworldmap.cpp.

References LLSD::asReal(), LLPanel::childGetValue(), LLPanel::childSetValue(), FALSE, LLFloater::isFrontmost(), LLFloater::isMinimized(), and TRUE.

Here is the call graph for this function:

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

Reimplemented from LLFloater.

Definition at line 375 of file llfloaterworldmap.cpp.

References LLWorldMap::clearImageRefs(), LLSingleton< LLWorldMap >::getInstance(), gSavedSettings, LLControlGroup::setBOOL(), and LLFloater::setVisible().

Referenced by LLViewerWindow::initWorldUI(), and onClose().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::draw ( void   )  [virtual]

void LLFloaterWorldMap::observeInventory ( LLInventoryModel inventory  ) 

Definition at line 767 of file llfloaterworldmap.cpp.

References LLInventoryModel::addObserver(), inventoryChanged(), mInventory, mInventoryObserver, NULL, and LLInventoryModel::removeObserver().

Referenced by idle_startup().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::inventoryChanged (  ) 

Definition at line 786 of file llfloaterworldmap.cpp.

References buildLandmarkIDLists(), LLTracker::getTrackedLandmarkItemID(), and trackLandmark().

Referenced by LLMapInventoryObserver::changed(), and observeInventory().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::observeFriends (  ) 

Definition at line 796 of file llfloaterworldmap.cpp.

References LLAvatarTracker::addObserver(), friendsChanged(), LLAvatarTracker::instance(), and mFriendObserver.

Referenced by idle_startup().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::friendsChanged (  ) 

void LLFloaterWorldMap::trackAvatar ( const LLUUID avatar_id,
const LLString name 
)

void LLFloaterWorldMap::trackLandmark ( const LLUUID landmark_item_id  ) 

void LLFloaterWorldMap::trackLocation ( const LLVector3d pos  ) 

void LLFloaterWorldMap::trackEvent ( const LLItemInfo event_info  ) 

Definition at line 593 of file llfloaterworldmap.cpp.

References LLTracker::LOCATION_EVENT, LLItemInfo::mName, LLItemInfo::mPosGlobal, LLItemInfo::mToolTip, mTrackedStatus, LLPanel::setDefaultBtn(), LLTracker::TRACKING_LOCATION, and LLTracker::trackLocation().

Referenced by LLWorldMapView::handleClick().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::trackGenericItem ( const LLItemInfo item  ) 

Definition at line 600 of file llfloaterworldmap.cpp.

References LLTracker::LOCATION_ITEM, LLItemInfo::mName, LLItemInfo::mPosGlobal, LLItemInfo::mToolTip, mTrackedStatus, LLPanel::setDefaultBtn(), LLTracker::TRACKING_LOCATION, and LLTracker::trackLocation().

Referenced by LLWorldMapView::checkItemHit().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::trackURL ( const LLString region_name,
S32  x_coord,
S32  y_coord,
S32  z_coord 
)

static const LLUUID& LLFloaterWorldMap::getHomeID (  )  [inline, static]

Definition at line 95 of file llfloaterworldmap.h.

References sHomeID.

Referenced by LLTracker::cacheLandmarkPosition().

Here is the caller graph for this function:

F32 LLFloaterWorldMap::getDistanceToDestination ( const LLVector3d pos_global,
F32  z_attenuation = 0.5f 
) const

Definition at line 914 of file llfloaterworldmap.cpp.

References gAgent, LLAgent::getPositionGlobal(), LLVector3d::magVec(), LLVector3d::mdV, and VZ.

Referenced by LLTracker::cacheLandmarkPosition(), and LLTracker::render3D().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::clearLocationSelection ( BOOL  clear_ui = FALSE  ) 

void LLFloaterWorldMap::clearAvatarSelection ( BOOL  clear_ui = FALSE  ) 

Definition at line 964 of file llfloaterworldmap.cpp.

References LLPanel::childGetListInterface(), LLView::childHasKeyboardFocus(), mTrackedStatus, LLCtrlSelectionInterface::selectByValue(), and LLTracker::TRACKING_NOTHING.

Referenced by LLTracker::stopTrackingAvatar().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::clearLandmarkSelection ( BOOL  clear_ui = FALSE  ) 

Definition at line 951 of file llfloaterworldmap.cpp.

References LLPanel::childGetListInterface(), LLView::childHasKeyboardFocus(), and LLCtrlSelectionInterface::selectByValue().

Referenced by LLTracker::stopTrackingLandmark().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::adjustZoomSliderBounds (  ) 

void LLFloaterWorldMap::updateSims ( bool  found_null_sim  ) 

void LLFloaterWorldMap::teleport (  ) 

void LLFloaterWorldMap::onPanBtn ( void *  userdata  )  [static, protected]

Definition at line 1025 of file llfloaterworldmap.cpp.

References LLTabContainer::getCurrentPanel(), llassert, mTabs, PAN_DOWN, PAN_LEFT, PAN_RIGHT, PAN_UP, S32, and LLWorldMapView::translatePan().

Here is the call graph for this function:

void LLFloaterWorldMap::onGoHome ( void *  data  )  [static, protected]

Definition at line 1048 of file llfloaterworldmap.cpp.

References LLFloater::close(), gAgent, and LLAgent::teleportHome().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::onLandmarkComboPrearrange ( LLUICtrl ctrl,
void *  data 
) [static, protected]

Definition at line 1056 of file llfloaterworldmap.cpp.

References buildLandmarkIDLists(), LLPanel::childGetListInterface(), LLCtrlSelectionInterface::getCurrentID(), LLUUID::isNull(), NULL, LLCtrlSelectionInterface::setCurrentByID(), and LLTracker::stopTracking().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::onLandmarkComboCommit ( LLUICtrl ctrl,
void *  data 
) [static, protected]

void LLFloaterWorldMap::onAvatarComboPrearrange ( LLUICtrl ctrl,
void *  data 
) [static, protected]

Definition at line 1143 of file llfloaterworldmap.cpp.

References LLPanel::childGetListInterface(), LLAvatarTracker::getAvatarID(), LLAvatarTracker::instance(), LLUUID::isNull(), NULL, LLCtrlSelectionInterface::setCurrentByID(), and LLTracker::stopTracking().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::onAvatarComboCommit ( LLUICtrl ctrl,
void *  data 
) [static, protected]

Definition at line 1171 of file llfloaterworldmap.cpp.

References LLPanel::childGetListInterface(), LLView::getChild(), LLCtrlSelectionInterface::getCurrentID(), LLComboBox::getSimple(), LLTracker::getTrackingStatus(), LLUUID::notNull(), onShowTargetBtn(), and LLTracker::TRACKING_NOTHING.

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::onCommitBackground ( void *  data,
bool  from_click 
) [static, protected]

Definition at line 1525 of file llfloaterworldmap.cpp.

References LLSingleton< LLWorldMap >::getInstance(), S32, and LLWorldMap::setCurrentLayer().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::onComboTextEntry ( LLLineEditor ctrl,
void *  data 
) [static, protected]

Definition at line 1078 of file llfloaterworldmap.cpp.

References LLTracker::clearFocus().

Referenced by onSearchTextEntry(), and postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::onSearchTextEntry ( LLLineEditor ctrl,
void *  data 
) [static, protected]

Definition at line 1087 of file llfloaterworldmap.cpp.

References onComboTextEntry(), and updateSearchEnabled().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::onClearBtn ( void *  data  )  [static, protected]

Definition at line 1258 of file llfloaterworldmap.cpp.

References FALSE, LLSingleton< LLWorldMap >::getInstance(), LLWorldMap::mIsTrackingUnknownLocation, LLTracker::stopTracking(), LLTracker::TRACKING_NOTHING, and TRUE.

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::onFlyBtn ( void *  data  )  [static, protected]

Definition at line 1269 of file llfloaterworldmap.cpp.

void LLFloaterWorldMap::onClickTeleportBtn ( void *  data  )  [static, protected]

Definition at line 1291 of file llfloaterworldmap.cpp.

Referenced by postBuild().

Here is the caller graph for this function:

void LLFloaterWorldMap::onShowTargetBtn ( void *  data  )  [static, protected]

Definition at line 1275 of file llfloaterworldmap.cpp.

References TRUE.

Referenced by onAvatarComboCommit(), onCommitSearchResult(), onLandmarkComboCommit(), and postBuild().

Here is the caller graph for this function:

void LLFloaterWorldMap::onShowAgentBtn ( void *  data  )  [static, protected]

Definition at line 1281 of file llfloaterworldmap.cpp.

References FALSE, LLWorldMapView::setPan(), and TRUE.

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::onCopySLURL ( void *  data  )  [static, protected]

Definition at line 1298 of file llfloaterworldmap.cpp.

References LLWindow::copyTextToClipboard(), gViewerWindow, LLViewerWindow::mWindow, LLAlertDialog::showXml(), and utf8str_to_wstring().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::onCheckEvents ( LLUICtrl ctrl,
void *  data 
) [static, protected]

Definition at line 1309 of file llfloaterworldmap.cpp.

void LLFloaterWorldMap::centerOnTarget ( BOOL  animate  )  [protected]

void LLFloaterWorldMap::updateLocation (  )  [protected]

void LLFloaterWorldMap::fly (  )  [protected]

void LLFloaterWorldMap::buildLandmarkIDLists (  )  [protected]

void LLFloaterWorldMap::onGoToLandmarkDialog ( S32  option,
void *  userdata 
) [static, protected]

Definition at line 1436 of file llfloaterworldmap.cpp.

void LLFloaterWorldMap::flyToLandmark (  )  [protected]

void LLFloaterWorldMap::teleportToLandmark (  )  [protected]

void LLFloaterWorldMap::setLandmarkVisited (  )  [protected]

void LLFloaterWorldMap::buildAvatarIDList (  )  [protected]

void LLFloaterWorldMap::flyToAvatar (  )  [protected]

Definition at line 1516 of file llfloaterworldmap.cpp.

References gAgent, LLAvatarTracker::instance(), and LLAgent::startAutoPilotGlobal().

Here is the call graph for this function:

void LLFloaterWorldMap::teleportToAvatar (  )  [protected]

void LLFloaterWorldMap::updateSearchEnabled ( LLUICtrl ctrl,
void *  userdata 
) [static, protected]

Definition at line 1204 of file llfloaterworldmap.cpp.

References NULL, and LLPanel::setDefaultBtn().

Referenced by onLocationFocusChanged(), and onSearchTextEntry().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::onLocationFocusChanged ( LLFocusableElement ctrl,
void *  userdata 
) [static, protected]

Definition at line 1198 of file llfloaterworldmap.cpp.

References updateSearchEnabled().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::onLocationCommit ( void *  userdata  )  [static, protected]

void LLFloaterWorldMap::onCommitLocation ( LLUICtrl ctrl,
void *  userdata 
) [static, protected]

Definition at line 1606 of file llfloaterworldmap.cpp.

References LLTracker::getTrackedPositionGlobal(), LLTracker::getTrackingStatus(), LLVector3d::mdV, LLTracker::TRACKING_LOCATION, VX, VY, and VZ.

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterWorldMap::onCommitSearchResult ( LLUICtrl ctrl,
void *  userdata 
) [static, protected]

void LLFloaterWorldMap::cacheLandmarkPosition (  )  [protected]


Member Data Documentation

Definition at line 167 of file llfloaterworldmap.h.

Referenced by draw(), and postBuild().

Definition at line 168 of file llfloaterworldmap.h.

Referenced by draw(), and postBuild().

Definition at line 170 of file llfloaterworldmap.h.

Referenced by buildLandmarkIDLists(), and trackLandmark().

Definition at line 171 of file llfloaterworldmap.h.

Referenced by buildLandmarkIDLists(), and trackLandmark().

Definition at line 172 of file llfloaterworldmap.h.

const LLUUID LLFloaterWorldMap::sHomeID [static, protected]

Definition at line 176 of file llfloaterworldmap.h.

Referenced by observeInventory(), and ~LLFloaterWorldMap().

Definition at line 177 of file llfloaterworldmap.h.

Referenced by observeInventory(), and ~LLFloaterWorldMap().

Definition at line 178 of file llfloaterworldmap.h.

Referenced by observeFriends(), and ~LLFloaterWorldMap().

Definition at line 181 of file llfloaterworldmap.h.

Definition at line 182 of file llfloaterworldmap.h.

Referenced by centerOnTarget(), and draw().

Definition at line 183 of file llfloaterworldmap.h.

Referenced by clearLocationSelection(), and updateSims().

Definition at line 185 of file llfloaterworldmap.h.

Referenced by hide(), show(), and toggle().

Definition at line 186 of file llfloaterworldmap.h.

Referenced by show(), and updateLocation().

Definition at line 188 of file llfloaterworldmap.h.

Referenced by updateLocation().

Definition at line 190 of file llfloaterworldmap.h.

Referenced by updateLocation().

Definition at line 191 of file llfloaterworldmap.h.

Referenced by trackAvatar().

Definition at line 192 of file llfloaterworldmap.h.

Referenced by draw(), and updateLocation().


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

Generated on Fri May 16 08:47:14 2008 for SecondLife by  doxygen 1.5.5