LLViewerParcelMgr Class Reference

#include <llviewerparcelmgr.h>

Collaboration diagram for LLViewerParcelMgr:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLViewerParcelMgr ()
 ~LLViewerParcelMgr ()
BOOL selectionEmpty () const
F32 getSelectionWidth () const
F32 getSelectionHeight () const
BOOL getSelection (LLVector3d &min, LLVector3d &max)
LLViewerRegiongetSelectionRegion ()
F32 getDwelling () const
void getDisplayInfo (S32 *area, S32 *claim, S32 *rent, BOOL *for_sale, F32 *dwell)
void getPrimInfo (S32 &sw_max, S32 &sw_total, S32 &max, S32 &total, S32 &owner, S32 &group, S32 &other, S32 &selected, F32 &parcel_object_bonus, S32 &other_clean)
S32 getSelectedArea () const
void resetSegments (U8 *segments)
void writeHighlightSegments (F32 west, F32 south, F32 east, F32 north)
void writeSegmentsFromBitmap (U8 *bitmap, U8 *segments)
void writeAgentParcelFromBitmap (U8 *bitmap)
void selectCollisionParcel ()
LLHandle< LLParcelSelectionselectParcelAt (const LLVector3d &pos_global)
LLParcelSelectionHandle selectParcelInRectangle ()
LLParcelSelectionHandle selectLand (const LLVector3d &corner1, const LLVector3d &corner2, BOOL snap_to_parcel)
void deselectLand ()
void deselectUnused ()
void addObserver (LLParcelObserver *observer)
void removeObserver (LLParcelObserver *observer)
void notifyObservers ()
void setSelectionVisible (BOOL visible)
BOOL isOwnedAt (const LLVector3d &pos_global) const
BOOL isOwnedSelfAt (const LLVector3d &pos_global) const
BOOL isOwnedOtherAt (const LLVector3d &pos_global) const
BOOL isSoundLocal (const LLVector3d &pos_global) const
BOOL canHearSound (const LLVector3d &pos_global) const
LLParcelSelectionHandle getParcelSelection () const
LLParcelSelectionHandle getFloatingParcelSelection () const
LLParcelgetAgentParcel () const
BOOL inAgentParcel (const LLVector3d &pos_global) const
LLParcelgetHoverParcel () const
LLParcelgetCollisionParcel () const
BOOL agentCanTakeDamage () const
BOOL agentCanFly () const
F32 agentDrawDistance () const
BOOL agentCanBuild () const
F32 getHoverParcelWidth () const
F32 getHoverParcelHeight () const
void render ()
void renderParcelCollision ()
void renderRect (const LLVector3d &west_south_bottom, const LLVector3d &east_north_top)
void renderOneSegment (F32 x1, F32 y1, F32 x2, F32 y2, F32 height, U8 direction, LLViewerRegion *regionp)
void renderHighlightSegments (const U8 *segments, LLViewerRegion *regionp)
void renderCollisionSegments (U8 *segments, BOOL use_pass, LLViewerRegion *regionp)
void sendParcelGodForceOwner (const LLUUID &owner_id)
void sendParcelGodForceToContent ()
void sendParcelPropertiesUpdate (LLParcel *parcel)
void sendParcelAccessListUpdate (U32 which)
void sendParcelAccessListRequest (U32 flags)
void sendParcelDwellRequest ()
void requestHoverParcelProperties (const LLVector3d &pos_global)
bool canAgentBuyParcel (LLParcel *, bool forGroup) const
void startBuyLand (BOOL is_for_group=FALSE)
void startSellLand ()
void startReleaseLand ()
void startDivideLand ()
void startJoinLand ()
void startDeedLandToGroup ()
void reclaimParcel ()
void buyPass ()
ParcelBuyInfosetupParcelBuy (const LLUUID &agent_id, const LLUUID &session_id, const LLUUID &group_id, BOOL is_group_owned, BOOL is_claim, BOOL remove_contribution)
void sendParcelBuy (ParcelBuyInfo *)
void deleteParcelBuy (ParcelBuyInfo *&)
void sendParcelDeed (const LLUUID &group_id)
void sendParcelRelease ()
const LLStringgetAgentParcelName () const
void dump ()
BOOL isCollisionBanned ()

Static Public Member Functions

static void cleanupGlobals ()
static void processParcelOverlay (LLMessageSystem *msg, void **user_data)
static void processParcelProperties (LLMessageSystem *msg, void **user_data)
static void processParcelAccessListReply (LLMessageSystem *msg, void **user)
static void processParcelDwellReply (LLMessageSystem *msg, void **user)
static BOOL isParcelOwnedByAgent (const LLParcel *parcelp, U64 group_proxy_power)
static BOOL isParcelModifiableByAgent (const LLParcel *parcelp, U64 group_proxy_power)

Protected Member Functions

void deedLandToGroup ()

Static Protected Member Functions

static void releaseAlertCB (S32 option, void *data)
static void claimAlertCB (S32 option, void *data)
static void buyAlertCB (S32 option, void *data)
static void deedAlertCB (S32 option, void *)
static void callbackDivideLand (S32 option, void *data)
static void callbackJoinLand (S32 option, void *data)

Private Attributes

BOOL mSelected
LLParcelmCurrentParcel
LLParcelSelectionHandle mCurrentParcelSelection
LLParcelSelectionHandle mFloatingParcelSelection
S32 mRequestResult
LLVector3d mWestSouth
LLVector3d mEastNorth
F32 mSelectedDwell
LLParcelmAgentParcel
S32 mAgentParcelSequenceID
LLParcelmHoverParcel
S32 mHoverRequestResult
LLVector3d mHoverWestSouth
LLVector3d mHoverEastNorth
LLDynamicArray< LLParcelObserver * > mObservers
S32 mParcelsPerEdge
U8mHighlightSegments
U8mAgentParcelOverlay
LLParcelmCollisionParcel
U8mCollisionSegments
BOOL mRenderCollision
BOOL mRenderSelection
S32 mCollisionBanned
LLFrameTimer mCollisionTimer
LLUUID mBlockedImageID
LLUUID mPassImageID
LLPointer< LLViewerImagemBlockedImage
LLPointer< LLViewerImagemPassImage
S32 mMediaParcelId
U64 mMediaRegionId

Static Private Attributes

static U8sPackedOverlay = NULL

Classes

class  ParcelBuyInfo

Detailed Description

Definition at line 119 of file llviewerparcelmgr.h.


Constructor & Destructor Documentation

LLViewerParcelMgr::LLViewerParcelMgr (  ) 

Definition at line 114 of file llviewerparcelmgr.cpp.

References LLViewerImageList::getImage(), LLControlGroup::getString(), gImageList, gViewerArt, i, mAgentParcel, mAgentParcelOverlay, mBlockedImage, mBlockedImageID, mCollisionParcel, mCollisionSegments, mCurrentParcel, mCurrentParcelSelection, mFloatingParcelSelection, mHighlightSegments, mHoverParcel, mParcelsPerEdge, mPassImage, mPassImageID, PARCEL_GRID_STEP_METERS, PARCEL_OVERLAY_CHUNKS, REGION_WIDTH_METERS, resetSegments(), S32, LLUUID::set(), sPackedOverlay, and TRUE.

LLViewerParcelMgr::~LLViewerParcelMgr (  ) 

Definition at line 160 of file llviewerparcelmgr.cpp.

References mAgentParcel, mAgentParcelOverlay, mCollisionParcel, mCollisionSegments, mCurrentParcel, mCurrentParcelSelection, mFloatingParcelSelection, mHighlightSegments, mHoverParcel, NULL, and sPackedOverlay.


Member Function Documentation

void LLViewerParcelMgr::addObserver ( LLParcelObserver observer  ) 

Definition at line 618 of file llviewerparcelmgr.cpp.

References mObservers, and LLDynamicArray< Type, BlockSize >::put().

Referenced by LLMenuParcelObserver::LLMenuParcelObserver(), LLPanelLandInfo::LLPanelLandInfo(), LLFloaterLand::show(), LLFloaterSellLandUI::soleInstance(), and LLFloaterBuyLandUI::soleInstance().

BOOL LLViewerParcelMgr::agentCanBuild (  )  const

Definition at line 674 of file llviewerparcelmgr.cpp.

References LLParcel::allowModifyBy(), gAgent, LLAgent::getGroupID(), LLAgent::getID(), LLAgent::isGodlike(), and mAgentParcel.

Referenced by LLToolBar::refresh().

BOOL LLViewerParcelMgr::agentCanFly (  )  const

Definition at line 694 of file llviewerparcelmgr.cpp.

References TRUE.

BOOL LLViewerParcelMgr::agentCanTakeDamage (  )  const

Definition at line 689 of file llviewerparcelmgr.cpp.

References LLParcel::getAllowDamage(), and mAgentParcel.

F32 LLViewerParcelMgr::agentDrawDistance (  )  const

Definition at line 699 of file llviewerparcelmgr.cpp.

static void LLViewerParcelMgr::buyAlertCB ( S32  option,
void data 
) [static, protected]

void LLViewerParcelMgr::buyPass (  ) 

Definition at line 2438 of file llviewerparcelmgr.cpp.

References _PREHASH_LocalID, _PREHASH_ParcelBuyPass, _PREHASH_ParcelData, LLMessageSystem::addS32Fast(), LLMessageSystem::addUUID(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLParcel::getLocalID(), getParcelSelection(), getSelectionRegion(), LLAgent::getSessionID(), gMessageSystem, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlock(), LLMessageSystem::nextBlockFast(), and LLMessageSystem::sendReliable().

Referenced by LLPanelLandGeneral::cbBuyPass().

void LLViewerParcelMgr::callbackDivideLand ( S32  option,
void data 
) [static, protected]

Definition at line 2275 of file llviewerparcelmgr.cpp.

References LLMessageSystem::addF32(), LLMessageSystem::addUUID(), LLViewerWindow::alertXml(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLViewerRegion::getPosRegionFromGlobal(), LLWorld::getRegionFromPosGlobal(), LLAgent::getSessionID(), gMessageSystem, gViewerWindow, gWorldp, LLVector3::mV, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLMessageSystem::sendReliable(), VX, and VY.

Referenced by startDivideLand().

void LLViewerParcelMgr::callbackJoinLand ( S32  option,
void data 
) [static, protected]

Definition at line 2333 of file llviewerparcelmgr.cpp.

References LLMessageSystem::addF32(), LLMessageSystem::addUUID(), LLViewerWindow::alertXml(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLViewerRegion::getPosRegionFromGlobal(), LLWorld::getRegionFromPosGlobal(), LLAgent::getSessionID(), gMessageSystem, gViewerWindow, gWorldp, LLVector3::mV, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLMessageSystem::sendReliable(), VX, and VY.

Referenced by startJoinLand().

bool LLViewerParcelMgr::canAgentBuyParcel ( LLParcel ,
bool  forGroup 
) const

Definition at line 2206 of file llviewerparcelmgr.cpp.

References gAgent, LLParcel::getAuthorizedBuyerID(), LLParcel::getForSale(), LLAgent::getGroupID(), LLAgent::getID(), LLParcel::getOwnerID(), LLParcel::getSalePrice(), GP_LAND_DEED, LLAgent::hasPowerInActiveGroup(), LLUUID::isNull(), LLParcel::isPublic(), mCurrentParcel, mRequestResult, mSelected, LLUUID::notNull(), PARCEL_RESULT_NO_DATA, and TRUE.

Referenced by enable_buy_land(), LLWorldEnableBuyLand::handleEvent(), LLStatusBar::refresh(), and LLPanelLandGeneral::refresh().

BOOL LLViewerParcelMgr::canHearSound ( const LLVector3d pos_global  )  const

Definition at line 756 of file llviewerparcelmgr.cpp.

References FALSE, getAgentParcel(), LLParcel::getSoundLocal(), gParcelMgr, inAgentParcel(), isSoundLocal(), and TRUE.

Referenced by process_sound_trigger(), LLVOAvatar::processSingleAnimationStateChange(), LLVOAvatar::updateCharacter(), and LLAudioSourceVO::updateGain().

static void LLViewerParcelMgr::claimAlertCB ( S32  option,
void data 
) [static, protected]

void LLViewerParcelMgr::cleanupGlobals (  )  [static]

Definition at line 2596 of file llviewerparcelmgr.cpp.

References gParcelMgr, NULL, and sNullSelection.

Referenced by cleanup_app().

void LLViewerParcelMgr::deedAlertCB ( S32  option,
void  
) [static, protected]

Definition at line 2133 of file llviewerparcelmgr.cpp.

References LLParcel::getGroupID(), getParcelSelection(), gParcelMgr, and sendParcelDeed().

Referenced by deedLandToGroup().

void LLViewerParcelMgr::deedLandToGroup (  )  [protected]

Definition at line 2108 of file llviewerparcelmgr.cpp.

References LLViewerWindow::alertXml(), DB_FIRST_NAME_BUF_SIZE, deedAlertCB(), gCacheName, LLParcel::getArea(), LLParcel::getContributeWithDeed(), LLParcel::getGroupID(), LLCacheName::getGroupName(), LLCacheName::getName(), LLParcel::getOwnerID(), gViewerWindow, llformat(), MAX_STRING, mCurrentParcel, and NULL.

Referenced by startDeedLandToGroup().

void LLViewerParcelMgr::deleteParcelBuy ( ParcelBuyInfo *&   ) 

Definition at line 1179 of file llviewerparcelmgr.cpp.

References NULL.

Referenced by LLFloaterBuyLandUI::sendBuyLand(), and LLFloaterBuyLandUI::~LLFloaterBuyLandUI().

void LLViewerParcelMgr::deselectLand (  ) 

Definition at line 593 of file llviewerparcelmgr.cpp.

References FALSE, LLParcel::mAccessList, LLParcel::mBanList, mCurrentParcel, mCurrentParcelSelection, mFloatingParcelSelection, mSelected, mSelectedDwell, notifyObservers(), NULL, and LLParcel::setLocalID().

Referenced by deselectUnused(), handle_go_to(), LLLandSit::handleEvent(), LLLandBuild::handleEvent(), LLObjectEdit::handleEvent(), LLToolSelectLand::handleMouseDown(), LLToolPie::pickAndShowMenu(), sendParcelRelease(), and LLAgent::teleportCore().

void LLViewerParcelMgr::deselectUnused (  ) 

Definition at line 584 of file llviewerparcelmgr.cpp.

References deselectLand(), mCurrentParcelSelection, and mFloatingParcelSelection.

Referenced by LLViewerWindow::handlePerFrameHover().

void LLViewerParcelMgr::dump (  ) 

Definition at line 193 of file llviewerparcelmgr.cpp.

References LLParcel::dump(), end, llendl, llinfos, mAgentParcel, LLParcel::mBanList, mCurrentParcel, mEastNorth, mHoverParcel, mSelected, mWestSouth, and S32.

LLParcel * LLViewerParcelMgr::getAgentParcel (  )  const

Definition at line 668 of file llviewerparcelmgr.cpp.

References mAgentParcel.

Referenced by LLAgent::canFly(), canHearSound(), create_new_landmark(), enable_land_build(), enable_object_build(), LLAttachmentEnableDrop::handleEvent(), LLWorldEnableBuyLand::handleEvent(), LLWorldCreateLandmark::handleEvent(), LLAudioStreamMediaListener::handleEvent(), LLAudioStreamMusicListener::handleEvent(), LLPanelClassified::initNewClassified(), LLPanelPick::initNewPick(), LLOverlayBar::mediaPlay(), LLOverlayBar::musicPlay(), LLFloaterLandmark::onBtnNew(), LLPanelLandOptions::onClickSet(), LLStatusBar::refresh(), LLOverlayBar::refresh(), and LLVoiceClient::stateMachine().

const LLString & LLViewerParcelMgr::getAgentParcelName (  )  const

Definition at line 1255 of file llviewerparcelmgr.cpp.

References LLParcel::getName(), and mAgentParcel.

Referenced by LLAgent::buildLocationString().

LLParcel * LLViewerParcelMgr::getCollisionParcel (  )  const

Definition at line 823 of file llviewerparcelmgr.cpp.

References mCollisionParcel, mRenderCollision, and NULL.

Referenced by LLToolPie::pickAndShowMenu().

void LLViewerParcelMgr::getDisplayInfo ( S32 area,
S32 claim,
S32 rent,
BOOL for_sale,
F32 dwell 
)

Definition at line 223 of file llviewerparcelmgr.cpp.

References FALSE, LLParcel::getClaimPricePerMeter(), LLParcel::getForSale(), LLParcel::getSalePrice(), getSelectedArea(), LLParcel::getTotalRent(), mCurrentParcel, mCurrentParcelSelection, mSelected, mSelectedDwell, S32, and TRUE.

Referenced by LLPanelLandInfo::refresh(), and LLPanelLandGeneral::refresh().

F32 LLViewerParcelMgr::getDwelling (  )  const [inline]

Definition at line 133 of file llviewerparcelmgr.h.

References mSelectedDwell.

Referenced by LLStatusBar::refresh().

LLParcelSelectionHandle LLViewerParcelMgr::getFloatingParcelSelection (  )  const

Definition at line 663 of file llviewerparcelmgr.cpp.

References mFloatingParcelSelection.

Referenced by LLPanelLandOptions::draw(), LLPanelLandOptions::onClickPublishHelp(), LLFloaterTools::onOpen(), and LLFloaterLand::show().

LLParcel * LLViewerParcelMgr::getHoverParcel (  )  const

Definition at line 810 of file llviewerparcelmgr.cpp.

References mHoverParcel, mHoverRequestResult, NULL, and PARCEL_RESULT_SUCCESS.

Referenced by LLHoverView::updateText().

F32 LLViewerParcelMgr::getHoverParcelHeight (  )  const [inline]

Definition at line 214 of file llviewerparcelmgr.h.

References LLVector3d::mdV, mHoverEastNorth, mHoverWestSouth, and VY.

Referenced by LLHoverView::updateText().

F32 LLViewerParcelMgr::getHoverParcelWidth (  )  const [inline]

Definition at line 211 of file llviewerparcelmgr.h.

References LLVector3d::mdV, mHoverEastNorth, mHoverWestSouth, and VX.

Referenced by LLHoverView::updateText().

LLParcelSelectionHandle LLViewerParcelMgr::getParcelSelection (  )  const

Definition at line 658 of file llviewerparcelmgr.cpp.

References mCurrentParcelSelection.

Referenced by buyPass(), LLFloaterSellLandUI::SelectionObserver::changed(), LLFloaterBuyLandUI::SelectionObserver::changed(), deedAlertCB(), enable_buy_land(), LLPanelLandGeneral::enableBuyPass(), LLWorldEnableBuyLand::handleEvent(), LLFloaterAuction::initialize(), LLToolBrushLand::modifyLandInSelectionGlobal(), LLPanelLandInfo::onClickAbout(), LLPanelLandGeneral::onClickBuyPass(), reclaimParcel(), and LLPanelLandInfo::refresh().

void LLViewerParcelMgr::getPrimInfo ( S32 sw_max,
S32 sw_total,
S32 max,
S32 total,
S32 owner,
S32 group,
S32 other,
S32 selected,
F32 parcel_object_bonus,
S32 other_clean 
)

Definition at line 268 of file llviewerparcelmgr.cpp.

References LLParcel::getCleanOtherTime(), LLParcel::getGroupPrimCount(), LLParcel::getMaxPrimCapacity(), LLParcel::getOtherPrimCount(), LLParcel::getOwnerPrimCount(), LLParcel::getParcelPrimBonus(), LLParcel::getPrimCount(), LLParcel::getSelectedPrimCount(), LLParcel::getSimWideMaxPrimCapacity(), LLParcel::getSimWidePrimCount(), llround(), mCurrentParcel, and mSelected.

Referenced by LLPanelLandObjects::onClickReturnGroupObjects(), LLPanelLandObjects::onClickReturnOtherObjects(), LLPanelLandObjects::onClickReturnOwnerList(), LLPanelLandObjects::onClickReturnOwnerObjects(), and LLPanelLandObjects::refresh().

S32 LLViewerParcelMgr::getSelectedArea (  )  const

Definition at line 285 of file llviewerparcelmgr.cpp.

References LLParcel::getArea(), height, llround(), mCurrentParcel, mCurrentParcelSelection, LLVector3d::mdV, mEastNorth, mSelected, mWestSouth, S32, VX, VY, and width.

Referenced by getDisplayInfo(), and LLPanelLandInfo::refresh().

BOOL LLViewerParcelMgr::getSelection ( LLVector3d min,
LLVector3d max 
) [inline]

Definition at line 131 of file llviewerparcelmgr.h.

References mEastNorth, mWestSouth, and selectionEmpty().

Referenced by handle_claim_public_land(), and LLToolBrushLand::modifyLandInSelectionGlobal().

F32 LLViewerParcelMgr::getSelectionHeight (  )  const [inline]

Definition at line 130 of file llviewerparcelmgr.h.

References LLVector3d::mdV, mEastNorth, mWestSouth, and VY.

Referenced by selectLand().

LLViewerRegion * LLViewerParcelMgr::getSelectionRegion (  ) 

Definition at line 215 of file llviewerparcelmgr.cpp.

References LLWorld::getRegionFromPosGlobal(), gWorldp, mWestSouth, and NULL.

Referenced by buyPass(), LLFloaterSellLandUI::SelectionObserver::changed(), LLFloaterBuyLandUI::SelectionObserver::changed(), LLPanelLandOptions::draw(), handle_claim_public_land(), LLFloaterAuction::initialize(), LLPanelLandOptions::onClickPublishHelp(), LLPanelLandObjects::onClickRefresh(), LLPanelLandOptions::onCommitAny(), reclaimParcel(), LLPanelLandInfo::refresh(), LLPanelLandCovenant::refresh(), LLPanelLandObjects::refresh(), LLPanelLandGeneral::refresh(), send_other_clean_time_message(), send_parcel_select_objects(), send_return_objects_message(), startBuyLand(), startSellLand(), LLFloaterBuyLandUI::updateCovenantInfo(), and LLFloaterBuyLandUI::updateParcelInfo().

F32 LLViewerParcelMgr::getSelectionWidth (  )  const [inline]

Definition at line 129 of file llviewerparcelmgr.h.

References LLVector3d::mdV, mEastNorth, mWestSouth, and VX.

Referenced by selectLand().

BOOL LLViewerParcelMgr::inAgentParcel ( const LLVector3d pos_global  )  const

Definition at line 786 of file llviewerparcelmgr.cpp.

References FALSE, gAgent, LLViewerRegion::getPosRegionFromGlobal(), LLAgent::getRegion(), LLWorld::getRegionFromPosGlobal(), gWorldp, mAgentParcelOverlay, mParcelsPerEdge, LLVector3::mV, PARCEL_GRID_STEP_METERS, S32, TRUE, VX, and VY.

Referenced by canHearSound().

BOOL LLViewerParcelMgr::isCollisionBanned (  ) 

Definition at line 2457 of file llviewerparcelmgr.cpp.

References BA_ALLOWED, BA_NOT_IN_GROUP, BA_NOT_ON_LIST, FALSE, mCollisionBanned, and TRUE.

Referenced by LLPanelLandGeneral::enableBuyPass(), LLToolPie::pickAndShowMenu(), and LLPanelLandGeneral::refresh().

BOOL LLViewerParcelMgr::isOwnedAt ( const LLVector3d pos_global  )  const

Definition at line 704 of file llviewerparcelmgr.cpp.

References FALSE, LLViewerRegion::getParcelOverlay(), LLViewerRegion::getPosRegionFromGlobal(), LLWorld::getRegionFromPosGlobal(), gWorldp, and LLViewerParcelOverlay::isOwned().

BOOL LLViewerParcelMgr::isOwnedOtherAt ( const LLVector3d pos_global  )  const

Definition at line 730 of file llviewerparcelmgr.cpp.

References FALSE, LLViewerRegion::getParcelOverlay(), LLViewerRegion::getPosRegionFromGlobal(), LLWorld::getRegionFromPosGlobal(), gWorldp, and LLViewerParcelOverlay::isOwnedOther().

BOOL LLViewerParcelMgr::isOwnedSelfAt ( const LLVector3d pos_global  )  const

Definition at line 717 of file llviewerparcelmgr.cpp.

References FALSE, LLViewerRegion::getParcelOverlay(), LLViewerRegion::getPosRegionFromGlobal(), LLWorld::getRegionFromPosGlobal(), gWorldp, and LLViewerParcelOverlay::isOwnedSelf().

BOOL LLViewerParcelMgr::isParcelModifiableByAgent ( const LLParcel parcelp,
U64  group_proxy_power 
) [static]

Definition at line 2499 of file llviewerparcelmgr.cpp.

References FALSE, gAgent, LLAgent::getID(), LLParcel::getOwnerID(), LLParcel::getOwnershipStatus(), LLAgent::isGodlike(), isParcelOwnedByAgent(), and LLParcel::OS_LEASED.

Referenced by LLPanelLandOptions::draw(), LLPanelLandOptions::onClickPublishHelp(), LLPanelLandBan::refresh(), LLPanelLandAccess::refresh(), LLPanelLandMedia::refresh(), LLPanelLandOptions::refresh(), LLPanelLandObjects::refresh(), and LLPanelLandGeneral::refresh().

BOOL LLViewerParcelMgr::isParcelOwnedByAgent ( const LLParcel parcelp,
U64  group_proxy_power 
) [static]

Definition at line 2467 of file llviewerparcelmgr.cpp.

References FALSE, gAgent, LLAgent::getID(), LLParcel::getOwnerID(), LLAgent::hasPowerInGroup(), LLAgent::isGodlike(), LLParcel::isPublic(), and TRUE.

Referenced by LLAgent::canFly(), create_new_landmark(), LLWorldCreateLandmark::handleEvent(), isParcelModifiableByAgent(), LLFloaterLandmark::onBtnNew(), LLPanelLandInfo::refresh(), LLPanelLandGeneral::refresh(), and startReleaseLand().

BOOL LLViewerParcelMgr::isSoundLocal ( const LLVector3d pos_global  )  const

Definition at line 743 of file llviewerparcelmgr.cpp.

References FALSE, LLViewerRegion::getParcelOverlay(), LLViewerRegion::getPosRegionFromGlobal(), LLWorld::getRegionFromPosGlobal(), gWorldp, and LLViewerParcelOverlay::isSoundLocal().

Referenced by canHearSound().

void LLViewerParcelMgr::notifyObservers (  ) 

Definition at line 633 of file llviewerparcelmgr.cpp.

References LLParcelObserver::changed(), LLDynamicArray< Type, BlockSize >::count(), count, LLDynamicArray< Type, BlockSize >::get(), i, mObservers, LLDynamicArray< Type, BlockSize >::put(), and S32.

Referenced by deselectLand(), processParcelAccessListReply(), processParcelDwellReply(), processParcelProperties(), selectCollisionParcel(), selectLand(), and set_god_level().

void LLViewerParcelMgr::processParcelAccessListReply ( LLMessageSystem msg,
void **  user 
) [static]

Definition at line 1912 of file llviewerparcelmgr.cpp.

References _PREHASH_AgentID, _PREHASH_Data, _PREHASH_Flags, _PREHASH_LocalID, _PREHASH_SequenceID, AL_ACCESS, AL_BAN, LLParcel::getLocalID(), LLMessageSystem::getS32Fast(), LLMessageSystem::getU32Fast(), LLMessageSystem::getUUIDFast(), gParcelMgr, llendl, llwarns, LLParcel::mAccessList, LLParcel::mBanList, mCurrentParcel, notifyObservers(), S32, and LLParcel::unpackAccessEntries().

Referenced by register_viewer_callbacks().

void LLViewerParcelMgr::processParcelDwellReply ( LLMessageSystem msg,
void **  user 
) [static]

Definition at line 1952 of file llviewerparcelmgr.cpp.

References LLMessageSystem::getF32(), LLParcel::getLocalID(), LLMessageSystem::getS32(), LLMessageSystem::getUUID(), gParcelMgr, mCurrentParcel, mSelectedDwell, notifyObservers(), and S32.

Referenced by register_viewer_callbacks().

void LLViewerParcelMgr::processParcelOverlay ( LLMessageSystem msg,
void **  user_data 
) [static]

Definition at line 1327 of file llviewerparcelmgr.cpp.

References _PREHASH_Data, _PREHASH_ParcelData, _PREHASH_SequenceID, LLMessageSystem::getBinaryDataFast(), LLWorld::getRegion(), LLMessageSystem::getS32Fast(), LLMessageSystem::getSender(), LLMessageSystem::getSizeFast(), gNoRender, gParcelMgr, gWorldp, llendl, llwarns, LLViewerRegion::mParcelOverlay, mParcelsPerEdge, PARCEL_OVERLAY_CHUNKS, S32, sPackedOverlay, and LLViewerParcelOverlay::uncompressLandOverlay().

Referenced by register_viewer_callbacks().

void LLViewerParcelMgr::processParcelProperties ( LLMessageSystem msg,
void **  user_data 
) [static]

Definition at line 1370 of file llviewerparcelmgr.cpp.

References _PREHASH_AABBMax, _PREHASH_AABBMin, _PREHASH_Area, _PREHASH_AuctionID, _PREHASH_Bitmap, _PREHASH_ClaimDate, _PREHASH_ClaimPrice, _PREHASH_GroupPrims, _PREHASH_IsGroupOwned, _PREHASH_LocalID, _PREHASH_MaxPrims, _PREHASH_OtherCount, _PREHASH_OtherPrims, _PREHASH_OwnerID, _PREHASH_OwnerPrims, _PREHASH_ParcelData, _PREHASH_ParcelPrimBonus, _PREHASH_PublicCount, _PREHASH_RegionDenyAnonymous, _PREHASH_RegionDenyIdentified, _PREHASH_RegionDenyTransacted, _PREHASH_RegionPushOverride, _PREHASH_RentPrice, _PREHASH_RequestResult, _PREHASH_SelectedPrims, _PREHASH_SelfCount, _PREHASH_SequenceID, _PREHASH_TotalPrims, AL_ACCESS, AL_BAN, BA_BANNED, BA_NOT_IN_GROUP, BA_NOT_ON_LIST, LLVector3d::clearVec(), COLLISION_BANNED_PARCEL_SEQ_ID, COLLISION_NOT_IN_GROUP_PARCEL_SEQ_ID, COLLISION_NOT_ON_LIST_PARCEL_SEQ_ID, FALSE, gAgent, gAudiop, LLMessageSystem::getBinaryDataFast(), LLControlGroup::getBOOL(), LLMessageSystem::getBOOL(), LLMessageSystem::getBOOLFast(), LLMessageSystem::getF32Fast(), LLViewerRegion::getHandle(), LLMediaEngine::getImageUUID(), LLMediaEngine::getInstance(), LLAudioEngine::getInternetStreamURL(), LLParcel::getLocalID(), LLMediaEngine::getMediaRenderer(), LLParcel::getMediaURL(), LLViewerRegion::getPosGlobalFromRegion(), LLViewerRegion::getPosRegionFromGlobal(), LLAgent::getRegion(), LLWorld::getRegion(), LLMessageSystem::getS32(), LLMessageSystem::getS32Fast(), LLMessageSystem::getSender(), LLMessageSystem::getU32Fast(), LLMessageSystem::getU8(), LLMediaEngine::getUrl(), LLMessageSystem::getUUIDFast(), LLMessageSystem::getVector3Fast(), LLControlGroup::getWarning(), gParcelMgr, gSavedSettings, gWorldp, HOVERED_PARCEL_SEQ_ID, LLParcel::init(), LLMediaEngine::isAutoScaled(), LLMediaBase::isLooping(), LLMediaBase::isPlaying(), llendl, llinfos, mAgentParcel, mAgentParcelSequenceID, mCollisionBanned, mCollisionParcel, mCollisionSegments, mCollisionTimer, mCurrentParcel, mCurrentParcelSelection, mEastNorth, mHighlightSegments, mHoverEastNorth, mHoverParcel, mHoverRequestResult, mHoverWestSouth, mMediaParcelId, mMediaRegionId, mParcelsPerEdge, mRenderCollision, mRequestResult, mSelected, mSelectedDwell, LLVector3::mV, mWestSouth, notifyObservers(), NULL, optionally_prepare_video(), optionally_start_music(), PARCEL_RESULT_MULTIPLE, PARCEL_RESULT_NO_DATA, PARCEL_RESULT_SUCCESS, LLFrameTimer::reset(), resetSegments(), S32, SELECTED_PARCEL_SEQ_ID, sendParcelAccessListRequest(), sendParcelDwellRequest(), LLParcel::setAABBMax(), LLParcel::setAABBMin(), LLParcel::setAuctionID(), LLParcel::setCleanOtherTime(), LLParcel::setGroupPrimCount(), LLParcel::setLocalID(), LLParcel::setMaxPrimCapacity(), LLParcel::setOtherPrimCount(), LLParcel::setOwnerPrimCount(), LLParcel::setOwnershipStatus(), LLParcel::setParcelPrimBonus(), LLParcel::setRegionDenyAnonymousOverride(), LLParcel::setRegionDenyIdentifiedOverride(), LLParcel::setRegionDenyTransactedOverride(), LLParcel::setRegionPushOverride(), LLParcel::setSelectedPrimCount(), LLParcel::setSimWideMaxPrimCapacity(), LLParcel::setSimWidePrimCount(), LLControlGroup::setWarning(), LLNotifyBox::showXml(), start_video(), LLAudioEngine::startInternetStream(), stop_video(), LLAudioEngine::stopInternetStream(), LLStringBase< char >::trim(), TRUE, LLParcel::unpackMessage(), VX, VY, writeAgentParcelFromBitmap(), writeHighlightSegments(), and writeSegmentsFromBitmap().

Referenced by register_viewer_callbacks().

void LLViewerParcelMgr::reclaimParcel (  ) 

Definition at line 2409 of file llviewerparcelmgr.cpp.

References LLMessageSystem::addS32(), LLMessageSystem::addUUID(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLParcel::getLocalID(), LLViewerRegion::getOwner(), LLParcel::getOwnerID(), getParcelSelection(), getSelectionRegion(), LLAgent::getSessionID(), gMessageSystem, gParcelMgr, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLUUID::notNull(), and LLMessageSystem::sendReliable().

Referenced by LLPanelLandGeneral::onClickReclaim().

void LLViewerParcelMgr::releaseAlertCB ( S32  option,
void data 
) [static, protected]

Definition at line 2429 of file llviewerparcelmgr.cpp.

References gParcelMgr, and sendParcelRelease().

Referenced by startReleaseLand().

void LLViewerParcelMgr::removeObserver ( LLParcelObserver observer  ) 

Definition at line 624 of file llviewerparcelmgr.cpp.

References mObservers, and LLDynamicArray< Type, BlockSize >::removeObj().

Referenced by LLFloaterLand::onClose(), LLMenuParcelObserver::~LLMenuParcelObserver(), and LLPanelLandInfo::~LLPanelLandInfo().

void LLViewerParcelMgr::render (  ) 

Definition at line 839 of file llviewerparcelmgr.cpp.

References LLWorld::getRegionFromPosGlobal(), gWorldp, mHighlightSegments, mRenderSelection, mSelected, mWestSouth, and renderHighlightSegments().

Referenced by render_hud_elements().

void LLViewerParcelMgr::renderCollisionSegments ( U8 segments,
BOOL  use_pass,
LLViewerRegion regionp 
)

Definition at line 821 of file llglsandbox.cpp.

References BA_BANNED, BA_NOT_ON_LIST, BAN_HEIGHT, LLViewerImage::bindTexture(), EAST_MASK, f, gAgent, LLAgent::getPositionAgent(), GL_NAME_PARCEL_WALL, glBegin, glColor4f, glColor4ubv, glEnd, gRenderForSelect, llclamp(), mBlockedImage, mCollisionBanned, mParcelsPerEdge, mPassImage, LLColor4U::mV, LLVector3::mV, NORTH_MASK, PARCEL_GRID_STEP_METERS, PARCEL_HEIGHT, renderOneSegment(), S32, SOUTH_MASK, VX, VY, WEST_MASK, x, and y.

Referenced by renderParcelCollision().

void LLViewerParcelMgr::renderHighlightSegments ( const U8 segments,
LLViewerRegion regionp 
)

Definition at line 771 of file llglsandbox.cpp.

References f, glBegin, glColor4f, glEnd, mParcelsPerEdge, PARCEL_GRID_STEP_METERS, PARCEL_POST_HEIGHT, renderOneSegment(), S32, SOUTH_MASK, WEST_MASK, x, and y.

Referenced by render().

void LLViewerParcelMgr::renderOneSegment ( F32  x1,
F32  y1,
F32  x2,
F32  y2,
F32  height,
U8  direction,
LLViewerRegion regionp 
)

Definition at line 685 of file llglsandbox.cpp.

References EAST_MASK, f, LLViewerRegion::getLand(), LLViewerRegion::getOriginAgent(), llmax(), LLVector3::mV, REGION_WIDTH_METERS, LLSurface::resolveHeightRegion(), SOUTH_MASK, VX, VY, WEST_MASK, and z.

Referenced by renderCollisionSegments(), and renderHighlightSegments().

void LLViewerParcelMgr::renderParcelCollision (  ) 

Definition at line 853 of file llviewerparcelmgr.cpp.

References FALSE, gAgent, LLFrameTimer::getElapsedTimeF32(), LLParcel::getParcelFlag(), LLAgent::getRegion(), mCollisionParcel, mCollisionSegments, mCollisionTimer, mRenderCollision, PARCEL_COLLISION_DRAW_SECS, PF_USE_PASS_LIST, and renderCollisionSegments().

Referenced by render_hud_elements(), and LLViewerWindow::renderSelections().

void LLViewerParcelMgr::renderRect ( const LLVector3d west_south_bottom,
const LLVector3d east_north_top 
)

Definition at line 517 of file llglsandbox.cpp.

References f, gAgent, LLAgent::getPosAgentFromGlobal(), glBegin, glColor4f, glEnd, gWorldp, LLVector3::mV, PARCEL_POST_HEIGHT, LLWorld::resolveLandHeightAgent(), LLUI::setLineWidth(), VX, and VY.

Referenced by LLToolSelectLand::render().

void LLViewerParcelMgr::requestHoverParcelProperties ( const LLVector3d pos_global  ) 

Definition at line 1288 of file llviewerparcelmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_East, _PREHASH_North, _PREHASH_ParcelData, _PREHASH_ParcelPropertiesRequest, _PREHASH_SequenceID, _PREHASH_SessionID, _PREHASH_South, _PREHASH_West, LLMessageSystem::addBOOL(), LLMessageSystem::addF32Fast(), LLMessageSystem::addS32Fast(), LLMessageSystem::addUUIDFast(), FALSE, gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLViewerRegion::getPosRegionFromGlobal(), LLWorld::getRegionFromPosGlobal(), LLAgent::getSessionID(), gMessageSystem, gWorldp, HOVERED_PARCEL_SEQ_ID, mHoverRequestResult, LLVector3::mV, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), PARCEL_GRID_STEP_METERS, PARCEL_RESULT_NO_DATA, LLMessageSystem::sendReliable(), VX, and VY.

Referenced by LLHoverView::pickCallback().

void LLViewerParcelMgr::resetSegments ( U8 segments  ) 

Definition at line 302 of file llviewerparcelmgr.cpp.

References count, i, mParcelsPerEdge, and S32.

Referenced by LLViewerParcelMgr(), processParcelProperties(), selectCollisionParcel(), and selectLand().

void LLViewerParcelMgr::selectCollisionParcel (  ) 

Definition at line 451 of file llviewerparcelmgr.cpp.

References _PREHASH_AgentID, _PREHASH_LocalID, _PREHASH_ParcelData, _PREHASH_ParcelPropertiesRequestByID, _PREHASH_SequenceID, _PREHASH_SessionID, LLMessageSystem::addS32Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLParcel::getDesc(), LLAgent::getID(), LLParcel::getLocalID(), LLParcel::getName(), LLViewerRegion::getOriginGlobal(), LLParcel::getPassHours(), LLParcel::getPassPrice(), LLAgent::getRegion(), LLAgent::getSessionID(), gMessageSystem, gWorldp, mCollisionParcel, mCurrentParcel, mCurrentParcelSelection, mEastNorth, mFloatingParcelSelection, mHighlightSegments, mRequestResult, mSelected, mWestSouth, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), notifyObservers(), NULL, PARCEL_GRID_STEP_METERS, PARCEL_RESULT_NO_DATA, resetSegments(), SELECTED_PARCEL_SEQ_ID, LLAgent::sendReliableMessage(), LLParcel::setDesc(), LLParcel::setName(), LLParcel::setPassHours(), LLParcel::setPassPrice(), and TRUE.

Referenced by LLToolPie::pickAndShowMenu().

BOOL LLViewerParcelMgr::selectionEmpty (  )  const

Definition at line 652 of file llviewerparcelmgr.cpp.

References mSelected.

Referenced by LLFloaterSellLandUI::SelectionObserver::changed(), LLFloaterBuyLandUI::SelectionObserver::changed(), enable_land_selected(), getSelection(), LLWorldEnableBuyLand::handleEvent(), LLShowFloater::handleEvent(), LLToolBrushLand::modifyLandInSelectionGlobal(), and LLFloaterTools::updatePopup().

LLParcelSelectionHandle LLViewerParcelMgr::selectLand ( const LLVector3d corner1,
const LLVector3d corner2,
BOOL  snap_to_parcel 
)

Definition at line 497 of file llviewerparcelmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_East, _PREHASH_North, _PREHASH_ParcelData, _PREHASH_ParcelPropertiesRequest, _PREHASH_SequenceID, _PREHASH_SessionID, _PREHASH_South, _PREHASH_West, LLMessageSystem::addBOOL(), LLMessageSystem::addF32Fast(), LLMessageSystem::addS32Fast(), LLMessageSystem::addUUIDFast(), f, FALSE, gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLViewerRegion::getPosRegionFromGlobal(), LLWorld::getRegionFromPosGlobal(), getSelectionHeight(), getSelectionWidth(), LLAgent::getSessionID(), gMessageSystem, gWorldp, mCurrentParcel, mCurrentParcelSelection, LLVector3d::mdV, mEastNorth, mFloatingParcelSelection, mHighlightSegments, mRequestResult, mSelected, LLVector3::mV, mWestSouth, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), notifyObservers(), NULL, PARCEL_RESULT_NO_DATA, resetSegments(), sanitize_corners(), SELECTED_PARCEL_SEQ_ID, LLMessageSystem::sendReliable(), LLNotifyBox::showXml(), TRUE, VX, and VY.

Referenced by LLToolSelectLand::handleMouseUp(), LLPanelRegionTools::onSelectRegion(), selectParcelAt(), and selectParcelInRectangle().

LLParcelSelectionHandle LLViewerParcelMgr::selectParcelAt ( const LLVector3d pos_global  ) 

Definition at line 426 of file llviewerparcelmgr.cpp.

References llround(), LLVector3d::mdV, PARCEL_GRID_STEP_METERS, selectLand(), TRUE, VX, and VY.

Referenced by LLToolSelectLand::handleDoubleClick(), LLLandEdit::handleEvent(), LLShowFloater::handleEvent(), onClickBuyLand(), onClickParcelInfo(), and LLToolPie::pickAndShowMenu().

LLParcelSelectionHandle LLViewerParcelMgr::selectParcelInRectangle (  ) 

Definition at line 445 of file llviewerparcelmgr.cpp.

References mEastNorth, mWestSouth, selectLand(), and TRUE.

Referenced by LLPanelLandInfo::onClickAbout().

void LLViewerParcelMgr::sendParcelAccessListRequest ( U32  flags  ) 

Definition at line 870 of file llviewerparcelmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_Data, _PREHASH_Flags, _PREHASH_ParcelAccessListRequest, _PREHASH_SequenceID, _PREHASH_SessionID, LLMessageSystem::addS32(), LLMessageSystem::addS32Fast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), AL_ACCESS, AL_BAN, gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLParcel::getLocalID(), LLWorld::getRegionFromPosGlobal(), LLAgent::getSessionID(), gMessageSystem, gWorldp, LLParcel::mAccessList, LLParcel::mBanList, mCurrentParcel, mSelected, mWestSouth, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), and LLMessageSystem::sendReliable().

Referenced by processParcelProperties().

void LLViewerParcelMgr::sendParcelAccessListUpdate ( U32  which  ) 

Definition at line 1974 of file llviewerparcelmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_Data, _PREHASH_Flags, _PREHASH_ID, _PREHASH_List, _PREHASH_LocalID, _PREHASH_ParcelAccessListUpdate, _PREHASH_Sections, _PREHASH_SequenceID, _PREHASH_SessionID, _PREHASH_Time, _PREHASH_TransactionID, LLMessageSystem::addS32(), LLMessageSystem::addS32Fast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), AL_ACCESS, AL_BAN, count, end, FALSE, gAgent, LLUUID::generate(), LLMessageSystem::getCurrentSendTotal(), LLViewerRegion::getHost(), LLAgent::getID(), LLParcel::getLocalID(), LLWorld::getRegionFromPosGlobal(), LLAgent::getSessionID(), gMessageSystem, gWorldp, LLParcel::mAccessList, LLParcel::mBanList, mCurrentParcel, LLAccessEntry::mFlags, LLAccessEntry::mID, mSelected, LLAccessEntry::mTime, MTUBYTES, mWestSouth, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLUUID::null, PARCEL_MAX_ENTRIES_PER_PACKET, S32, LLMessageSystem::sendReliable(), and TRUE.

Referenced by LLPanelLandBan::addAvatar(), LLPanelLandAccess::addAvatar(), LLPanelLandBan::onClickRemove(), and LLPanelLandAccess::onClickRemove().

void LLViewerParcelMgr::sendParcelBuy ( ParcelBuyInfo  ) 

Definition at line 1145 of file llviewerparcelmgr.cpp.

References LLMessageSystem::addBOOL(), LLMessageSystem::addF32(), LLMessageSystem::addS32(), LLMessageSystem::addUUID(), gMessageSystem, LLViewerParcelMgr::ParcelBuyInfo::mAgent, LLViewerParcelMgr::ParcelBuyInfo::mArea, LLViewerParcelMgr::ParcelBuyInfo::mEast, LLViewerParcelMgr::ParcelBuyInfo::mGroup, LLViewerParcelMgr::ParcelBuyInfo::mHost, LLViewerParcelMgr::ParcelBuyInfo::mIsClaim, LLViewerParcelMgr::ParcelBuyInfo::mIsGroupOwned, LLViewerParcelMgr::ParcelBuyInfo::mNorth, LLViewerParcelMgr::ParcelBuyInfo::mParcelID, LLViewerParcelMgr::ParcelBuyInfo::mPrice, LLViewerParcelMgr::ParcelBuyInfo::mRemoveContribution, LLViewerParcelMgr::ParcelBuyInfo::mSession, LLViewerParcelMgr::ParcelBuyInfo::mSouth, LLViewerParcelMgr::ParcelBuyInfo::mWest, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLMessageSystem::sendReliable(), and TRUE.

Referenced by LLFloaterBuyLandUI::sendBuyLand().

void LLViewerParcelMgr::sendParcelDeed ( const LLUUID group_id  ) 

Definition at line 1185 of file llviewerparcelmgr.cpp.

References LLMessageSystem::addS32(), LLMessageSystem::addUUID(), LLViewerWindow::alertXml(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLParcel::getLocalID(), LLWorld::getRegionFromPosGlobal(), LLAgent::getSessionID(), gMessageSystem, gViewerWindow, gWorldp, LLUUID::isNull(), mCurrentParcel, mSelected, mWestSouth, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLMessageSystem::sendReliable().

Referenced by deedAlertCB().

void LLViewerParcelMgr::sendParcelDwellRequest (  ) 

Definition at line 905 of file llviewerparcelmgr.cpp.

References LLMessageSystem::addS32(), LLMessageSystem::addUUID(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLParcel::getLocalID(), LLWorld::getRegionFromPosGlobal(), LLAgent::getSessionID(), gMessageSystem, gWorldp, mCurrentParcel, mSelected, mWestSouth, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLUUID::null, and LLMessageSystem::sendReliable().

Referenced by processParcelProperties().

void LLViewerParcelMgr::sendParcelGodForceOwner ( const LLUUID owner_id  ) 

Definition at line 929 of file llviewerparcelmgr.cpp.

References LLViewerWindow::alertXml(), callback_god_force_owner(), LLParcel::getAuctionID(), LLViewerRegion::getHost(), LLParcel::getLocalID(), LLViewerRegion::getOriginGlobal(), LLWorld::getRegionFromPosGlobal(), gViewerWindow, gWorldp, llendl, llinfos, mCurrentParcel, LLVector3d::mdV, mEastNorth, mSelected, mWestSouth, VX, and VY.

Referenced by handle_force_parcel_owner_to_me().

void LLViewerParcelMgr::sendParcelGodForceToContent (  ) 

Definition at line 993 of file llviewerparcelmgr.cpp.

References LLMessageSystem::addS32(), LLMessageSystem::addUUID(), LLViewerWindow::alertXml(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLParcel::getLocalID(), LLWorld::getRegionFromPosGlobal(), LLAgent::getSessionID(), gMessageSystem, gViewerWindow, gWorldp, mCurrentParcel, mSelected, mWestSouth, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLMessageSystem::sendReliable().

Referenced by handle_force_parcel_to_content().

void LLViewerParcelMgr::sendParcelPropertiesUpdate ( LLParcel parcel  ) 

Definition at line 1261 of file llviewerparcelmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_LocalID, _PREHASH_ParcelData, _PREHASH_ParcelPropertiesUpdate, _PREHASH_SessionID, LLMessageSystem::addS32Fast(), LLMessageSystem::addU32(), LLMessageSystem::addUUIDFast(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLParcel::getLocalID(), LLWorld::getRegionFromPosGlobal(), LLAgent::getSessionID(), gMessageSystem, gWorldp, mWestSouth, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLParcel::packMessage(), and LLMessageSystem::sendReliable().

Referenced by LLPanelLandObjects::callbackReturnGroupObjects(), LLPanelLandObjects::callbackReturnOtherObjects(), LLPanelLandObjects::callbackReturnOwnerList(), LLPanelLandObjects::callbackReturnOwnerObjects(), LLPanelLandOptions::onClickClear(), LLPanelLandOptions::onClickSet(), LLPanelLandGeneral::onClickStopSellLand(), LLPanelLandBan::onCommitAny(), LLPanelLandAccess::onCommitAny(), LLPanelLandMedia::onCommitAny(), LLPanelLandOptions::onCommitAny(), LLPanelLandGeneral::onCommitAny(), LLFloaterSellLandUI::onConfirmSale(), and LLPanelLandGeneral::setGroup().

void LLViewerParcelMgr::sendParcelRelease (  ) 

Definition at line 1017 of file llviewerparcelmgr.cpp.

References LLMessageSystem::addS32(), LLMessageSystem::addUUID(), LLViewerWindow::alertXml(), deselectLand(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLParcel::getLocalID(), LLWorld::getRegionFromPosGlobal(), LLAgent::getSessionID(), gMessageSystem, gViewerWindow, gWorldp, mCurrentParcel, mSelected, mWestSouth, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLMessageSystem::sendReliable().

Referenced by releaseAlertCB().

void LLViewerParcelMgr::setSelectionVisible ( BOOL  visible  )  [inline]

Definition at line 175 of file llviewerparcelmgr.h.

References mRenderSelection.

Referenced by LLToolBrushLand::handleDeselect(), LLToolBrushLand::handleMouseDown(), and LLToolBrushLand::handleMouseUp().

LLViewerParcelMgr::ParcelBuyInfo * LLViewerParcelMgr::setupParcelBuy ( const LLUUID agent_id,
const LLUUID session_id,
const LLUUID group_id,
BOOL  is_group_owned,
BOOL  is_claim,
BOOL  remove_contribution 
)

Definition at line 1073 of file llviewerparcelmgr.cpp.

References LLViewerWindow::alertXml(), LLParcel::getArea(), LLViewerRegion::getHost(), LLParcel::getLocalID(), LLViewerRegion::getOriginGlobal(), LLViewerRegion::getPosRegionFromGlobal(), LLWorld::getRegionFromPosGlobal(), LLParcel::getSalePrice(), gViewerWindow, gWorldp, llendl, llinfos, LLViewerParcelMgr::ParcelBuyInfo::mAgent, LLViewerParcelMgr::ParcelBuyInfo::mArea, mCurrentParcel, LLVector3d::mdV, LLViewerParcelMgr::ParcelBuyInfo::mEast, mEastNorth, LLViewerParcelMgr::ParcelBuyInfo::mGroup, LLViewerParcelMgr::ParcelBuyInfo::mHost, LLViewerParcelMgr::ParcelBuyInfo::mIsClaim, LLViewerParcelMgr::ParcelBuyInfo::mIsGroupOwned, LLViewerParcelMgr::ParcelBuyInfo::mNorth, LLViewerParcelMgr::ParcelBuyInfo::mParcelID, LLViewerParcelMgr::ParcelBuyInfo::mPrice, LLViewerParcelMgr::ParcelBuyInfo::mRemoveContribution, mSelected, LLViewerParcelMgr::ParcelBuyInfo::mSession, LLViewerParcelMgr::ParcelBuyInfo::mSouth, LLVector3::mV, LLViewerParcelMgr::ParcelBuyInfo::mWest, mWestSouth, NULL, VX, and VY.

Referenced by LLFloaterBuyLandUI::runWebSitePrep().

void LLViewerParcelMgr::startBuyLand ( BOOL  is_for_group = FALSE  ) 

Definition at line 2245 of file llviewerparcelmgr.cpp.

References LLFloaterBuyLand::buyLand(), getSelectionRegion(), mCurrentParcelSelection, and TRUE.

Referenced by LLShowFloater::handleEvent(), onClickBuyLand(), LLPanelLandGeneral::onClickBuyLand(), and LLPanelLandInfo::onClickClaim().

void LLViewerParcelMgr::startDeedLandToGroup (  ) 

Definition at line 2365 of file llviewerparcelmgr.cpp.

References LLViewerWindow::alertXml(), deedLandToGroup(), LLWorld::getRegionFromPosGlobal(), gViewerWindow, gWorldp, mCurrentParcel, mEastNorth, mRequestResult, mSelected, mWestSouth, PARCEL_RESULT_MULTIPLE, and PARCEL_RESULT_NO_DATA.

Referenced by LLPanelLandGeneral::onClickDeed().

void LLViewerParcelMgr::startDivideLand (  ) 

Definition at line 2255 of file llviewerparcelmgr.cpp.

References LLViewerWindow::alertXml(), callbackDivideLand(), gViewerWindow, mCurrentParcelSelection, and mSelected.

Referenced by LLPanelLandInfo::onClickDivide().

void LLViewerParcelMgr::startJoinLand (  ) 

Definition at line 2307 of file llviewerparcelmgr.cpp.

References LLViewerWindow::alertXml(), callbackJoinLand(), gViewerWindow, mCurrentParcelSelection, and mSelected.

Referenced by LLPanelLandInfo::onClickJoin().

void LLViewerParcelMgr::startReleaseLand (  ) 

Definition at line 2148 of file llviewerparcelmgr.cpp.

References LLViewerWindow::alertXml(), LLAgent::canManageEstate(), gAgent, LLParcel::getArea(), LLWorld::getRegionFromPosGlobal(), GP_LAND_RELEASE, gViewerWindow, gWorldp, isParcelOwnedByAgent(), llformat(), mCurrentParcel, mCurrentParcelSelection, mEastNorth, mRequestResult, mSelected, mWestSouth, PARCEL_RESULT_MULTIPLE, PARCEL_RESULT_NO_DATA, and releaseAlertCB().

Referenced by LLPanelLandInfo::onClickRelease(), and LLPanelLandGeneral::onClickRelease().

void LLViewerParcelMgr::startSellLand (  ) 

Definition at line 2250 of file llviewerparcelmgr.cpp.

References getSelectionRegion(), mCurrentParcelSelection, and LLFloaterSellLand::sellLand().

Referenced by LLPanelLandGeneral::onClickSellLand().

void LLViewerParcelMgr::writeAgentParcelFromBitmap ( U8 bitmap  ) 

Definition at line 393 of file llviewerparcelmgr.cpp.

References mAgentParcelOverlay, mParcelsPerEdge, S32, x, and y.

Referenced by processParcelProperties().

void LLViewerParcelMgr::writeHighlightSegments ( F32  west,
F32  south,
F32  east,
F32  north 
)

Definition at line 313 of file llviewerparcelmgr.cpp.

References llround(), mHighlightSegments, mParcelsPerEdge, PARCEL_GRID_STEP_METERS, S32, SOUTH_MASK, WEST_MASK, x, and y.

Referenced by processParcelProperties().

void LLViewerParcelMgr::writeSegmentsFromBitmap ( U8 bitmap,
U8 segments 
)

Definition at line 357 of file llviewerparcelmgr.cpp.

References mParcelsPerEdge, S32, SOUTH_MASK, WEST_MASK, x, and y.

Referenced by processParcelProperties().


Member Data Documentation

LLParcel* LLViewerParcelMgr::mAgentParcel [private]

Definition at line 339 of file llviewerparcelmgr.h.

Referenced by agentCanBuild(), agentCanTakeDamage(), dump(), getAgentParcel(), getAgentParcelName(), LLViewerParcelMgr(), processParcelProperties(), and ~LLViewerParcelMgr().

U8* LLViewerParcelMgr::mAgentParcelOverlay [private]

Definition at line 356 of file llviewerparcelmgr.h.

Referenced by inAgentParcel(), LLViewerParcelMgr(), writeAgentParcelFromBitmap(), and ~LLViewerParcelMgr().

S32 LLViewerParcelMgr::mAgentParcelSequenceID [private]

Definition at line 340 of file llviewerparcelmgr.h.

Referenced by processParcelProperties().

LLPointer<LLViewerImage> LLViewerParcelMgr::mBlockedImage [private]

Definition at line 372 of file llviewerparcelmgr.h.

Referenced by LLViewerParcelMgr(), and renderCollisionSegments().

LLUUID LLViewerParcelMgr::mBlockedImageID [private]

Definition at line 370 of file llviewerparcelmgr.h.

Referenced by LLViewerParcelMgr().

S32 LLViewerParcelMgr::mCollisionBanned [private]

Definition at line 368 of file llviewerparcelmgr.h.

Referenced by isCollisionBanned(), processParcelProperties(), and renderCollisionSegments().

LLParcel* LLViewerParcelMgr::mCollisionParcel [private]

Definition at line 364 of file llviewerparcelmgr.h.

Referenced by getCollisionParcel(), LLViewerParcelMgr(), processParcelProperties(), renderParcelCollision(), selectCollisionParcel(), and ~LLViewerParcelMgr().

U8* LLViewerParcelMgr::mCollisionSegments [private]

Definition at line 365 of file llviewerparcelmgr.h.

Referenced by LLViewerParcelMgr(), processParcelProperties(), renderParcelCollision(), and ~LLViewerParcelMgr().

LLFrameTimer LLViewerParcelMgr::mCollisionTimer [private]

Definition at line 369 of file llviewerparcelmgr.h.

Referenced by processParcelProperties(), and renderParcelCollision().

LLParcel* LLViewerParcelMgr::mCurrentParcel [private]

Definition at line 331 of file llviewerparcelmgr.h.

Referenced by canAgentBuyParcel(), deedLandToGroup(), deselectLand(), dump(), getDisplayInfo(), getPrimInfo(), getSelectedArea(), LLViewerParcelMgr(), processParcelAccessListReply(), processParcelDwellReply(), processParcelProperties(), selectCollisionParcel(), selectLand(), sendParcelAccessListRequest(), sendParcelAccessListUpdate(), sendParcelDeed(), sendParcelDwellRequest(), sendParcelGodForceOwner(), sendParcelGodForceToContent(), sendParcelRelease(), setupParcelBuy(), startDeedLandToGroup(), startReleaseLand(), and ~LLViewerParcelMgr().

LLParcelSelectionHandle LLViewerParcelMgr::mCurrentParcelSelection [private]

Definition at line 332 of file llviewerparcelmgr.h.

Referenced by deselectLand(), deselectUnused(), getDisplayInfo(), getParcelSelection(), getSelectedArea(), LLViewerParcelMgr(), processParcelProperties(), selectCollisionParcel(), selectLand(), startBuyLand(), startDivideLand(), startJoinLand(), startReleaseLand(), startSellLand(), and ~LLViewerParcelMgr().

LLVector3d LLViewerParcelMgr::mEastNorth [private]

Definition at line 336 of file llviewerparcelmgr.h.

Referenced by dump(), getSelectedArea(), getSelection(), getSelectionHeight(), getSelectionWidth(), processParcelProperties(), selectCollisionParcel(), selectLand(), selectParcelInRectangle(), sendParcelGodForceOwner(), setupParcelBuy(), startDeedLandToGroup(), and startReleaseLand().

LLParcelSelectionHandle LLViewerParcelMgr::mFloatingParcelSelection [private]

Definition at line 333 of file llviewerparcelmgr.h.

Referenced by deselectLand(), deselectUnused(), getFloatingParcelSelection(), LLViewerParcelMgr(), selectCollisionParcel(), selectLand(), and ~LLViewerParcelMgr().

U8* LLViewerParcelMgr::mHighlightSegments [private]

Definition at line 355 of file llviewerparcelmgr.h.

Referenced by LLViewerParcelMgr(), processParcelProperties(), render(), selectCollisionParcel(), selectLand(), writeHighlightSegments(), and ~LLViewerParcelMgr().

LLVector3d LLViewerParcelMgr::mHoverEastNorth [private]

Definition at line 345 of file llviewerparcelmgr.h.

Referenced by getHoverParcelHeight(), getHoverParcelWidth(), and processParcelProperties().

LLParcel* LLViewerParcelMgr::mHoverParcel [private]

Definition at line 342 of file llviewerparcelmgr.h.

Referenced by dump(), getHoverParcel(), LLViewerParcelMgr(), processParcelProperties(), and ~LLViewerParcelMgr().

S32 LLViewerParcelMgr::mHoverRequestResult [private]

Definition at line 343 of file llviewerparcelmgr.h.

Referenced by getHoverParcel(), processParcelProperties(), and requestHoverParcelProperties().

LLVector3d LLViewerParcelMgr::mHoverWestSouth [private]

Definition at line 344 of file llviewerparcelmgr.h.

Referenced by getHoverParcelHeight(), getHoverParcelWidth(), and processParcelProperties().

S32 LLViewerParcelMgr::mMediaParcelId [private]

Definition at line 376 of file llviewerparcelmgr.h.

Referenced by processParcelProperties().

U64 LLViewerParcelMgr::mMediaRegionId [private]

Definition at line 377 of file llviewerparcelmgr.h.

Referenced by processParcelProperties().

LLDynamicArray<LLParcelObserver*> LLViewerParcelMgr::mObservers [private]

Definition at line 347 of file llviewerparcelmgr.h.

Referenced by addObserver(), notifyObservers(), and removeObserver().

S32 LLViewerParcelMgr::mParcelsPerEdge [private]

Definition at line 354 of file llviewerparcelmgr.h.

Referenced by inAgentParcel(), LLViewerParcelMgr(), processParcelOverlay(), processParcelProperties(), renderCollisionSegments(), renderHighlightSegments(), resetSegments(), writeAgentParcelFromBitmap(), writeHighlightSegments(), and writeSegmentsFromBitmap().

LLPointer<LLViewerImage> LLViewerParcelMgr::mPassImage [private]

Definition at line 373 of file llviewerparcelmgr.h.

Referenced by LLViewerParcelMgr(), and renderCollisionSegments().

LLUUID LLViewerParcelMgr::mPassImageID [private]

Definition at line 371 of file llviewerparcelmgr.h.

Referenced by LLViewerParcelMgr().

BOOL LLViewerParcelMgr::mRenderCollision [private]

Definition at line 366 of file llviewerparcelmgr.h.

Referenced by getCollisionParcel(), processParcelProperties(), and renderParcelCollision().

BOOL LLViewerParcelMgr::mRenderSelection [private]

Definition at line 367 of file llviewerparcelmgr.h.

Referenced by render(), and setSelectionVisible().

S32 LLViewerParcelMgr::mRequestResult [private]

Definition at line 334 of file llviewerparcelmgr.h.

Referenced by canAgentBuyParcel(), processParcelProperties(), selectCollisionParcel(), selectLand(), startDeedLandToGroup(), and startReleaseLand().

BOOL LLViewerParcelMgr::mSelected [private]

Definition at line 329 of file llviewerparcelmgr.h.

Referenced by canAgentBuyParcel(), deselectLand(), dump(), getDisplayInfo(), getPrimInfo(), getSelectedArea(), processParcelProperties(), render(), selectCollisionParcel(), selectionEmpty(), selectLand(), sendParcelAccessListRequest(), sendParcelAccessListUpdate(), sendParcelDeed(), sendParcelDwellRequest(), sendParcelGodForceOwner(), sendParcelGodForceToContent(), sendParcelRelease(), setupParcelBuy(), startDeedLandToGroup(), startDivideLand(), startJoinLand(), and startReleaseLand().

F32 LLViewerParcelMgr::mSelectedDwell [private]

Definition at line 337 of file llviewerparcelmgr.h.

Referenced by deselectLand(), getDisplayInfo(), getDwelling(), processParcelDwellReply(), and processParcelProperties().

LLVector3d LLViewerParcelMgr::mWestSouth [private]

Definition at line 335 of file llviewerparcelmgr.h.

Referenced by dump(), getSelectedArea(), getSelection(), getSelectionHeight(), getSelectionRegion(), getSelectionWidth(), processParcelProperties(), render(), selectCollisionParcel(), selectLand(), selectParcelInRectangle(), sendParcelAccessListRequest(), sendParcelAccessListUpdate(), sendParcelDeed(), sendParcelDwellRequest(), sendParcelGodForceOwner(), sendParcelGodForceToContent(), sendParcelPropertiesUpdate(), sendParcelRelease(), setupParcelBuy(), startDeedLandToGroup(), and startReleaseLand().

U8 * LLViewerParcelMgr::sPackedOverlay = NULL [static, private]

Definition at line 360 of file llviewerparcelmgr.h.

Referenced by LLViewerParcelMgr(), processParcelOverlay(), and ~LLViewerParcelMgr().


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