llviewerparcelmgr.cpp File Reference

Viewer-side representation of owned land. More...

#include "llviewerprecompiledheaders.h"
#include "llviewerparcelmgr.h"
#include "audioengine.h"
#include "indra_constants.h"
#include "llcachename.h"
#include "llgl.h"
#include "llmediaengine.h"
#include "llparcel.h"
#include "llsecondlifeurls.h"
#include "message.h"
#include "llagent.h"
#include "llfloatergroupinfo.h"
#include "llviewerwindow.h"
#include "llviewercontrol.h"
#include "llfirstuse.h"
#include "llfloaterbuyland.h"
#include "llfloatergroups.h"
#include "llfloatersellland.h"
#include "llfloatertools.h"
#include "llnotify.h"
#include "llresmgr.h"
#include "llstatusbar.h"
#include "llui.h"
#include "llviewerimagelist.h"
#include "llviewermenu.h"
#include "llviewerparceloverlay.h"
#include "llviewerregion.h"
#include "llworld.h"
#include "lloverlaybar.h"
#include "roles_constants.h"

Include dependency graph for llviewerparcelmgr.cpp:

Go to the source code of this file.

Classes

struct  LLGodForceOwnerData
class  LLViewerParcelMgr::ParcelBuyInfo

Functions

static LLParcelSelectionget_null_parcel_selection ()
void optionally_start_music (const LLString &music_url)
void callback_start_music (S32 option, void *data)
void optionally_prepare_video (const LLParcel *parcelp)
void callback_prepare_video (S32 option, void *data)
void prepare_video (const LLParcel *parcelp)
void start_video (const LLParcel *parcelp)
void stop_video ()
void callback_god_force_owner (S32 option, void *user_data)
void sanitize_corners (const LLVector3d &corner1, const LLVector3d &corner2, LLVector3d &west_south_bottom, LLVector3d &east_north_top)

Variables

const F32 PARCEL_COLLISION_DRAW_SECS = 1.f
LLViewerParcelMgrgParcelMgr = NULL
LLUUID gCurrentMovieID = LLUUID::null
static LLPointer< LLParcelSelectionsNullSelection


Detailed Description

Viewer-side representation of owned land.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llviewerparcelmgr.cpp.


Function Documentation

void callback_god_force_owner ( S32  option,
void user_data 
)

Definition at line 975 of file llviewerparcelmgr.cpp.

References LLMessageSystem::addS32(), LLMessageSystem::addUUID(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLGodForceOwnerData::mHost, LLGodForceOwnerData::mLocalID, LLGodForceOwnerData::mOwnerID, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLMessageSystem::sendReliable().

Referenced by LLViewerParcelMgr::sendParcelGodForceOwner().

void callback_prepare_video ( S32  option,
void data 
)

Definition at line 1889 of file llviewerparcelmgr.cpp.

References FALSE, LLParcel::getLocalID(), LLParcel::getMediaURL(), gMessageSystem, gSavedSettings, llendl, llinfos, null_message_callback(), prepare_video(), LLMediaEngine::process_parcel_media(), LLMediaEngine::process_parcel_media_update(), LLControlGroup::setBOOL(), LLMessageSystem::setHandlerFunc(), LLControlGroup::setWarning(), and TRUE.

Referenced by optionally_prepare_video().

void callback_start_music ( S32  option,
void data 
)

Definition at line 1806 of file llviewerparcelmgr.cpp.

References FALSE, gSavedSettings, llendl, llinfos, LLOverlayBar::musicPlay(), NULL, LLControlGroup::setBOOL(), LLControlGroup::setWarning(), and TRUE.

Referenced by optionally_start_music().

LLParcelSelection * get_null_parcel_selection (  )  [static]

Definition at line 2586 of file llviewerparcelmgr.cpp.

References sNullSelection.

void optionally_prepare_video ( const LLParcel parcelp  ) 

Definition at line 1873 of file llviewerparcelmgr.cpp.

References LLViewerWindow::alertXml(), callback_prepare_video(), LLParcel::getLocalID(), LLParcel::getMediaURL(), LLControlGroup::getWarning(), gSavedSettings, gViewerWindow, llendl, llinfos, and prepare_video().

Referenced by LLViewerParcelMgr::processParcelProperties().

void optionally_start_music ( const LLString music_url  ) 

Definition at line 1781 of file llviewerparcelmgr.cpp.

References LLViewerWindow::alertXml(), callback_start_music(), LLControlGroup::getBOOL(), LLControlGroup::getWarning(), gOverlayBar, gSavedSettings, gViewerWindow, LLOverlayBar::musicPlay(), LLOverlayBar::musicPlaying(), and NULL.

Referenced by LLViewerParcelMgr::processParcelProperties().

void prepare_video ( const LLParcel parcelp  ) 

void sanitize_corners ( const LLVector3d corner1,
const LLVector3d corner2,
LLVector3d west_south_bottom,
LLVector3d east_north_top 
)

Definition at line 2520 of file llviewerparcelmgr.cpp.

References llmax(), llmin(), LLVector3d::mdV, VX, VY, and VZ.

Referenced by LLToolSelectLand::handleHover(), LLToolSelectLand::handleMouseDown(), LLToolSelectLand::handleMouseUp(), and LLViewerParcelMgr::selectLand().

void start_video ( const LLParcel parcelp  ) 

Definition at line 1844 of file llviewerparcelmgr.cpp.

References LLMediaEngine::convertImageAndLoadUrl(), LLMediaEngine::getInstance(), and prepare_video().

Referenced by LLViewerParcelMgr::processParcelProperties().

void stop_video (  ) 


Variable Documentation

LLUUID gCurrentMovieID = LLUUID::null

Definition at line 78 of file llviewerparcelmgr.cpp.

Referenced by stop_video().

LLViewerParcelMgr* gParcelMgr = NULL

Definition at line 74 of file llviewerparcelmgr.cpp.

Referenced by LLPanelLandBan::addAvatar(), LLPanelLandAccess::addAvatar(), LLAgent::buildLocationString(), LLPanelLandObjects::callbackReturnGroupObjects(), LLPanelLandObjects::callbackReturnOtherObjects(), LLPanelLandObjects::callbackReturnOwnerList(), LLPanelLandObjects::callbackReturnOwnerObjects(), LLAgent::canFly(), LLViewerParcelMgr::canHearSound(), LLPanelLandGeneral::cbBuyPass(), LLFloaterSellLandUI::SelectionObserver::changed(), LLFloaterBuyLandUI::SelectionObserver::changed(), LLViewerParcelMgr::cleanupGlobals(), create_new_landmark(), LLViewerParcelMgr::deedAlertCB(), LLPanelLandOptions::draw(), enable_buy_land(), enable_land_build(), enable_land_selected(), enable_object_build(), LLPanelLandGeneral::enableBuyPass(), handle_claim_public_land(), handle_force_parcel_owner_to_me(), handle_force_parcel_to_content(), handle_go_to(), LLToolBrushLand::handleDeselect(), LLToolSelectLand::handleDoubleClick(), LLAttachmentEnableDrop::handleEvent(), LLWorldEnableBuyLand::handleEvent(), LLLandEdit::handleEvent(), LLShowFloater::handleEvent(), LLWorldCreateLandmark::handleEvent(), LLLandSit::handleEvent(), LLLandBuild::handleEvent(), LLObjectEdit::handleEvent(), LLAudioStreamMediaListener::handleEvent(), LLAudioStreamMusicListener::handleEvent(), LLToolSelectLand::handleMouseDown(), LLToolBrushLand::handleMouseDown(), LLToolSelectLand::handleMouseUp(), LLToolBrushLand::handleMouseUp(), LLViewerWindow::handlePerFrameHover(), idle_startup(), LLFloaterAuction::initialize(), LLPanelClassified::initNewClassified(), LLPanelPick::initNewPick(), LLMenuParcelObserver::LLMenuParcelObserver(), LLPanelLandInfo::LLPanelLandInfo(), LLOverlayBar::mediaPlay(), LLToolBrushLand::modifyLandInSelectionGlobal(), LLOverlayBar::musicPlay(), LLFloaterLandmark::onBtnNew(), LLPanelLandInfo::onClickAbout(), onClickBuyLand(), LLPanelLandGeneral::onClickBuyLand(), LLPanelLandGeneral::onClickBuyPass(), LLPanelLandInfo::onClickClaim(), LLPanelLandOptions::onClickClear(), LLPanelLandGeneral::onClickDeed(), LLPanelLandInfo::onClickDivide(), LLPanelLandInfo::onClickJoin(), onClickParcelInfo(), LLPanelLandOptions::onClickPublishHelp(), LLPanelLandGeneral::onClickReclaim(), LLPanelLandObjects::onClickRefresh(), LLPanelLandInfo::onClickRelease(), LLPanelLandGeneral::onClickRelease(), LLPanelLandBan::onClickRemove(), LLPanelLandAccess::onClickRemove(), LLPanelLandObjects::onClickReturnGroupObjects(), LLPanelLandObjects::onClickReturnOtherObjects(), LLPanelLandObjects::onClickReturnOwnerList(), LLPanelLandObjects::onClickReturnOwnerObjects(), LLPanelLandGeneral::onClickSellLand(), LLPanelLandOptions::onClickSet(), LLPanelLandGeneral::onClickStopSellLand(), LLFloaterLand::onClose(), LLPanelLandBan::onCommitAny(), LLPanelLandAccess::onCommitAny(), LLPanelLandMedia::onCommitAny(), LLPanelLandOptions::onCommitAny(), LLPanelLandGeneral::onCommitAny(), LLFloaterSellLandUI::onConfirmSale(), LLFloaterTools::onOpen(), LLPanelRegionTools::onSelectRegion(), LLToolPie::pickAndShowMenu(), LLHoverView::pickCallback(), process_sound_trigger(), LLViewerParcelMgr::processParcelAccessListReply(), LLViewerParcelMgr::processParcelDwellReply(), LLViewerParcelMgr::processParcelOverlay(), LLViewerParcelMgr::processParcelProperties(), LLVOAvatar::processSingleAnimationStateChange(), LLViewerParcelMgr::reclaimParcel(), LLToolBar::refresh(), LLStatusBar::refresh(), LLPanelLandInfo::refresh(), LLOverlayBar::refresh(), LLPanelLandCovenant::refresh(), LLPanelLandObjects::refresh(), LLPanelLandGeneral::refresh(), LLViewerParcelMgr::releaseAlertCB(), LLToolSelectLand::render(), render_hud_elements(), LLViewerWindow::renderSelections(), LLFloaterBuyLandUI::runWebSitePrep(), send_other_clean_time_message(), send_parcel_select_objects(), send_return_objects_message(), LLFloaterBuyLandUI::sendBuyLand(), set_god_level(), LLAgent::setFlying(), LLPanelLandGeneral::setGroup(), LLFloaterLand::show(), LLFloaterSellLandUI::soleInstance(), LLFloaterBuyLandUI::soleInstance(), LLVoiceClient::stateMachine(), LLAgent::teleportCore(), LLVOAvatar::updateCharacter(), LLFloaterBuyLandUI::updateCovenantInfo(), LLAudioSourceVO::updateGain(), LLFloaterBuyLandUI::updateParcelInfo(), LLFloaterTools::updatePopup(), LLHoverView::updateText(), LLFloaterBuyLandUI::~LLFloaterBuyLandUI(), LLMenuParcelObserver::~LLMenuParcelObserver(), and LLPanelLandInfo::~LLPanelLandInfo().

const F32 PARCEL_COLLISION_DRAW_SECS = 1.f

Definition at line 70 of file llviewerparcelmgr.cpp.

Referenced by LLViewerParcelMgr::renderParcelCollision().

LLPointer<LLParcelSelection> sNullSelection [static]

Definition at line 2584 of file llviewerparcelmgr.cpp.


Generated on Thu Jul 1 06:10:48 2010 for Second Life Viewer by  doxygen 1.4.7