#include <llpreviewlandmark.h>
Inheritance diagram for LLPreviewLandmark:
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 LLString & | getName () const |
const LLColor4 & | getMarkerColor () const |
LLVector3d | getPositionGlobal () const |
void | loadAsset () |
EAssetStatus | getAssetStatus () |
Static Public Member Functions | |
static void * | createPlaceDetail (void *userdata) |
Protected Member Functions | |
void | getDegreesAndDist (F32 *degrees, F64 *horiz_dist, F64 *vert_dist) const |
Private Attributes | |
LLIconCtrl * | mIconLandmark |
LLPanelPlace * | mPlacePanel |
LLLandmark * | mLandmark |
LLColor4 | mMarkerColor |
Static Private Attributes | |
static LLPreviewLandmarkList | sOrderedInstances |
Definition at line 61 of file llpreviewlandmark.h.
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 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 |
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.
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] |
LLPanelPlace* LLPreviewLandmark::mPlacePanel [private] |
LLPreviewLandmarkList LLPreviewLandmark::sOrderedInstances [static, private] |
Definition at line 99 of file llpreviewlandmark.h.
Referenced by LLPreviewLandmark(), and ~LLPreviewLandmark().