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 voidcreateWorldMapView (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 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 onLocationCommit (void *userdata)
static void onCommitLocation (LLUICtrl *ctrl, void *userdata)
static void onCommitSearchResult (LLUICtrl *ctrl, void *userdata)

Protected Attributes

LLTabContainerCommonmTabs
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 171 of file llfloaterworldmap.cpp.

References LLUICtrlFactory::buildFloater(), createWorldMapView(), gUICtrlFactory, and NULL.

LLFloaterWorldMap::~LLFloaterWorldMap (  )  [virtual]

Definition at line 281 of file llfloaterworldmap.cpp.

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


Member Function Documentation

void LLFloaterWorldMap::adjustZoomSliderBounds (  ) 

Definition at line 1001 of file llfloaterworldmap.cpp.

References LLPanel::childSetMinValue(), f, LLTabContainerCommon::getCurrentPanel(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), LLWorldMap::getWorldHeight(), LLWorldMap::getWorldWidth(), gWorldMap, llclamp(), llfloor(), llmin(), mTabs, REGION_WIDTH_UNITS, S32, and ZOOM_MAX.

Referenced by LLWorldMap::processMapBlockReply(), LLWorldMap::processMapLayerReply(), LLMapLayerResponder::result(), and show().

void LLFloaterWorldMap::buildAvatarIDList (  )  [protected]

Definition at line 849 of file llfloaterworldmap.cpp.

References ADD_BOTTOM, LLAvatarTracker::applyFunctor(), LLPanel::childGetListInterface(), end, LLAvatarTracker::instance(), list, LLCollectMappableBuddies::mMappable, LLCtrlSelectionInterface::OP_DELETE, and S32.

Referenced by friendsChanged(), show(), and trackAvatar().

void LLFloaterWorldMap::buildLandmarkIDLists (  )  [protected]

Definition at line 886 of file llfloaterworldmap.cpp.

References ADD_BOTTOM, LLAssetType::AT_LANDMARK, LLPanel::childGetListInterface(), LLInventoryModel::collectDescendentsIf(), count, LLInventoryModel::EXCLUDE_TRASH, gAgent, LLAgent::getInventoryRootID(), gInventory, i, list, mLandmarkAssetIDList, mLandmarkItemIDList, LLUUID::null, LLCtrlSelectionInterface::OP_DELETE, LLDynamicArray< Type, BlockSize >::put(), LLDynamicArray< Type, BlockSize >::reset(), S32, sHomeID, and TRUE.

Referenced by inventoryChanged(), onLandmarkComboPrearrange(), show(), and trackLandmark().

void LLFloaterWorldMap::cacheLandmarkPosition (  )  [protected]

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

Definition at line 1317 of file llfloaterworldmap.cpp.

References LLVector3d::clearVec(), FALSE, gAgent, LLAgent::getCameraPositionGlobal(), LLTracker::getTrackedPositionGlobal(), LLTracker::getTrackingStatus(), gWorldMap, LLVector3d::isExactlyZero(), llfloor(), LLVector3d::mdV, LLWorldMap::mIsTrackingUnknownLocation, LLWorldMap::mUnknownLocation, mWaitingForTracker, LLWorldMapView::setPan(), LLWorldMapView::sPixelsPerMeter, LLTracker::TRACKING_NOTHING, TRUE, VX, and VY.

Referenced by draw(), and show().

void LLFloaterWorldMap::clearAvatarSelection ( BOOL  clear_ui = FALSE  ) 

Definition at line 985 of file llfloaterworldmap.cpp.

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

Referenced by LLTracker::stopTrackingAvatar().

void LLFloaterWorldMap::clearLandmarkSelection ( BOOL  clear_ui = FALSE  ) 

Definition at line 972 of file llfloaterworldmap.cpp.

References LLPanel::childGetListInterface(), LLView::childHasKeyboardFocus(), and list.

Referenced by LLTracker::stopTrackingLandmark().

void LLFloaterWorldMap::clearLocationSelection ( BOOL  clear_ui = FALSE  ) 

Definition at line 947 of file llfloaterworldmap.cpp.

References LLPanel::childGetListInterface(), LLView::childHasKeyboardFocus(), LLPanel::childSetValue(), FALSE, gWorldMap, list, mCompletingRegionName, mExactMatch, LLWorldMap::mIsTrackingCommit, LLCtrlSelectionInterface::OP_DELETE, and SIM_COORD_DEFAULT.

Referenced by onLocationCommit(), and LLTracker::stopTrackingLocation().

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

Definition at line 197 of file llfloaterworldmap.cpp.

Referenced by LLFloaterWorldMap().

void LLFloaterWorldMap::draw (  )  [virtual]

Reimplemented from LLFloater.

Definition at line 448 of file llfloaterworldmap.cpp.

References LLSD::asReal(), centerOnTarget(), LLPanel::childGetValue(), LLPanel::childSetColor(), LLPanel::childSetEnabled(), LLFloater::draw(), f, gAgent, gDisabledTrackColor, LLTimer::getElapsedSeconds(), LLFrameTimer::getElapsedTimeF32(), LLAgent::getRegion(), LLFrameTimer::getStarted(), LLTracker::getTrackingStatus(), LLView::getVisible(), gTrackColor, gWorldMap, LLAgent::isGodlike(), LLViewerRegion::isPrelude(), lerp(), MAP_ZOOM_TIME, mCompletingRegionName, mCurZoomVal, LLFloater::mDragHandle, LLWorldMap::mIsTrackingUnknownLocation, mSLURL, mWaitingForTracker, mZoomTimer, LLView::setMouseOpaque(), LLWorldMapView::setScale(), LLFrameTimer::start(), LLFrameTimer::stop(), LLTracker::TRACKING_AVATAR, LLTracker::TRACKING_LANDMARK, LLTracker::TRACKING_LOCATION, TRUE, and updateLocation().

void LLFloaterWorldMap::fly (  )  [protected]

Definition at line 1354 of file llfloaterworldmap.cpp.

References LLFloater::close(), gAgent, LLTracker::getTrackedPositionGlobal(), LLVector3d::isExactlyZero(), make_ui_sound(), and LLAgent::startAutoPilotGlobal().

void LLFloaterWorldMap::flyToAvatar (  )  [protected]

Definition at line 1516 of file llfloaterworldmap.cpp.

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

void LLFloaterWorldMap::flyToLandmark (  )  [protected]

Definition at line 1453 of file llfloaterworldmap.cpp.

References gAgent, LLTracker::getTrackedLandmarkAssetID(), LLTracker::getTrackedPositionGlobal(), LLTracker::hasLandmarkPosition(), and LLAgent::startAutoPilotGlobal().

void LLFloaterWorldMap::friendsChanged (  ) 

Definition at line 832 of file llfloaterworldmap.cpp.

References buildAvatarIDList(), LLPanel::childGetSelectionInterface(), gAgent, LLRelationship::GRANT_MAP_LOCATION, LLAvatarTracker::instance(), LLAgent::isGodlike(), LLUUID::notNull(), NULL, LLTracker::stopTracking(), and t.

Referenced by LLMapFriendObserver::changed(), and observeFriends().

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

Definition at line 935 of file llfloaterworldmap.cpp.

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

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

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

Definition at line 95 of file llfloaterworldmap.h.

References sHomeID.

Referenced by LLTracker::cacheLandmarkPosition().

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

Reimplemented from LLView.

Definition at line 414 of file llfloaterworldmap.cpp.

References LLView::handleHover().

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

Reimplemented from LLView.

Definition at line 421 of file llfloaterworldmap.cpp.

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

void LLFloaterWorldMap::hide ( void  )  [static]

Definition at line 388 of file llfloaterworldmap.cpp.

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

Referenced by LLAgent::teleportCore().

void LLFloaterWorldMap::inventoryChanged (  ) 

Definition at line 812 of file llfloaterworldmap.cpp.

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

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

void LLFloaterWorldMap::observeFriends (  ) 

Definition at line 822 of file llfloaterworldmap.cpp.

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

Referenced by idle_startup().

void LLFloaterWorldMap::observeInventory ( LLInventoryModel inventory  ) 

Definition at line 793 of file llfloaterworldmap.cpp.

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

Referenced by idle_startup().

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

Definition at line 1177 of file llfloaterworldmap.cpp.

References LLPanel::childGetListInterface(), LLUICtrlFactory::getComboBoxByName(), LLComboBox::getSimple(), LLTracker::getTrackingStatus(), gFloaterWorldMap, list, LLUUID::notNull(), onShowTargetBtn(), and LLTracker::TRACKING_NOTHING.

Referenced by postBuild().

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

Definition at line 1149 of file llfloaterworldmap.cpp.

References LLAvatarTracker::getAvatarID(), gFloaterWorldMap, LLAvatarTracker::instance(), LLUUID::isNull(), list, NULL, and LLTracker::stopTracking().

Referenced by postBuild().

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

Definition at line 1309 of file llfloaterworldmap.cpp.

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

Definition at line 1258 of file llfloaterworldmap.cpp.

References FALSE, gWorldMap, LLWorldMap::mIsTrackingUnknownLocation, LLTracker::stopTracking(), LLTracker::TRACKING_NOTHING, and TRUE.

Referenced by postBuild().

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

Definition at line 1291 of file llfloaterworldmap.cpp.

Referenced by postBuild().

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

Reimplemented from LLFloater.

Definition at line 296 of file llfloaterworldmap.cpp.

References FALSE, and setVisible().

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

Definition at line 1525 of file llfloaterworldmap.cpp.

References gWorldMap, S32, and LLWorldMap::setCurrentLayer().

Referenced by postBuild().

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

Definition at line 1610 of file llfloaterworldmap.cpp.

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

Referenced by postBuild().

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

Definition at line 1628 of file llfloaterworldmap.cpp.

References LLSD::asString(), from_region_handle(), gWorldMap, list, LLVector3d::mdV, LLWorldMap::mSimInfoMap, onShowTargetBtn(), LLStringBase< char >::toLower(), VX, VY, and VZ.

Referenced by postBuild(), and updateSims().

void LLFloaterWorldMap::onCopySLURL ( void  )  [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().

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

Definition at line 1269 of file llfloaterworldmap.cpp.

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

Definition at line 1069 of file llfloaterworldmap.cpp.

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

Referenced by postBuild().

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

Definition at line 1436 of file llfloaterworldmap.cpp.

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

Definition at line 1100 of file llfloaterworldmap.cpp.

References LLPanel::childGetListInterface(), LLInventoryItem::getAssetUUID(), LLInventoryModel::getItem(), LLTracker::getTrackingStatus(), gFloaterWorldMap, gInventory, LLUUID::isNull(), list, NULL, onShowTargetBtn(), LLUUID::setNull(), sHomeID, LLTracker::stopTracking(), and LLTracker::TRACKING_NOTHING.

Referenced by postBuild().

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

Definition at line 1077 of file llfloaterworldmap.cpp.

References buildLandmarkIDLists(), gFloaterWorldMap, LLUUID::isNull(), list, NULL, and LLTracker::stopTracking().

Referenced by postBuild().

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

Definition at line 1219 of file llfloaterworldmap.cpp.

References clearLocationSelection(), FALSE, gFloaterWorldMap, gWorldMap, mCompletingRegionName, LLWorldMap::mIsTrackingCommit, LLWorldMap::sendNamedRegionRequest(), LLStringBase< char >::toLower(), LLStringBase< char >::trim(), and TRUE.

Referenced by postBuild().

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

Definition at line 1046 of file llfloaterworldmap.cpp.

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

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

Definition at line 1281 of file llfloaterworldmap.cpp.

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

Referenced by postBuild().

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

Definition at line 1275 of file llfloaterworldmap.cpp.

References TRUE.

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

BOOL LLFloaterWorldMap::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 202 of file llfloaterworldmap.cpp.

References LLPanel::childHide(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetDoubleClickCallback(), LLPanel::childSetFocusChangedCallback(), LLPanel::childSetKeystrokeCallback(), LLPanel::childSetValue(), f, FALSE, gAgent, LLUICtrlFactory::getComboBoxByName(), LLUICtrlFactory::getPanelByName(), LLUICtrlFactory::getTabContainerByName(), gMapScale, LLAgent::isTeen(), mCurZoomVal, mTabs, mZoomTimer, NULL, onAvatarComboCommit(), onAvatarComboPrearrange(), onClearBtn(), onClickTeleportBtn(), onCommitBackground(), onCommitLocation(), onCommitSearchResult(), onCopySLURL(), onGoHome(), onLandmarkComboCommit(), onLandmarkComboPrearrange(), onLocationCommit(), onShowAgentBtn(), onShowTargetBtn(), LLComboBox::selectFirstItem(), LLPanel::setDefaultBtn(), LLComboBox::setPrearrangeCallback(), LLTabContainerCommon::setTabChangeCallback(), LLTabContainerCommon::setTabUserData(), LLFrameTimer::stop(), TRUE, and updateSearchEnabled().

void LLFloaterWorldMap::reloadIcons ( void  )  [static]

Definition at line 362 of file llfloaterworldmap.cpp.

References LLWorldMap::eraseItems(), gWorldMap, and LLWorldMap::sendMapLayerRequest().

Referenced by handle_toggle_pg().

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

Reimplemented from LLView.

Definition at line 435 of file llfloaterworldmap.cpp.

References LLView::reshape().

void LLFloaterWorldMap::setLandmarkVisited (  )  [protected]

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

Reimplemented from LLFloater.

Definition at line 396 of file llfloaterworldmap.cpp.

References gSavedSettings, gWorldMap, LLControlGroup::setBOOL(), and LLFloater::setVisible().

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

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

Definition at line 302 of file llfloaterworldmap.cpp.

References adjustZoomSliderBounds(), LLAssetType::AT_LANDMARK, buildAvatarIDList(), buildLandmarkIDLists(), centerOnTarget(), LLPanel::childSetFocus(), LLWorldMapView::clearLastClick(), LLWorldMap::clearSimFlags(), LLWorldMap::eraseItems(), FALSE, LLInventoryModel::findCategoryUUIDForType(), LLTabContainerCommon::getCurrentPanel(), LLTabContainerCommon::getCurrentPanelIndex(), LLTracker::getTrackingStatus(), LLView::getVisible(), gFloaterWorldMap, gFocusMgr, gInventory, gWorldMap, mIsClosing, mSetToUserPosition, mTabs, LLFloater::open(), S32, LLWorldMap::setCurrentLayer(), LLWorldMapView::setPan(), LLInventoryModel::startBackgroundFetch(), LLTracker::TRACKING_NOTHING, LLFocusMgr::triggerFocusFlash(), TRUE, LLWorldMapView::updateVisibleBlocks(), and LLFirstUse::useMap().

Referenced by LLFloaterLandHoldings::buttonCore(), handle_show_newest_map(), handle_track_avatar(), LLNetMap::handleDoubleClick(), LLPanelPlace::onClickMap(), LLPanelPick::onClickMap(), LLPanelEvent::onClickMap(), LLPanelClassified::onClickMap(), LLPanelAvatar::onClickTrack(), LLPanelGroupLandMoney::impl::onMapButton(), process_script_teleport_request(), and toggle().

void LLFloaterWorldMap::teleport (  ) 

Definition at line 1373 of file llfloaterworldmap.cpp.

References LLPanel::childGetValue(), FALSE, gAgent, LLLandmarkList::getAsset(), LLLandmark::getGlobalPos(), LLAvatarTracker::getGlobalPos(), LLAgent::getRegionHost(), LLLandmark::getRegionID(), LLTracker::getTrackedLandmarkAssetID(), LLTracker::getTrackedPositionGlobal(), LLTracker::getTrackingStatus(), gLandmarkList, gMessageSystem, LLAvatarTracker::haveTrackingInfo(), LLAvatarTracker::instance(), LLVector3d::isExactlyZero(), make_ui_sound(), LLVector3d::mdV, NULL, LLLandmark::requestRegionHandle(), sHomeID, LLAgent::teleportHome(), LLAgent::teleportViaLandmark(), LLAgent::teleportViaLocation(), LLTracker::TRACKING_AVATAR, LLTracker::TRACKING_LANDMARK, LLTracker::TRACKING_LOCATION, TRUE, and VZ.

void LLFloaterWorldMap::teleportToAvatar (  )  [protected]

Definition at line 1505 of file llfloaterworldmap.cpp.

References gAgent, LLAvatarTracker::getGlobalPos(), LLAvatarTracker::haveTrackingInfo(), LLAvatarTracker::instance(), and LLAgent::teleportViaLocation().

void LLFloaterWorldMap::teleportToLandmark (  )  [protected]

Definition at line 1465 of file llfloaterworldmap.cpp.

References FALSE, gAgent, LLLandmarkList::getAsset(), LLLandmark::getGlobalPos(), LLAgent::getRegionHost(), LLLandmark::getRegionID(), LLTracker::getTrackedLandmarkAssetID(), gLandmarkList, gMessageSystem, NULL, LLLandmark::requestRegionHandle(), sHomeID, LLAgent::teleportViaLandmark(), and TRUE.

void LLFloaterWorldMap::toggle ( void  )  [static]

Definition at line 371 of file llfloaterworldmap.cpp.

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

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

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

Definition at line 542 of file llfloaterworldmap.cpp.

References buildAvatarIDList(), LLPanel::childGetSelectionInterface(), LLPanel::childSetValue(), f, gAgent, LLAgent::isGodlike(), mTrackedAvatarName, mTrackedStatus, NULL, LLCtrlSelectionInterface::setCurrentByID(), LLPanel::setDefaultBtn(), LLTracker::stopTracking(), LLTracker::trackAvatar(), and LLTracker::TRACKING_AVATAR.

void LLFloaterWorldMap::trackEvent ( const LLItemInfo event_info  ) 

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

void LLFloaterWorldMap::trackGenericItem ( const LLItemInfo item  ) 

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

void LLFloaterWorldMap::trackLandmark ( const LLUUID landmark_item_id  ) 

Definition at line 572 of file llfloaterworldmap.cpp.

References buildLandmarkIDLists(), LLPanel::childGetSelectionInterface(), LLDynamicArray< Type, BlockSize >::count(), FALSE, LLDynamicArray< Type, BlockSize >::get(), LLLandmarkList::getAsset(), LLUICtrlFactory::getComboBoxByName(), LLComboBox::getSimple(), gLandmarkList, mLandmarkAssetIDList, mLandmarkItemIDList, mTrackedStatus, NULL, S32, LLCtrlSelectionInterface::setCurrentByID(), LLPanel::setDefaultBtn(), sHomeID, LLTracker::stopTracking(), LLTracker::TRACKING_LANDMARK, LLTracker::trackLandmark(), and TRUE.

Referenced by inventoryChanged(), LLPanelPlace::onClickTeleport(), and open_landmark_callback().

void LLFloaterWorldMap::trackLocation ( const LLVector3d pos  ) 

Definition at line 631 of file llfloaterworldmap.cpp.

References FALSE, gWorldMap, llformat(), llround(), LLSimInfo::mAccess, LLVector3d::mdV, LLWorldMap::mInvalidLocation, LLWorldMap::mIsTrackingCommit, LLWorldMap::mIsTrackingDoubleClick, LLWorldMap::mIsTrackingUnknownLocation, mTrackedStatus, LLWorldMap::mUnknownLocation, NULL, REGION_WIDTH_METERS, S32, LLWorldMap::sendMapBlockRequest(), LLPanel::setDefaultBtn(), SIM_ACCESS_DOWN, LLWorldMap::simInfoFromPosGlobal(), LLWorldMap::simNameFromPosGlobal(), LLTracker::stopTracking(), LLTracker::TRACKING_LOCATION, LLTracker::trackLocation(), TRUE, VX, VY, and VZ.

Referenced by LLFloaterLandHoldings::buttonCore(), LLWorldMapView::checkItemHit(), LLWorldMapView::handleClick(), LLEventNotifier::notifyCallback(), LLPanelPlace::onClickMap(), LLPanelPick::onClickMap(), LLPanelEvent::onClickMap(), LLPanelClassified::onClickMap(), LLPanelPlace::onClickTeleport(), LLPanelPick::onClickTeleport(), LLPanelEvent::onClickTeleport(), LLPanelClassified::onClickTeleport(), LLPanelGroupLandMoney::impl::onMapButton(), LLWorldMap::processMapBlockReply(), LLMapLayerResponder::result(), and trackURL().

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

Definition at line 763 of file llfloaterworldmap.cpp.

References LLPanel::childSetValue(), LLSimInfo::getGlobalPos(), gFloaterWorldMap, gWorldMap, llclamp(), mCompletingRegionName, LLWorldMap::mIsTrackingCommit, LLVector3::mV, LLWorldMap::sendNamedRegionRequest(), LLPanel::setDefaultBtn(), LLWorldMap::simInfoFromName(), LLStringBase< char >::toLower(), trackLocation(), TRUE, VX, VY, and VZ.

Referenced by process_script_teleport_request().

void LLFloaterWorldMap::updateLocation (  )  [protected]

Definition at line 677 of file llfloaterworldmap.cpp.

References LLPanel::childSetValue(), LLWeb::escapeURL(), FALSE, gAgent, LLAgent::getPositionGlobal(), LLTracker::getTrackedPositionGlobal(), LLTracker::getTrackingStatus(), gWorldMap, LLVector3d::isExactlyZero(), LLAgent::isGodlike(), llformat(), llround(), LLVector3d::mdV, mSetToUserPosition, mSLURL, mTrackedLocation, mTrackedSimName, mTrackedStatus, REGION_WIDTH_METERS, S32, LLWorldMap::simNameFromPosGlobal(), LLTracker::TRACKING_AVATAR, LLTracker::TRACKING_NOTHING, VX, VY, and VZ.

Referenced by draw().

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

Definition at line 1204 of file llfloaterworldmap.cpp.

References gFloaterWorldMap, NULL, and LLPanel::setDefaultBtn().

Referenced by postBuild().

void LLFloaterWorldMap::updateSims ( bool  found_null_sim  ) 

Definition at line 1538 of file llfloaterworldmap.cpp.

References LLPanel::childGetListInterface(), LLPanel::childSetFocus(), FALSE, gWorldMap, list, mCompletingRegionName, mExactMatch, LLWorldMap::mIsTrackingCommit, LLWorldMap::mSimInfoMap, NULL, onCommitSearchResult(), LLCtrlSelectionInterface::OP_DELETE, LLCtrlSelectionInterface::OP_DESELECT, S32, LLStringBase< char >::toLower(), and TRUE.

Referenced by LLWorldMap::processMapBlockReply(), and LLMapLayerResponder::result().


Member Data Documentation

LLString LLFloaterWorldMap::mCompletingRegionName [protected]

Definition at line 176 of file llfloaterworldmap.h.

Referenced by clearLocationSelection(), draw(), onLocationCommit(), trackURL(), and updateSims().

F32 LLFloaterWorldMap::mCurZoomVal [protected]

Definition at line 163 of file llfloaterworldmap.h.

Referenced by draw(), and postBuild().

BOOL LLFloaterWorldMap::mExactMatch [protected]

Definition at line 179 of file llfloaterworldmap.h.

Referenced by clearLocationSelection(), and updateSims().

LLFriendObserver* LLFloaterWorldMap::mFriendObserver [protected]

Definition at line 174 of file llfloaterworldmap.h.

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

BOOL LLFloaterWorldMap::mHasLandmarkPosition [protected]

Definition at line 168 of file llfloaterworldmap.h.

LLInventoryModel* LLFloaterWorldMap::mInventory [protected]

Definition at line 172 of file llfloaterworldmap.h.

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

LLInventoryObserver* LLFloaterWorldMap::mInventoryObserver [protected]

Definition at line 173 of file llfloaterworldmap.h.

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

BOOL LLFloaterWorldMap::mIsClosing [protected]

Definition at line 181 of file llfloaterworldmap.h.

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

LLDynamicArray<LLUUID> LLFloaterWorldMap::mLandmarkAssetIDList [protected]

Definition at line 166 of file llfloaterworldmap.h.

Referenced by buildLandmarkIDLists(), and trackLandmark().

LLDynamicArray<LLUUID> LLFloaterWorldMap::mLandmarkItemIDList [protected]

Definition at line 167 of file llfloaterworldmap.h.

Referenced by buildLandmarkIDLists(), and trackLandmark().

LLString LLFloaterWorldMap::mLastRegionName [protected]

Definition at line 177 of file llfloaterworldmap.h.

BOOL LLFloaterWorldMap::mSetToUserPosition [protected]

Definition at line 182 of file llfloaterworldmap.h.

Referenced by show(), and updateLocation().

LLString LLFloaterWorldMap::mSLURL [protected]

Definition at line 188 of file llfloaterworldmap.h.

Referenced by draw(), and updateLocation().

LLTabContainerCommon* LLFloaterWorldMap::mTabs [protected]

Definition at line 160 of file llfloaterworldmap.h.

Referenced by adjustZoomSliderBounds(), onPanBtn(), postBuild(), show(), and ~LLFloaterWorldMap().

LLString LLFloaterWorldMap::mTrackedAvatarName [protected]

Definition at line 187 of file llfloaterworldmap.h.

Referenced by trackAvatar().

LLVector3d LLFloaterWorldMap::mTrackedLocation [protected]

Definition at line 184 of file llfloaterworldmap.h.

Referenced by updateLocation().

LLString LLFloaterWorldMap::mTrackedSimName [protected]

Definition at line 186 of file llfloaterworldmap.h.

Referenced by updateLocation().

LLTracker::ETrackingStatus LLFloaterWorldMap::mTrackedStatus [protected]

Definition at line 185 of file llfloaterworldmap.h.

Referenced by clearAvatarSelection(), trackAvatar(), trackEvent(), trackGenericItem(), trackLandmark(), trackLocation(), and updateLocation().

BOOL LLFloaterWorldMap::mWaitingForTracker [protected]

Definition at line 178 of file llfloaterworldmap.h.

Referenced by centerOnTarget(), and draw().

LLFrameTimer LLFloaterWorldMap::mZoomTimer [protected]

Definition at line 164 of file llfloaterworldmap.h.

Referenced by draw(), and postBuild().

const LLUUID LLFloaterWorldMap::sHomeID [static, protected]

Definition at line 170 of file llfloaterworldmap.h.

Referenced by buildLandmarkIDLists(), getHomeID(), onLandmarkComboCommit(), teleport(), teleportToLandmark(), and trackLandmark().


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