LLLandmark Class Reference

#include <lllandmark.h>

Collaboration diagram for LLLandmark:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ~LLLandmark ()
bool getGlobalPos (LLVector3d &pos)
void setGlobalPos (const LLVector3d &pos)
bool getRegionID (LLUUID &region_id)
LLVector3 getRegionPos () const

Static Public Member Functions

static LLLandmarkconstructFromString (const char *buffer)
static void registerCallbacks (LLMessageSystem *msg)
static void requestRegionHandle (LLMessageSystem *msg, const LLHost &upstream_host, const LLUUID &region_id, LLRegionHandleCallback *callback)
static void setRegionHandle (const LLUUID &region_id, U64 region_handle)

Private Types

typedef std::map< LLUUID,
CacheInfo
region_map_t
typedef std::multimap< LLUUID,
LLRegionHandleCallback * > 
region_callback_t

Private Member Functions

 LLLandmark ()
 LLLandmark (const LLVector3d &pos)

Static Private Member Functions

static void processRegionIDAndHandle (LLMessageSystem *msg, void **)
static void expireOldEntries ()

Private Attributes

LLUUID mRegionID
LLVector3 mRegionPos
bool mGlobalPositionKnown
LLVector3d mGlobalPos

Static Private Attributes

static std::pair< LLUUID, U64mLocalRegion
static region_map_t mRegions
static region_callback_t mRegionCallback

Classes

struct  CacheInfo


Detailed Description

Definition at line 59 of file lllandmark.h.


Member Typedef Documentation

typedef std::map<LLUUID, CacheInfo> LLLandmark::region_map_t [private]

Definition at line 118 of file lllandmark.h.

typedef std::multimap<LLUUID, LLRegionHandleCallback*> LLLandmark::region_callback_t [private]

Definition at line 120 of file lllandmark.h.


Constructor & Destructor Documentation

LLLandmark::~LLLandmark (  )  [inline]

Definition at line 62 of file lllandmark.h.

LLLandmark::LLLandmark (  )  [private]

Definition at line 44 of file lllandmark.cpp.

Referenced by constructFromString().

Here is the caller graph for this function:

LLLandmark::LLLandmark ( const LLVector3d pos  )  [private]

Definition at line 49 of file lllandmark.cpp.


Member Function Documentation

bool LLLandmark::getGlobalPos ( LLVector3d pos  ) 

void LLLandmark::setGlobalPos ( const LLVector3d pos  ) 

Definition at line 88 of file lllandmark.cpp.

References mGlobalPos, and mGlobalPositionKnown.

Referenced by getGlobalPos().

Here is the caller graph for this function:

bool LLLandmark::getRegionID ( LLUUID region_id  ) 

Definition at line 94 of file lllandmark.cpp.

References mRegionID, and LLUUID::notNull().

Referenced by LLPreviewLandmark::draw(), LLLandmarkList::processGetAssetReply(), LLFloaterWorldMap::teleport(), and LLFloaterWorldMap::teleportToLandmark().

Here is the call graph for this function:

Here is the caller graph for this function:

LLVector3 LLLandmark::getRegionPos (  )  const

Definition at line 104 of file lllandmark.cpp.

References mRegionPos.

Referenced by LLPreviewLandmark::draw().

Here is the caller graph for this function:

LLLandmark * LLLandmark::constructFromString ( const char *  buffer  )  [static]

Definition at line 111 of file lllandmark.cpp.

References llendl, llinfos, LLLandmark(), MAX_STRING, LLVector3d::mdV, mRegionID, mRegionPos, LLVector3::mV, NULL, S32, LLUUID::set(), VX, VY, and VZ.

Referenced by LLLandmarkList::processGetAssetReply().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLandmark::registerCallbacks ( LLMessageSystem msg  )  [static]

Definition at line 169 of file lllandmark.cpp.

References processRegionIDAndHandle(), and LLMessageSystem::setHandlerFunc().

Referenced by idle_startup().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLandmark::requestRegionHandle ( LLMessageSystem msg,
const LLHost upstream_host,
const LLUUID region_id,
LLRegionHandleCallback callback 
) [static]

void LLLandmark::setRegionHandle ( const LLUUID region_id,
U64  region_handle 
) [static]

Definition at line 233 of file lllandmark.cpp.

References mLocalRegion.

void LLLandmark::processRegionIDAndHandle ( LLMessageSystem msg,
void **   
) [static, private]

Definition at line 241 of file lllandmark.cpp.

References LLMessageSystem::getU64(), LLMessageSystem::getUUID(), grid_from_region_handle(), lldebugs, llendl, mRegionCallback, LLLandmark::CacheInfo::mRegionHandle, mRegions, LLLandmark::CacheInfo::mTimer, and LLFrameTimer::setTimerExpirySec().

Referenced by registerCallbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLandmark::expireOldEntries (  )  [static, private]

Definition at line 270 of file lllandmark.cpp.

References mRegions.

Referenced by requestRegionHandle().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 106 of file lllandmark.h.

Referenced by constructFromString(), getGlobalPos(), and getRegionID().

Definition at line 107 of file lllandmark.h.

Referenced by constructFromString(), getGlobalPos(), and getRegionPos().

Definition at line 108 of file lllandmark.h.

Referenced by getGlobalPos(), and setGlobalPos().

Definition at line 109 of file lllandmark.h.

Referenced by getGlobalPos(), and setGlobalPos().

std::pair< LLUUID, U64 > LLLandmark::mLocalRegion [static, private]

Definition at line 117 of file lllandmark.h.

Referenced by getGlobalPos(), requestRegionHandle(), and setRegionHandle().

Definition at line 121 of file lllandmark.h.

Referenced by processRegionIDAndHandle(), and requestRegionHandle().


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

Generated on Fri May 16 08:51:19 2008 for SecondLife by  doxygen 1.5.5