LLLandmark Class Reference

#include <lllandmark.h>

Collaboration diagram for LLLandmark:

Collaboration graph
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,
typedef std::multimap< LLUUID,
LLRegionHandleCallback * > 

Private Member Functions

 LLLandmark ()
 LLLandmark (const LLVector3d &pos)

Static Private Member Functions

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

Private Attributes

LLVector3 mRegionPos
bool mGlobalPositionKnown
LLVector3d mGlobalPos

Static Private Attributes

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


struct  CacheInfo

Detailed Description

Definition at line 59 of file lllandmark.h.

Member Typedef Documentation

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

Definition at line 120 of file lllandmark.h.

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

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

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

Definition at line 49 of file lllandmark.cpp.

Member Function Documentation

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

Definition at line 111 of file lllandmark.cpp.

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

Referenced by LLLandmarkList::processGetAssetReply().

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

Definition at line 270 of file lllandmark.cpp.

References mRegions.

Referenced by requestRegionHandle().

bool LLLandmark::getGlobalPos ( LLVector3d pos  ) 

Definition at line 55 of file lllandmark.cpp.

References f, from_region_handle(), LLVector3d::mdV, mGlobalPos, mGlobalPositionKnown, mLocalRegion, mRegionID, mRegionPos, mRegions, LLVector3::mV, LLUUID::notNull(), and setGlobalPos().

Referenced by LLTracker::cacheLandmarkPosition(), LLPreviewLandmark::getDegreesAndDist(), LLPreviewLandmark::getPositionGlobal(), LLLandmarkList::processGetAssetReply(), LLFloaterWorldMap::teleport(), and LLFloaterWorldMap::teleportToLandmark().

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

LLVector3 LLLandmark::getRegionPos (  )  const

Definition at line 104 of file lllandmark.cpp.

References mRegionPos.

Referenced by LLPreviewLandmark::draw().

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

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

Definition at line 169 of file lllandmark.cpp.

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

Referenced by idle_startup().

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

Definition at line 175 of file lllandmark.cpp.

References LLMessageSystem::addUUID(), LLRegionHandleCallback::dataReady(), expireOldEntries(), LLUUID::isNull(), lldebugs, llendl, mLocalRegion, mRegionCallback, mRegions, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLMessageSystem::sendReliable().

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

void LLLandmark::setGlobalPos ( const LLVector3d pos  ) 

Definition at line 88 of file lllandmark.cpp.

References mGlobalPos, and mGlobalPositionKnown.

Referenced by getGlobalPos().

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

Definition at line 233 of file lllandmark.cpp.

References mLocalRegion.

Member Data Documentation

LLVector3d LLLandmark::mGlobalPos [private]

Definition at line 109 of file lllandmark.h.

Referenced by getGlobalPos(), and setGlobalPos().

bool LLLandmark::mGlobalPositionKnown [private]

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

LLLandmark::region_callback_t LLLandmark::mRegionCallback [static, private]

Definition at line 121 of file lllandmark.h.

Referenced by processRegionIDAndHandle(), and requestRegionHandle().

LLUUID LLLandmark::mRegionID [private]

Definition at line 106 of file lllandmark.h.

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

LLVector3 LLLandmark::mRegionPos [private]

Definition at line 107 of file lllandmark.h.

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

LLLandmark::region_map_t LLLandmark::mRegions [static, private]

Definition at line 119 of file lllandmark.h.

Referenced by expireOldEntries(), getGlobalPos(), processRegionIDAndHandle(), and requestRegionHandle().

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