LLPreviewLandmark Class Reference

#include <llpreviewlandmark.h>

Inheritance diagram for LLPreviewLandmark:

Inheritance graph
Collaboration diagram for LLPreviewLandmark:

Collaboration graph
List of all members.

Public Member Functions

 LLPreviewLandmark (const std::string &name, const LLRect &rect, const std::string &title, const LLUUID &item_uuid, BOOL show_keep_discard=FALSE, LLViewerInventoryItem *inv_item=NULL)
virtual ~LLPreviewLandmark ()
void draw ()
const LLStringgetName () const
const LLColor4getMarkerColor () const
LLVector3d getPositionGlobal () const
void loadAsset ()
EAssetStatus getAssetStatus ()

Static Public Member Functions

static voidcreatePlaceDetail (void *userdata)

Protected Member Functions

void getDegreesAndDist (F32 *degrees, F64 *horiz_dist, F64 *vert_dist) const

Private Attributes

LLColor4 mMarkerColor

Static Private Attributes

static LLPreviewLandmarkList sOrderedInstances

Detailed Description

Definition at line 61 of file llpreviewlandmark.h.

Constructor & Destructor Documentation

LLPreviewLandmark::LLPreviewLandmark ( const std::string &  name,
const LLRect rect,
const std::string &  title,
const LLUUID item_uuid,
BOOL  show_keep_discard = FALSE,
LLViewerInventoryItem inv_item = NULL 

Definition at line 73 of file llpreviewlandmark.cpp.

References LLUICtrlFactory::buildFloater(), createPlaceDetail(), LLPanel::getFactoryMap(), gUICtrlFactory, LLPanel::mFactoryMap, and sOrderedInstances.

LLPreviewLandmark::~LLPreviewLandmark (  )  [virtual]

Definition at line 114 of file llpreviewlandmark.cpp.

References end, and sOrderedInstances.

Member Function Documentation

void * LLPreviewLandmark::createPlaceDetail ( void userdata  )  [static]

Definition at line 215 of file llpreviewlandmark.cpp.

References LLUICtrlFactory::buildPanel(), and gUICtrlFactory.

Referenced by LLPreviewLandmark().

void LLPreviewLandmark::draw (  )  [virtual]

Reimplemented from LLFloater.

Definition at line 170 of file llpreviewlandmark.cpp.

References LLPanelPlace::displayParcelInfo(), LLFloater::draw(), LLLandmarkList::getAsset(), LLInventoryItem::getAssetUUID(), LLPreview::getItem(), getPositionGlobal(), LLLandmark::getRegionID(), LLLandmark::getRegionPos(), LLView::getVisible(), gLandmarkList, mLandmark, and mPlacePanel.

LLPreview::EAssetStatus LLPreviewLandmark::getAssetStatus (  )  [virtual]

Reimplemented from LLPreview.

Definition at line 205 of file llpreviewlandmark.cpp.

References LLLandmarkList::assetExists(), LLInventoryItem::getAssetUUID(), LLPreview::getItem(), gLandmarkList, LLPreview::mAssetStatus, and LLPreview::PREVIEW_ASSET_LOADED.

void LLPreviewLandmark::getDegreesAndDist ( F32 degrees,
F64 horiz_dist,
F64 vert_dist 
) const [protected]

Definition at line 128 of file llpreviewlandmark.cpp.

References gAgent, LLLandmark::getGlobalPos(), LLAgent::getPositionGlobal(), mLandmark, RAD_TO_DEG, VX, VY, and VZ.

const LLColor4 & LLPreviewLandmark::getMarkerColor (  )  const

Definition at line 165 of file llpreviewlandmark.cpp.

References mMarkerColor.

const LLString & LLPreviewLandmark::getName (  )  const [virtual]

Reimplemented from LLView.

Definition at line 143 of file llpreviewlandmark.cpp.

References LLPreview::getItem(), LLInventoryObject::getName(), and LLStringBase< char >::null.

LLVector3d LLPreviewLandmark::getPositionGlobal (  )  const

Definition at line 153 of file llpreviewlandmark.cpp.

References LLLandmark::getGlobalPos(), mLandmark, and void.

Referenced by draw().

void LLPreviewLandmark::loadAsset (  )  [virtual]

Reimplemented from LLPreview.

Definition at line 194 of file llpreviewlandmark.cpp.

References LLLandmarkList::getAsset(), LLInventoryItem::getAssetUUID(), LLPreview::getItem(), gLandmarkList, LLPreview::mAssetStatus, mLandmark, and LLPreview::PREVIEW_ASSET_LOADING.

Member Data Documentation

LLIconCtrl* LLPreviewLandmark::mIconLandmark [private]

Definition at line 93 of file llpreviewlandmark.h.

LLLandmark* LLPreviewLandmark::mLandmark [private]

Definition at line 95 of file llpreviewlandmark.h.

Referenced by draw(), getDegreesAndDist(), getPositionGlobal(), and loadAsset().

LLColor4 LLPreviewLandmark::mMarkerColor [private]

Definition at line 96 of file llpreviewlandmark.h.

Referenced by getMarkerColor().

LLPanelPlace* LLPreviewLandmark::mPlacePanel [private]

Definition at line 94 of file llpreviewlandmark.h.

Referenced by draw().

LLPreviewLandmarkList LLPreviewLandmark::sOrderedInstances [static, private]

Definition at line 99 of file llpreviewlandmark.h.

Referenced by LLPreviewLandmark(), and ~LLPreviewLandmark().

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