#include <lltracker.h>
Definition at line 50 of file lltracker.h.
Definition at line 53 of file lltracker.h.
Definition at line 61 of file lltracker.h.
LLTracker::LLTracker | ( | ) | [protected] |
Definition at line 82 of file lltracker.cpp.
Referenced by instance().
LLTracker::~LLTracker | ( | ) | [protected] |
Definition at line 97 of file lltracker.cpp.
References purgeBeaconText().
static LLTracker* LLTracker::instance | ( | void | ) | [inline, static] |
Definition at line 68 of file lltracker.h.
References LLTracker(), and sTrackerp.
Referenced by clearFocus(), drawHUDArrow(), getLabel(), getToolTip(), getTrackedLandmarkAssetID(), getTrackedLandmarkItemID(), getTrackedLocationName(), getTrackedLocationType(), getTrackedPositionGlobal(), getTrackingStatus(), handleMouseDown(), hasLandmarkPosition(), isTracking(), render3D(), stopTracking(), trackAvatar(), trackLandmark(), and trackLocation().
static void LLTracker::cleanupInstance | ( | ) | [inline, static] |
Definition at line 77 of file lltracker.h.
References NULL, and sTrackerp.
Referenced by LLAppViewer::cleanup().
static ETrackingStatus LLTracker::getTrackingStatus | ( | ) | [inline, static] |
Definition at line 81 of file lltracker.h.
References instance(), and mTrackingStatus.
Referenced by LLFloaterWorldMap::centerOnTarget(), LLWorldMapView::draw(), LLNetMap::draw(), LLFloaterWorldMap::draw(), drawHUDArrow(), LLWorldMapView::drawTracking(), getTrackedPositionGlobal(), handleMouseDown(), LLFloaterWorldMap::onAvatarComboCommit(), LLFloaterWorldMap::onCommitLocation(), LLFloaterWorldMap::onLandmarkComboCommit(), LLFloaterWorldMap::show(), LLFloaterWorldMap::teleport(), and LLFloaterWorldMap::updateLocation().
static ETrackingLocationType LLTracker::getTrackedLocationType | ( | ) | [inline, static] |
Definition at line 82 of file lltracker.h.
References instance(), and mTrackingLocationType.
Referenced by LLWorldMapView::drawTracking().
static BOOL LLTracker::isTracking | ( | void * | ) | [inline, static] |
Definition at line 83 of file lltracker.h.
References instance(), and mTrackingStatus.
Referenced by LLWorldMapView::handleHover(), LLNetMap::LLNetMap(), and process_agent_movement_complete().
void LLTracker::stopTracking | ( | void * | userdata | ) | [static] |
Definition at line 104 of file lltracker.cpp.
References instance(), and stopTrackingAll().
Referenced by LLFloaterWorldMap::friendsChanged(), LLNetMap::LLNetMap(), LLFloaterWorldMap::onAvatarComboPrearrange(), LLFloaterWorldMap::onClearBtn(), LLFloaterWorldMap::onLandmarkComboCommit(), LLFloaterWorldMap::onLandmarkComboPrearrange(), process_agent_movement_complete(), LLFloaterWorldMap::trackAvatar(), LLFloaterWorldMap::trackLandmark(), and LLFloaterWorldMap::trackLocation().
void LLTracker::clearFocus | ( | ) | [static] |
Definition at line 637 of file lltracker.cpp.
References instance(), mTrackingStatus, and TRACKING_NOTHING.
Referenced by LLFloaterWorldMap::onComboTextEntry().
static const LLUUID& LLTracker::getTrackedLandmarkAssetID | ( | ) | [inline, static] |
Definition at line 87 of file lltracker.h.
References instance(), and mTrackedLandmarkAssetID.
Referenced by LLFloaterWorldMap::flyToLandmark(), LLFloaterWorldMap::teleport(), and LLFloaterWorldMap::teleportToLandmark().
static const LLUUID& LLTracker::getTrackedLandmarkItemID | ( | ) | [inline, static] |
Definition at line 88 of file lltracker.h.
References instance(), and mTrackedLandmarkItemID.
Referenced by LLFloaterWorldMap::inventoryChanged().
Definition at line 287 of file lltracker.cpp.
References LLAvatarTracker::instance(), instance(), mLabel, mTrackingStatus, stopTrackingLandmark(), stopTrackingLocation(), LLAvatarTracker::track(), and TRACKING_AVATAR.
Referenced by LLFloaterWorldMap::trackAvatar().
void LLTracker::trackLandmark | ( | const LLUUID & | landmark_asset_id, | |
const LLUUID & | landmark_item_id, | |||
const LLString & | name | |||
) | [static] |
Definition at line 299 of file lltracker.cpp.
References cacheLandmarkPosition(), instance(), mLabel, mTrackedLandmarkAssetID, mTrackedLandmarkItemID, mTrackedLandmarkName, mTrackingStatus, stopTrackingAvatar(), stopTrackingLocation(), and TRACKING_LANDMARK.
Referenced by LLFloaterWorldMap::trackLandmark().
void LLTracker::trackLocation | ( | const LLVector3d & | pos, | |
const LLString & | full_name, | |||
const LLString & | tooltip, | |||
ETrackingLocationType | location_type = LOCATION_NOTHING | |||
) | [static] |
Definition at line 314 of file lltracker.cpp.
References instance(), mIsTrackingLocation, mLabel, mToolTip, mTrackedLocationName, mTrackedPositionGlobal, mTrackingLocationType, mTrackingStatus, stopTrackingAvatar(), stopTrackingLandmark(), TRACKING_LOCATION, and TRUE.
Referenced by LLFloaterTopObjects::showBeacon(), LLFloaterWorldMap::trackEvent(), LLFloaterWorldMap::trackGenericItem(), and LLFloaterWorldMap::trackLocation().
LLVector3d LLTracker::getTrackedPositionGlobal | ( | ) | [static] |
Definition at line 358 of file lltracker.cpp.
References LLAvatarTracker::getGlobalPos(), getTrackingStatus(), LLAvatarTracker::haveTrackingInfo(), instance(), LLAvatarTracker::instance(), mHasLandmarkPosition, mTrackedPositionGlobal, TRACKING_AVATAR, TRACKING_LANDMARK, and TRACKING_LOCATION.
Referenced by LLFloaterWorldMap::centerOnTarget(), LLWorldMapView::draw(), LLNetMap::draw(), drawHUDArrow(), LLFloaterWorldMap::fly(), LLFloaterWorldMap::flyToLandmark(), LLWorldMapView::handleHover(), LLFloaterWorldMap::onCommitLocation(), process_agent_movement_complete(), LLWorldMap::processMapBlockReply(), LLMapLayerResponder::result(), LLFloaterWorldMap::teleport(), and LLFloaterWorldMap::updateLocation().
BOOL LLTracker::hasLandmarkPosition | ( | ) | [static] |
Definition at line 388 of file lltracker.cpp.
References cacheLandmarkPosition(), instance(), and mHasLandmarkPosition.
Referenced by LLFloaterWorldMap::flyToLandmark().
const LLString & LLTracker::getTrackedLocationName | ( | ) | [static] |
Definition at line 400 of file lltracker.cpp.
References instance(), and mTrackedLocationName.
void LLTracker::drawHUDArrow | ( | ) | [static] |
Definition at line 112 of file lltracker.cpp.
References drawMarker(), LLSingleton< LLWorld >::getInstance(), getTrackedPositionGlobal(), getTrackingStatus(), gTrackColor, instance(), LLAvatarTracker::instance(), llclamp(), LLVector3d::mdV, mTrackedPositionGlobal, LLWorld::resolveLandHeightGlobal(), TRACKING_AVATAR, TRACKING_LANDMARK, TRACKING_LOCATION, and VZ.
Referenced by LLHUDView::draw().
void LLTracker::render3D | ( | ) | [static] |
Definition at line 156 of file lltracker.cpp.
References LLHUDObject::addHUDObject(), cacheLandmarkPosition(), DESTINATION_REACHED_RADIUS, DESTINATION_UNVISITED_RADIUS, DESTINATION_VISITED_RADIUS, FALSE, gAgent, LLAvatarTracker::getAvatarID(), LLAvatarTracker::getBuddyInfo(), LLFloaterWorldMap::getDistanceToDestination(), LLAvatarTracker::getGlobalPos(), LLAvatarTracker::getName(), gFloaterWorldMap, gTrackColor, LLAvatarTracker::haveTrackingInfo(), LLAvatarTracker::instance(), instance(), LLAgent::isGodlike(), LLUUID::isNull(), LLRelationship::isOnline(), LLHUDObject::LL_HUD_TEXT, mBeaconText, mHasLandmarkPosition, mHasReachedLandmark, mIsTrackingLocation, mLandmarkHasBeenVisited, mTrackedLandmarkAssetID, mTrackedLandmarkName, mTrackedLocationName, mTrackedPositionGlobal, renderBeacon(), setLandmarkVisited(), stopTrackingAvatar(), stopTrackingLandmark(), stopTrackingLocation(), and TRUE.
Referenced by render_hud_elements().
Definition at line 330 of file lltracker.cpp.
References ARROW_OFF_RADIUS_SQRD, FALSE, getTrackingStatus(), instance(), mHUDArrowCenterX, mHUDArrowCenterY, S32, stopTrackingAll(), and TRUE.
Referenced by LLHUDView::handleMouseDown().
static const LLString& LLTracker::getLabel | ( | void | ) | [inline, static] |
Definition at line 110 of file lltracker.h.
References instance(), and mLabel.
Referenced by LLWorldMapView::draw().
static const LLString& LLTracker::getToolTip | ( | ) | [inline, static] |
Definition at line 111 of file lltracker.h.
References instance(), and mToolTip.
Referenced by LLWorldMapView::draw().
void LLTracker::renderBeacon | ( | LLVector3d | pos_global, | |
const LLColor4 & | color, | |||
LLHUDText * | hud_textp, | |||
const std::string & | label | |||
) | [static, protected] |
Definition at line 469 of file lltracker.cpp.
References LLHUDText::ALIGN_VERT_CENTER, LLGLImmediate::begin(), LLGLImmediate::color4fv(), draw_shockwave(), LLGLImmediate::end(), FALSE, gAgent, LLControlGroup::getBOOL(), LLAgent::getCameraPositionGlobal(), LLTimer::getElapsedTimeF32(), LLCamera::getFar(), LLSky::getFogColor(), LLSingleton< LLViewerCamera >::getInstance(), LLCoordFrame::getLeftAxis(), LLAgent::getPosAgentFromGlobal(), gGL, gRenderStartTime, gSavedSettings, gSky, i, llmax(), llmin(), LLVector3d::magVec(), LLVector3::mV, LLColor4::mV, pulse_func(), sCheesyBeacon, LLHUDText::setColor(), LLHUDText::setFont(), LLHUDObject::setPositionAgent(), LLHUDText::setString(), LLHUDText::setVertAlignment(), LLHUDText::setZCompare(), LLFontGL::sSansSerif, LLVertexBuffer::TRIANGLE_STRIP, utf8str_to_wstring(), and LLGLImmediate::vertex3f().
Referenced by render3D().
void LLTracker::stopTrackingAll | ( | BOOL | clear_ui = FALSE |
) | [protected] |
Definition at line 577 of file lltracker.cpp.
References mTrackingStatus, stopTrackingAvatar(), stopTrackingLandmark(), stopTrackingLocation(), TRACKING_AVATAR, TRACKING_LANDMARK, TRACKING_LOCATION, and TRACKING_NOTHING.
Referenced by handleMouseDown(), and stopTracking().
void LLTracker::stopTrackingAvatar | ( | BOOL | clear_ui = FALSE |
) | [protected] |
Definition at line 597 of file lltracker.cpp.
References LLFloaterWorldMap::clearAvatarSelection(), LLAvatarTracker::getAvatarID(), gFloaterWorldMap, LLAvatarTracker::instance(), LLUUID::isNull(), mTrackingStatus, purgeBeaconText(), TRACKING_NOTHING, and LLAvatarTracker::untrack().
Referenced by render3D(), stopTrackingAll(), trackLandmark(), and trackLocation().
void LLTracker::stopTrackingLocation | ( | BOOL | clear_ui = FALSE |
) | [protected] |
Definition at line 626 of file lltracker.cpp.
References LLFloaterWorldMap::clearLocationSelection(), FALSE, gFloaterWorldMap, LOCATION_NOTHING, mIsTrackingLocation, mTrackedLocationName, mTrackedPositionGlobal, mTrackingLocationType, mTrackingStatus, purgeBeaconText(), TRACKING_NOTHING, and LLVector3d::zeroVec().
Referenced by render3D(), stopTrackingAll(), trackAvatar(), and trackLandmark().
void LLTracker::stopTrackingLandmark | ( | BOOL | clear_ui = FALSE |
) | [protected] |
Definition at line 611 of file lltracker.cpp.
References LLFloaterWorldMap::clearLandmarkSelection(), FALSE, gFloaterWorldMap, mHasLandmarkPosition, mHasReachedLandmark, mLandmarkHasBeenVisited, mTrackedLandmarkAssetID, mTrackedLandmarkItemID, mTrackedLandmarkName, mTrackedPositionGlobal, mTrackingStatus, purgeBeaconText(), LLUUID::setNull(), TRACKING_NOTHING, TRUE, and LLVector3d::zeroVec().
Referenced by render3D(), stopTrackingAll(), trackAvatar(), and trackLocation().
void LLTracker::drawMarker | ( | const LLVector3d & | pos_global, | |
const LLColor4 & | color | |||
) | [protected] |
Definition at line 642 of file lltracker.cpp.
References gAgent, LLRectBase< Type >::getHeight(), LLSingleton< LLViewerCamera >::getInstance(), LLAgent::getPosAgentFromGlobal(), LLView::getRect(), LLRectBase< Type >::getWidth(), gHUDView, gl_draw_scaled_rotated_image(), HUD_ARROW_SIZE, llabs(), llclamp(), lltrunc(), mHUDArrowCenterX, mHUDArrowCenterY, LLCoord::mX, LLCoord::mY, RAD_TO_DEG, S32, LLView::screenPointToLocal(), LLWorldMapView::sTrackArrowImage, and TRUE.
Referenced by drawHUDArrow().
void LLTracker::setLandmarkVisited | ( | ) | [protected] |
Definition at line 727 of file lltracker.cpp.
References LLInventoryModel::accountForUpdate(), LLInventoryModel::addChangedMask(), LLMessageSystem::addU32(), LLMessageSystem::addUUID(), gAgent, LLInventoryItem::getFlags(), LLAgent::getID(), LLInventoryModel::getItem(), LLInventoryObject::getParentUUID(), LLAgent::getSessionID(), LLInventoryObject::getUUID(), gInventory, gMessageSystem, i, LLInventoryItem::II_FLAGS_LANDMARK_VISITED, LLInventoryObserver::INTERNAL, LLUUID::isNull(), mTrackedLandmarkItemID, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLInventoryModel::notifyObservers(), LLAgent::sendReliableMessage(), and LLInventoryItem::setFlags().
Referenced by render3D().
void LLTracker::cacheLandmarkPosition | ( | ) | [protected] |
Definition at line 761 of file lltracker.cpp.
References DESTINATION_UNVISITED_RADIUS, FALSE, gAgent, LLLandmarkList::getAsset(), LLFloaterWorldMap::getDistanceToDestination(), LLInventoryItem::getFlags(), LLLandmark::getGlobalPos(), LLFloaterWorldMap::getHomeID(), LLAgent::getHomePosGlobal(), LLInventoryModel::getItem(), gFloaterWorldMap, gInventory, gLandmarkList, LLInventoryItem::II_FLAGS_LANDMARK_VISITED, llendl, llwarns, mHasLandmarkPosition, mHasReachedLandmark, mLandmarkHasBeenVisited, mTrackedLandmarkAssetID, mTrackedLandmarkItemID, mTrackedPositionGlobal, LLUUID::setNull(), and TRUE.
Referenced by hasLandmarkPosition(), render3D(), and trackLandmark().
void LLTracker::purgeBeaconText | ( | ) | [protected] |
Definition at line 811 of file lltracker.cpp.
References LLPointer< Type >::isNull(), mBeaconText, and NULL.
Referenced by stopTrackingAvatar(), stopTrackingLandmark(), stopTrackingLocation(), and ~LLTracker().
LLTracker * LLTracker::sTrackerp = NULL [static] |
BOOL LLTracker::sCheesyBeacon = FALSE [static] |
Definition at line 108 of file lltracker.h.
Referenced by draw_shockwave(), pulse_func(), and renderBeacon().
ETrackingStatus LLTracker::mTrackingStatus [protected] |
Definition at line 132 of file lltracker.h.
Referenced by clearFocus(), getTrackingStatus(), isTracking(), stopTrackingAll(), stopTrackingAvatar(), stopTrackingLandmark(), stopTrackingLocation(), trackAvatar(), trackLandmark(), and trackLocation().
Definition at line 133 of file lltracker.h.
Referenced by getTrackedLocationType(), stopTrackingLocation(), and trackLocation().
LLPointer<LLHUDText> LLTracker::mBeaconText [protected] |
S32 LLTracker::mHUDArrowCenterX [protected] |
S32 LLTracker::mHUDArrowCenterY [protected] |
LLVector3d LLTracker::mTrackedPositionGlobal [protected] |
Definition at line 138 of file lltracker.h.
Referenced by cacheLandmarkPosition(), drawHUDArrow(), getTrackedPositionGlobal(), render3D(), stopTrackingLandmark(), stopTrackingLocation(), and trackLocation().
LLString LLTracker::mLabel [protected] |
Definition at line 140 of file lltracker.h.
Referenced by getLabel(), trackAvatar(), trackLandmark(), and trackLocation().
LLString LLTracker::mToolTip [protected] |
LLString LLTracker::mTrackedLandmarkName [protected] |
Definition at line 143 of file lltracker.h.
Referenced by render3D(), stopTrackingLandmark(), and trackLandmark().
LLUUID LLTracker::mTrackedLandmarkAssetID [protected] |
Definition at line 144 of file lltracker.h.
Referenced by cacheLandmarkPosition(), getTrackedLandmarkAssetID(), render3D(), stopTrackingLandmark(), and trackLandmark().
LLUUID LLTracker::mTrackedLandmarkItemID [protected] |
Definition at line 145 of file lltracker.h.
Referenced by cacheLandmarkPosition(), getTrackedLandmarkItemID(), setLandmarkVisited(), stopTrackingLandmark(), and trackLandmark().
LLDynamicArray<LLUUID> LLTracker::mLandmarkAssetIDList [protected] |
Definition at line 146 of file lltracker.h.
LLDynamicArray<LLUUID> LLTracker::mLandmarkItemIDList [protected] |
Definition at line 147 of file lltracker.h.
BOOL LLTracker::mHasReachedLandmark [protected] |
Definition at line 148 of file lltracker.h.
Referenced by cacheLandmarkPosition(), render3D(), and stopTrackingLandmark().
BOOL LLTracker::mHasLandmarkPosition [protected] |
Definition at line 149 of file lltracker.h.
Referenced by cacheLandmarkPosition(), getTrackedPositionGlobal(), hasLandmarkPosition(), render3D(), and stopTrackingLandmark().
BOOL LLTracker::mLandmarkHasBeenVisited [protected] |
Definition at line 150 of file lltracker.h.
Referenced by cacheLandmarkPosition(), render3D(), and stopTrackingLandmark().
LLString LLTracker::mTrackedLocationName [protected] |
Definition at line 152 of file lltracker.h.
Referenced by getTrackedLocationName(), render3D(), stopTrackingLocation(), and trackLocation().
BOOL LLTracker::mIsTrackingLocation [protected] |
Definition at line 153 of file lltracker.h.
Referenced by render3D(), stopTrackingLocation(), and trackLocation().
BOOL LLTracker::mHasReachedLocation [protected] |
Definition at line 154 of file lltracker.h.