LLTracker Class Reference

#include <lltracker.h>

Collaboration diagram for LLTracker:

Collaboration graph
[legend]

List of all members.

Public Types

enum  ETrackingStatus { TRACKING_NOTHING = 0, TRACKING_AVATAR = 1, TRACKING_LANDMARK = 2, TRACKING_LOCATION = 3 }
enum  ETrackingLocationType { LOCATION_NOTHING, LOCATION_EVENT, LOCATION_ITEM }

Static Public Member Functions

static LLTrackerinstance ()
static void cleanupInstance ()
static ETrackingStatus getTrackingStatus ()
static ETrackingLocationType getTrackedLocationType ()
static BOOL isTracking (void *)
static void stopTracking (void *)
static void clearFocus ()
static const LLUUIDgetTrackedLandmarkAssetID ()
static const LLUUIDgetTrackedLandmarkItemID ()
static void trackAvatar (const LLUUID &avatar_id, const LLString &name)
static void trackLandmark (const LLUUID &landmark_asset_id, const LLUUID &landmark_item_id, const LLString &name)
static void trackLocation (const LLVector3d &pos, const LLString &full_name, const LLString &tooltip, ETrackingLocationType location_type=LOCATION_NOTHING)
static LLVector3d getTrackedPositionGlobal ()
static BOOL hasLandmarkPosition ()
static const LLStringgetTrackedLocationName ()
static void drawHUDArrow ()
static void render3D ()
static BOOL handleMouseDown (S32 x, S32 y)
static const LLStringgetLabel ()
static const LLStringgetToolTip ()

Static Public Attributes

static LLTrackersTrackerp = NULL
static BOOL sCheesyBeacon = FALSE

Protected Member Functions

 LLTracker ()
 ~LLTracker ()
void stopTrackingAll (BOOL clear_ui=FALSE)
void stopTrackingAvatar (BOOL clear_ui=FALSE)
void stopTrackingLocation (BOOL clear_ui=FALSE)
void stopTrackingLandmark (BOOL clear_ui=FALSE)
void drawMarker (const LLVector3d &pos_global, const LLColor4 &color)
void setLandmarkVisited ()
void cacheLandmarkPosition ()
void purgeBeaconText ()

Static Protected Member Functions

static void renderBeacon (LLVector3d pos_global, const LLColor4 &color, LLHUDText *hud_textp, const std::string &label)

Protected Attributes

ETrackingStatus mTrackingStatus
ETrackingLocationType mTrackingLocationType
LLPointer< LLHUDTextmBeaconText
S32 mHUDArrowCenterX
S32 mHUDArrowCenterY
LLVector3d mTrackedPositionGlobal
LLString mLabel
LLString mToolTip
LLString mTrackedLandmarkName
LLUUID mTrackedLandmarkAssetID
LLUUID mTrackedLandmarkItemID
LLDynamicArray< LLUUIDmLandmarkAssetIDList
LLDynamicArray< LLUUIDmLandmarkItemIDList
BOOL mHasReachedLandmark
BOOL mHasLandmarkPosition
BOOL mLandmarkHasBeenVisited
LLString mTrackedLocationName
BOOL mIsTrackingLocation
BOOL mHasReachedLocation


Detailed Description

Definition at line 50 of file lltracker.h.


Member Enumeration Documentation

Enumerator:
TRACKING_NOTHING 
TRACKING_AVATAR 
TRACKING_LANDMARK 
TRACKING_LOCATION 

Definition at line 53 of file lltracker.h.

Enumerator:
LOCATION_NOTHING 
LOCATION_EVENT 
LOCATION_ITEM 

Definition at line 61 of file lltracker.h.


Constructor & Destructor Documentation

LLTracker::LLTracker (  )  [protected]

Definition at line 82 of file lltracker.cpp.

Referenced by instance().

Here is the caller graph for this function:

LLTracker::~LLTracker (  )  [protected]

Definition at line 97 of file lltracker.cpp.

References purgeBeaconText().

Here is the call graph for this function:


Member Function Documentation

static LLTracker* LLTracker::instance ( void   )  [inline, static]

static void LLTracker::cleanupInstance (  )  [inline, static]

Definition at line 77 of file lltracker.h.

References NULL, and sTrackerp.

Referenced by LLAppViewer::cleanup().

Here is the caller graph for this function:

static ETrackingStatus LLTracker::getTrackingStatus (  )  [inline, static]

static ETrackingLocationType LLTracker::getTrackedLocationType (  )  [inline, static]

Definition at line 82 of file lltracker.h.

References instance(), and mTrackingLocationType.

Referenced by LLWorldMapView::drawTracking().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTracker::stopTracking ( void *  userdata  )  [static]

void LLTracker::clearFocus (  )  [static]

Definition at line 637 of file lltracker.cpp.

References instance(), mTrackingStatus, and TRACKING_NOTHING.

Referenced by LLFloaterWorldMap::onComboTextEntry().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

static const LLUUID& LLTracker::getTrackedLandmarkItemID (  )  [inline, static]

Definition at line 88 of file lltracker.h.

References instance(), and mTrackedLandmarkItemID.

Referenced by LLFloaterWorldMap::inventoryChanged().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTracker::trackAvatar ( const LLUUID avatar_id,
const LLString name 
) [static]

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTracker::trackLocation ( const LLVector3d pos,
const LLString full_name,
const LLString tooltip,
ETrackingLocationType  location_type = LOCATION_NOTHING 
) [static]

LLVector3d LLTracker::getTrackedPositionGlobal (  )  [static]

BOOL LLTracker::hasLandmarkPosition (  )  [static]

Definition at line 388 of file lltracker.cpp.

References cacheLandmarkPosition(), instance(), and mHasLandmarkPosition.

Referenced by LLFloaterWorldMap::flyToLandmark().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLString & LLTracker::getTrackedLocationName (  )  [static]

Definition at line 400 of file lltracker.cpp.

References instance(), and mTrackedLocationName.

Here is the call graph for this function:

void LLTracker::drawHUDArrow (  )  [static]

void LLTracker::render3D (  )  [static]

BOOL LLTracker::handleMouseDown ( S32  x,
S32  y 
) [static]

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

Here is the call graph for this function:

Here is the caller graph for this function:

static const LLString& LLTracker::getLabel ( void   )  [inline, static]

Definition at line 110 of file lltracker.h.

References instance(), and mLabel.

Referenced by LLWorldMapView::draw().

Here is the call graph for this function:

Here is the caller graph for this function:

static const LLString& LLTracker::getToolTip (  )  [inline, static]

Definition at line 111 of file lltracker.h.

References instance(), and mToolTip.

Referenced by LLWorldMapView::draw().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTracker::renderBeacon ( LLVector3d  pos_global,
const LLColor4 color,
LLHUDText hud_textp,
const std::string &  label 
) [static, protected]

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTracker::stopTrackingAvatar ( BOOL  clear_ui = FALSE  )  [protected]

void LLTracker::stopTrackingLocation ( BOOL  clear_ui = FALSE  )  [protected]

void LLTracker::stopTrackingLandmark ( BOOL  clear_ui = FALSE  )  [protected]

void LLTracker::drawMarker ( const LLVector3d pos_global,
const LLColor4 color 
) [protected]

void LLTracker::setLandmarkVisited (  )  [protected]

void LLTracker::cacheLandmarkPosition (  )  [protected]

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

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

LLTracker * LLTracker::sTrackerp = NULL [static]

Definition at line 107 of file lltracker.h.

Referenced by cleanupInstance(), and instance().

BOOL LLTracker::sCheesyBeacon = FALSE [static]

Definition at line 108 of file lltracker.h.

Referenced by draw_shockwave(), pulse_func(), and renderBeacon().

Definition at line 133 of file lltracker.h.

Referenced by getTrackedLocationType(), stopTrackingLocation(), and trackLocation().

Definition at line 134 of file lltracker.h.

Referenced by purgeBeaconText(), and render3D().

Definition at line 135 of file lltracker.h.

Referenced by drawMarker(), and handleMouseDown().

Definition at line 136 of file lltracker.h.

Referenced by drawMarker(), and handleMouseDown().

Definition at line 140 of file lltracker.h.

Referenced by getLabel(), trackAvatar(), trackLandmark(), and trackLocation().

Definition at line 141 of file lltracker.h.

Referenced by getToolTip(), and trackLocation().

Definition at line 143 of file lltracker.h.

Referenced by render3D(), stopTrackingLandmark(), and trackLandmark().

Definition at line 146 of file lltracker.h.

Definition at line 147 of file lltracker.h.

Definition at line 148 of file lltracker.h.

Referenced by cacheLandmarkPosition(), render3D(), and stopTrackingLandmark().

Definition at line 150 of file lltracker.h.

Referenced by cacheLandmarkPosition(), render3D(), and stopTrackingLandmark().

Definition at line 152 of file lltracker.h.

Referenced by getTrackedLocationName(), render3D(), stopTrackingLocation(), and trackLocation().

Definition at line 153 of file lltracker.h.

Referenced by render3D(), stopTrackingLocation(), and trackLocation().

Definition at line 154 of file lltracker.h.


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

Generated on Fri May 16 09:18:30 2008 for SecondLife by  doxygen 1.5.5