LLSelectMgr Class Reference

#include <llselectmgr.h>

Inheritance diagram for LLSelectMgr:

Inheritance graph
[legend]
Collaboration diagram for LLSelectMgr:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLSelectMgr ()
 ~LLSelectMgr ()
virtual BOOL canUndo ()
virtual void undo ()
virtual BOOL canRedo ()
virtual void redo ()
virtual BOOL canDoDelete ()
virtual void doDelete ()
virtual void deselect ()
virtual BOOL canDeselect ()
virtual void duplicate ()
virtual BOOL canDuplicate ()
void clearSelections ()
void update ()
void updateEffects ()
void overrideObjectUpdates ()
BOOL setForceSelection (BOOL force)
LLObjectSelectionHandle selectObjectOnly (LLViewerObject *object, S32 face=SELECT_ALL_TES)
LLObjectSelectionHandle selectObjectAndFamily (LLViewerObject *object, BOOL add_to_end=FALSE)
LLObjectSelectionHandle selectObjectAndFamily (const std::vector< LLViewerObject * > &object_list, BOOL send_to_sim=TRUE)
LLObjectSelectionHandle selectHighlightedObjects ()
LLObjectSelectionHandle setHoverObject (LLViewerObject *objectp)
void highlightObjectOnly (LLViewerObject *objectp)
void highlightObjectAndFamily (LLViewerObject *objectp)
void highlightObjectAndFamily (const std::vector< LLViewerObject * > &list)
void deselectObjectOnly (LLViewerObject *object, BOOL send_to_sim=TRUE)
void deselectObjectAndFamily (LLViewerObject *object, BOOL send_to_sim=TRUE, BOOL include_entire_object=FALSE)
void deselectAll ()
void deselectUnused ()
void deselectAllIfTooFar ()
void deselectHighlightedObjects ()
void unhighlightObjectOnly (LLViewerObject *objectp)
void unhighlightObjectAndFamily (LLViewerObject *objectp)
void unhighlightAll ()
BOOL removeObjectFromSelections (const LLUUID &id)
LLObjectSelectionHandle getHoverObjects ()
LLObjectSelectionHandle getSelection ()
LLObjectSelectionHandle getEditSelection ()
LLObjectSelectionHandle getHighlightedObjects ()
LLSelectNodegetHoverNode ()
void addGridObject (LLViewerObject *objectp)
void clearGridObjects ()
void setGridMode (EGridMode mode)
EGridMode getGridMode ()
void getGrid (LLVector3 &origin, LLQuaternion &rotation, LLVector3 &scale)
BOOL getTEMode ()
void setTEMode (BOOL b)
BOOL shouldShowSelection ()
LLBBox getBBoxOfSelection () const
LLBBox getSavedBBoxOfSelection () const
void dump ()
void cleanup ()
void updateSilhouettes ()
void renderSilhouettes (BOOL for_hud)
void enableSilhouette (BOOL enable)
void saveSelectedObjectTransform (EActionType action_type)
void saveSelectedObjectColors ()
void saveSelectedObjectTextures ()
void selectionUpdatePhysics (BOOL use_physics)
void selectionUpdateTemporary (BOOL is_temporary)
void selectionUpdatePhantom (BOOL is_ghost)
void selectionUpdateCastShadows (BOOL cast_shadows)
void selectionDump ()
BOOL selectionAllPCode (LLPCode code)
BOOL selectionGetClickAction (U8 *out_action)
bool selectionGetIncludeInSearch (bool *include_in_search_out)
void selectionSetMaterial (U8 material)
void selectionSetImage (const LLUUID &imageid)
void selectionSetColor (const LLColor4 &color)
void selectionSetColorOnly (const LLColor4 &color)
void selectionSetAlphaOnly (const F32 alpha)
void selectionRevertColors ()
BOOL selectionRevertTextures ()
void selectionSetBumpmap (U8 bumpmap)
void selectionSetTexGen (U8 texgen)
void selectionSetShiny (U8 shiny)
void selectionSetFullbright (U8 fullbright)
void selectionSetMediaTypeAndURL (U8 media_type, const std::string &media_url)
void selectionSetClickAction (U8 action)
void selectionSetIncludeInSearch (bool include_in_search)
void selectionSetObjectPermissions (U8 perm_field, BOOL set, U32 perm_mask, BOOL override=FALSE)
void selectionSetObjectName (const LLString &name)
void selectionSetObjectDescription (const LLString &desc)
void selectionSetObjectCategory (const LLCategory &category)
void selectionSetObjectSaleInfo (const LLSaleInfo &sale_info)
void selectionTexScaleAutofit (F32 repeats_per_meter)
void adjustTexturesByScale (BOOL send_to_sim, BOOL stretch)
void selectionResetRotation ()
void selectionRotateAroundZ (F32 degrees)
void sendGodlikeRequest (const LLString &request, const LLString &parameter)
void validateSelection ()
BOOL canSelectObject (LLViewerObject *object)
BOOL selectGetAllRootsValid ()
BOOL selectGetAllValid ()
BOOL selectGetRootsModify ()
BOOL selectGetModify ()
BOOL selectGetRootsTransfer ()
BOOL selectGetRootsCopy ()
BOOL selectGetCreator (LLUUID &id, LLString &name)
BOOL selectGetOwner (LLUUID &id, LLString &name)
BOOL selectGetLastOwner (LLUUID &id, LLString &name)
BOOL selectGetGroup (LLUUID &id)
BOOL selectGetPerm (U8 which_perm, U32 *mask_on, U32 *mask_off)
BOOL selectGetOwnershipCost (S32 *cost)
BOOL selectIsGroupOwned ()
BOOL selectGetPermissions (LLPermissions &perm)
BOOL selectIsForSale (S32 &price)
BOOL selectGetCategory (LLCategory &category)
BOOL selectGetSaleInfo (LLSaleInfo &sale_info)
BOOL selectGetAggregatePermissions (LLAggregatePermissions &ag_perm)
BOOL selectGetAggregateTexturePermissions (LLAggregatePermissions &ag_perm)
LLPermissionsfindObjectPermissions (const LLViewerObject *object)
void selectDelete ()
void selectForceDelete ()
void selectDuplicate (const LLVector3 &offset, BOOL select_copy)
void repeatDuplicate ()
void selectDuplicateOnRay (const LLVector3 &ray_start_region, const LLVector3 &ray_end_region, BOOL bypass_raycast, BOOL ray_end_is_intersection, const LLUUID &ray_target_id, BOOL copy_centers, BOOL copy_rotates, BOOL select_copy)
void sendMultipleUpdate (U32 type)
void sendOwner (const LLUUID &owner_id, const LLUUID &group_id, BOOL override=FALSE)
void sendGroup (const LLUUID &group_id)
void sendBuy (const LLUUID &buyer_id, const LLUUID &category_id, const LLSaleInfo sale_info)
void sendAttach (U8 attachment_point)
void sendDetach ()
void sendDropAttachment ()
void sendLink ()
void sendDelink ()
void sendSelect ()
void requestObjectPropertiesFamily (LLViewerObject *object)
void requestGodInfo ()
LLVector3d getSelectionCenterGlobal () const
void updateSelectionCenter ()
void resetAgentHUDZoom ()
void setAgentHUDZoom (F32 target_zoom, F32 current_zoom)
void getAgentHUDZoom (F32 &target_zoom, F32 &current_zoom) const
void updatePointAt ()
void remove (std::vector< LLViewerObject * > &objects)
void remove (LLViewerObject *object, S32 te=SELECT_ALL_TES, BOOL undoable=TRUE)
void removeAll ()
void addAsIndividual (LLViewerObject *object, S32 te=SELECT_ALL_TES, BOOL undoable=TRUE)
void promoteSelectionToRoot ()
void demoteSelectionToIndividuals ()

Static Public Member Functions

static void cleanupGlobals ()
static void processObjectProperties (LLMessageSystem *mesgsys, void **user_data)
static void processObjectPropertiesFamily (LLMessageSystem *mesgsys, void **user_data)
static void processForceObjectSelect (LLMessageSystem *msg, void **)

Static Public Attributes

static BOOL sRectSelectInclusive = TRUE
static BOOL sRenderHiddenSelections = TRUE
static BOOL sRenderLightRadius = FALSE
static F32 sHighlightThickness = 0.f
static F32 sHighlightUScale = 0.f
static F32 sHighlightVScale = 0.f
static F32 sHighlightAlpha = 0.f
static F32 sHighlightAlphaTest = 0.f
static F32 sHighlightUAnim = 0.f
static F32 sHighlightVAnim = 0.f
static LLColor4 sSilhouetteParentColor
static LLColor4 sSilhouetteChildColor
static LLColor4 sHighlightParentColor
static LLColor4 sHighlightChildColor
static LLColor4 sHighlightInspectColor
static LLColor4 sContextSilhouetteColor

Private Member Functions

void convertTransient ()
ESelectType getSelectTypeForObject (LLViewerObject *object)
void addAsFamily (std::vector< LLViewerObject * > &objects, BOOL add_to_end=FALSE)
void generateSilhouette (LLSelectNode *nodep, const LLVector3 &view_point)
void sendListToRegions (const LLString &message_name, void(*pack_header)(void *user_data), void(*pack_body)(LLSelectNode *node, void *user_data), void *user_data, ESendType send_type)

Static Private Member Functions

static void packAgentID (void *)
static void packAgentAndSessionID (void *user_data)
static void packAgentAndGroupID (void *user_data)
static void packAgentAndSessionAndGroupID (void *user_data)
static void packAgentIDAndSessionAndAttachment (void *)
static void packAgentGroupAndCatID (void *)
static void packDeleteHeader (void *userdata)
static void packDeRezHeader (void *user_data)
static void packObjectID (LLSelectNode *node, void *)
static void packObjectIDAsParam (LLSelectNode *node, void *)
static void packObjectIDAndRotation (LLSelectNode *node, void *)
static void packObjectLocalID (LLSelectNode *node, void *)
static void packObjectClickAction (LLSelectNode *node, void *data)
static void packObjectIncludeInSearch (LLSelectNode *node, void *data)
static void packObjectName (LLSelectNode *node, void *user_data)
static void packObjectDescription (LLSelectNode *node, void *user_data)
static void packObjectCategory (LLSelectNode *node, void *user_data)
static void packObjectSaleInfo (LLSelectNode *node, void *user_data)
static void packBuyObjectIDs (LLSelectNode *node, void *user_data)
static void packDuplicate (LLSelectNode *node, void *duplicate_data)
static void packDuplicateHeader (void *)
static void packDuplicateOnRayHead (void *user_data)
static void packPermissions (LLSelectNode *node, void *user_data)
static void packDeselect (LLSelectNode *node, void *user_data)
static void packMultipleUpdate (LLSelectNode *node, void *user_data)
static void packPhysics (LLSelectNode *node, void *user_data)
static void packShape (LLSelectNode *node, void *user_data)
static void packOwnerHead (void *user_data)
static void packHingeHead (void *user_data)
static void packPermissionsHead (void *user_data)
static void packGodlikeHead (void *user_data)
static void confirmDelete (S32 option, void *data)

Private Attributes

LLPointer< LLViewerImagemSilhouetteImagep
LLObjectSelectionHandle mSelectedObjects
LLObjectSelectionHandle mHoverObjects
LLObjectSelectionHandle mHighlightedObjects
std::set< LLPointer< LLViewerObject > > mRectSelectedObjects
LLObjectSelection mGridObjects
LLQuaternion mGridRotation
LLVector3 mGridOrigin
LLVector3 mGridScale
EGridMode mGridMode
BOOL mGridValid
BOOL mTEMode
LLVector3d mSelectionCenterGlobal
LLBBox mSelectionBBox
LLVector3d mLastSentSelectionCenterGlobal
BOOL mShowSelection
LLVector3d mLastCameraPos
BOOL mRenderSilhouettes
LLBBox mSavedSelectionBBox
LLFrameTimer mEffectsTimer
BOOL mForceSelection
LLAnimPauseRequest mPauseRequest

Detailed Description

Definition at line 336 of file llselectmgr.h.


Constructor & Destructor Documentation

LLSelectMgr::LLSelectMgr (  ) 

Definition at line 177 of file llselectmgr.cpp.

References LLVector3d::clearVec(), FALSE, gColors, LLControlGroup::getBOOL(), LLControlGroup::getColor(), LLControlGroup::getF32(), GRID_MODE_WORLD, gSavedSettings, mGridMode, mGridValid, mHighlightedObjects, mHoverObjects, mLastCameraPos, mRenderSilhouettes, mSelectedObjects, mTEMode, S32, sContextSilhouetteColor, LLControlGroup::setS32(), sHighlightAlpha, sHighlightAlphaTest, sHighlightChildColor, sHighlightInspectColor, sHighlightParentColor, sHighlightThickness, sHighlightUAnim, sHighlightUScale, sHighlightVAnim, sHighlightVScale, sRenderLightRadius, sSilhouetteChildColor, sSilhouetteParentColor, and TRUE.

LLSelectMgr::~LLSelectMgr (  ) 

Definition at line 214 of file llselectmgr.cpp.

References clearSelections().


Member Function Documentation

void LLSelectMgr::addAsFamily ( std::vector< LLViewerObject * > &  objects,
BOOL  add_to_end = FALSE 
) [private]

Definition at line 662 of file llselectmgr.cpp.

References FALSE, gAgentID, gAllowSelectAvatar, mSelectedObjects, saveSelectedObjectTransform(), SELECT_ACTION_TYPE_PICK, LLSelectNode::setTransient(), and TRUE.

Referenced by selectObjectAndFamily().

void LLSelectMgr::addAsIndividual ( LLViewerObject object,
S32  te = SELECT_ALL_TES,
BOOL  undoable = TRUE 
)

Definition at line 715 of file llselectmgr.cpp.

References dialog_refresh_all(), FALSE, LLPrimitive::getNumTEs(), LLSelectNode::getObject(), llassert_always, llendl, llerrs, LLSelectNode::mIndividualSelection, mSelectedObjects, saveSelectedObjectTransform(), SELECT_ACTION_TYPE_PICK, SELECT_ALL_TES, SELECT_MAX_TES, LLSelectNode::selectAllTEs(), LLSelectNode::selectTE(), LLViewerObject::setSelected(), LLSelectNode::setTransient(), TRUE, and updateSelectionCenter().

Referenced by LLPreview::onCommit(), LLToolFace::pickCallback(), LLObjectBridge::renameItem(), and selectObjectOnly().

void LLSelectMgr::addGridObject ( LLViewerObject objectp  ) 

Definition at line 998 of file llselectmgr.cpp.

References LLObjectSelection::addNodeAtEnd(), FALSE, LLViewerObject::mChildList, and mGridObjects.

Referenced by LLToolsUseSelectionForGrid::handleEvent().

void LLSelectMgr::adjustTexturesByScale ( BOOL  send_to_sim,
BOOL  stretch 
)

Definition at line 2035 of file llselectmgr.cpp.

References f, FALSE, LLPrimitive::getNumTEs(), LLXform::getScale(), getSelection(), LLPrimitive::getTE(), LLPrimitive::getTESTAxes(), LLVector3::mV, LLViewerObject::permModify(), LLViewerObject::sendTEUpdate(), LLViewerObject::setTEScale(), and LLTextureEntry::TEX_GEN_PLANAR.

Referenced by LLManipScale::handleHover(), LLManipScale::handleMouseUp(), and LLPanelObject::sendScale().

BOOL LLSelectMgr::canDeselect (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 5511 of file llselectmgr.cpp.

References mSelectedObjects.

BOOL LLSelectMgr::canDoDelete (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 5494 of file llselectmgr.cpp.

References mSelectedObjects, and NULL.

Referenced by LLObjectEnableDelete::handleEvent().

BOOL LLSelectMgr::canDuplicate (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 5526 of file llselectmgr.cpp.

References mSelectedObjects, and NULL.

BOOL LLSelectMgr::canRedo (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 5476 of file llselectmgr.cpp.

References mSelectedObjects, and NULL.

BOOL LLSelectMgr::canSelectObject ( LLViewerObject object  ) 

Definition at line 5575 of file llselectmgr.cpp.

References FALSE, LLControlGroup::getBOOL(), LLPrimitive::getPCode(), getSelectTypeForObject(), gSavedSettings, LLPrimitive::isAvatar(), LLViewerObject::isDead(), LLViewerObject::isOrphaned(), LLViewerObject::LL_VO_SURFACE_PATCH, mForceSelection, mSelectedObjects, LLViewerObject::permMove(), LLViewerObject::permYouOwner(), and TRUE.

Referenced by get_family_count(), selectHighlightedObjects(), selectObjectAndFamily(), selectObjectOnly(), updateSilhouettes(), and validateSelection().

BOOL LLSelectMgr::canUndo (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 5458 of file llselectmgr.cpp.

References mSelectedObjects, and NULL.

void LLSelectMgr::cleanup (  ) 

Definition at line 1329 of file llselectmgr.cpp.

References mSilhouetteImagep, and NULL.

Referenced by LLViewerWindow::~LLViewerWindow().

void LLSelectMgr::cleanupGlobals (  )  [static]

Definition at line 157 of file llselectmgr.cpp.

References gSelectMgr, NULL, and sNullSelection.

Referenced by cleanup_app().

void LLSelectMgr::clearGridObjects (  ) 

Definition at line 1012 of file llselectmgr.cpp.

References LLObjectSelection::deleteAllNodes(), and mGridObjects.

Referenced by LLToolsUseSelectionForGrid::handleEvent().

void LLSelectMgr::clearSelections (  ) 

Definition at line 219 of file llselectmgr.cpp.

References LLObjectSelection::deleteAllNodes(), mGridObjects, mHighlightedObjects, mHoverObjects, mRectSelectedObjects, and mSelectedObjects.

Referenced by ~LLSelectMgr().

void LLSelectMgr::confirmDelete ( S32  option,
void data 
) [static, private]

Definition at line 2710 of file llselectmgr.cpp.

References LLAssetType::AT_TRASH, LLHUDManager::createViewerEffect(), DRD_TRASH, LLInventoryModel::findCategoryUUIDForType(), gAgent, LLAgent::getEffectColor(), getSelectionCenterGlobal(), LLViewerStats::getStat(), gHUDManager, gInventory, gSelectMgr, gViewerStats, LLHUDObject::LL_HUD_EFFECT_POINT, llendl, llwarns, LOOKAT_TARGET_CLEAR, mSelectedObjects, packDeRezHeader(), packObjectLocalID(), SELECT_TYPE_HUD, SEND_ONLY_ROOTS, sendListToRegions(), LLHUDEffect::setColor(), LLHUDEffect::setDuration(), LLAgent::setLookAt(), LLHUDObject::setPositionGlobal(), LLViewerStats::setStat(), LLViewerStats::ST_OBJECT_DELETE_COUNT, and TRUE.

Referenced by selectDelete().

void LLSelectMgr::convertTransient (  )  [private]

Definition at line 3302 of file llselectmgr.cpp.

References FALSE, mSelectedObjects, and LLSelectNode::setTransient().

Referenced by getEditSelection(), and selectDelete().

void LLSelectMgr::demoteSelectionToIndividuals (  ) 

Definition at line 1255 of file llselectmgr.cpp.

References deselectAll(), LLDynamicArray< Type, BlockSize >::getLength(), getSelection(), and selectObjectOnly().

Referenced by commit_select_component(), and LLToolsEditLinkedParts::handleEvent().

void LLSelectMgr::deselect (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 5519 of file llselectmgr.cpp.

References deselectAll().

void LLSelectMgr::deselectAll (  ) 

Definition at line 3272 of file llselectmgr.cpp.

References LLVector3d::clearVec(), mLastSentSelectionCenterGlobal, mSelectedObjects, NULL, packAgentAndSessionID(), packObjectLocalID(), removeAll(), SEND_INDIVIDUALS, sendListToRegions(), and updatePointAt().

Referenced by add_object(), LLAgent::changeCameraToMouselook(), demoteSelectionToIndividuals(), deselect(), deselectAllIfTooFar(), deselectUnused(), disconnect_viewer(), LLToolDragAndDrop::dropObject(), LLToolSelectRect::handleHover(), LLToolCompGun::handleHover(), LLToolSelect::handleObjectSelection(), LLToolIndividual::handleSelect(), LLFloaterTelehub::onClickAddSpawnPoint(), LLPreview::onCommit(), LLToolIndividual::pickCallback(), LLToolGrab::pickCallback(), LLToolFace::pickCallback(), processForceObjectSelect(), promoteSelectionToRoot(), LLObjectBridge::renameItem(), LLAgent::resetView(), selectDuplicate(), selectDuplicateOnRay(), and sendAttach().

void LLSelectMgr::deselectAllIfTooFar (  ) 

Definition at line 3312 of file llselectmgr.cpp.

References deselectAll(), fsqrtf, gAgent, gDebugSelectMgr, LLControlGroup::getBOOL(), LLControlGroup::getF32(), LLAgent::getPositionGlobal(), getSelectionCenterGlobal(), LLView::getVisible(), gPieObject, gPieRate, gSavedSettings, LLVector3d::isExactlyZero(), llendl, llinfos, LLVector3d::magVecSquared(), mSelectedObjects, and SELECT_TYPE_HUD.

Referenced by idle().

void LLSelectMgr::deselectHighlightedObjects (  ) 

Definition at line 974 of file llselectmgr.cpp.

References deselectObjectAndFamily(), deselectObjectOnly(), LLControlGroup::getBOOL(), LLXform::getRoot(), gSavedSettings, LLViewerObject::isSelected(), mRectSelectedObjects, and unhighlightAll().

Referenced by LLToolSelectRect::handleMouseUp().

void LLSelectMgr::deselectObjectAndFamily ( LLViewerObject object,
BOOL  send_to_sim = TRUE,
BOOL  include_entire_object = FALSE 
)

Definition at line 553 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_ObjectData, _PREHASH_ObjectDeselect, _PREHASH_ObjectLocalID, _PREHASH_SessionID, LLViewerObject::addThisAndAllChildren(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), FALSE, gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLXform::getParent(), LLViewerObject::getRegion(), LLXform::getRoot(), LLAgent::getSessionID(), gMessageSystem, i, LLPrimitive::isAvatar(), LLViewerObject::isJointChild(), LLViewerObject::isSelected(), LLMessageSystem::isSendFull(), MAX_OBJECTS_PER_PACKET, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), NULL, remove(), S32, LLMessageSystem::sendReliable(), TRUE, updatePointAt(), and updateSelectionCenter().

Referenced by deselectHighlightedObjects(), LLViewerObjectList::findOrphans(), LLToolSelect::handleObjectSelection(), LLViewerObject::removeChild(), removeObjectFromSelections(), and repeatDuplicate().

void LLSelectMgr::deselectObjectOnly ( LLViewerObject object,
BOOL  send_to_sim = TRUE 
)

Definition at line 632 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_ObjectData, _PREHASH_ObjectDeselect, _PREHASH_ObjectLocalID, _PREHASH_SessionID, LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLViewerObject::getLocalID(), LLViewerObject::getRegion(), LLAgent::getSessionID(), gMessageSystem, LLViewerObject::isSelected(), LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), remove(), LLMessageSystem::sendReliable(), updatePointAt(), and updateSelectionCenter().

Referenced by deselectHighlightedObjects(), LLToolSelect::handleObjectSelection(), and validateSelection().

void LLSelectMgr::deselectUnused (  ) 

Definition at line 3293 of file llselectmgr.cpp.

References deselectAll(), and mSelectedObjects.

Referenced by LLViewerWindow::handlePerFrameHover().

void LLSelectMgr::doDelete (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 5503 of file llselectmgr.cpp.

References selectDelete().

Referenced by LLObjectDelete::handleEvent().

void LLSelectMgr::dump (  ) 

Definition at line 1281 of file llselectmgr.cpp.

References count, LLViewerObject::flagHandleTouch(), LLViewerObject::flagScripted(), LLViewerObject::flagTakesMoney(), LLDrawable::FORCE_INVISIBLE, LLPrimitive::getNumTEs(), LLPrimitive::getPCode(), LLXform::getPosition(), LLViewerObject::getPositionAgent(), LLViewerObject::getPositionGlobal(), LLViewerObject::getPositionRegion(), getSelection(), LLDrawable::isState(), LLDrawable::isVisible(), llendl, llinfos, LLViewerObject::mDrawable, mHighlightedObjects, mSelectedObjects, mSelectionCenterGlobal, mTEMode, LLPrimitive::pCodeToString(), and S32.

Referenced by dump_select_mgr().

void LLSelectMgr::duplicate (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 5533 of file llselectmgr.cpp.

References f, selectDuplicate(), and TRUE.

void LLSelectMgr::enableSilhouette ( BOOL  enable  )  [inline]

Definition at line 471 of file llselectmgr.h.

References mRenderSilhouettes.

Referenced by LLManipTranslate::handleMouseDownOnPart(), LLManipScale::handleMouseDownOnPart(), LLManipRotate::handleMouseDownOnPart(), LLManipTranslate::handleMouseUp(), LLManipScale::handleMouseUp(), LLManipRotate::handleMouseUp(), and LLToolSelect::onMouseCaptureLost().

LLPermissions * LLSelectMgr::findObjectPermissions ( const LLViewerObject object  ) 

Definition at line 1730 of file llselectmgr.cpp.

References LLSelectNode::getObject(), getSelection(), LLSelectNode::mPermissions, and NULL.

Referenced by LLViewerObject::doUpdateInventory().

void LLSelectMgr::generateSilhouette ( LLSelectNode nodep,
const LLVector3 view_point 
) [private]

Definition at line 4790 of file llselectmgr.cpp.

References LLSelectNode::getObject(), LLPrimitive::getPCode(), and LL_PCODE_VOLUME.

Referenced by updateSilhouettes().

void LLSelectMgr::getAgentHUDZoom ( F32 target_zoom,
F32 current_zoom 
) const

Definition at line 5622 of file llselectmgr.cpp.

References gAgent, LLAgent::getAvatarObject(), LLVOAvatar::mHUDCurZoom, and LLVOAvatar::mHUDTargetZoom.

Referenced by LLToolSelect::handleObjectSelection().

LLBBox LLSelectMgr::getBBoxOfSelection (  )  const

Definition at line 5449 of file llselectmgr.cpp.

References mSelectionBBox.

Referenced by LLManipScale::dragCorner(), LLManipScale::dragFace(), LLManip::getPivotPoint(), LLToolsLookAtSelection::handleEvent(), LLManipScale::handleMouseDownOnPart(), LLManipScale::handleSelect(), LLManipScale::highlightManipulators(), LLManipScale::render(), LLSelectNode::renderOneSilhouette(), and saveSelectedObjectTransform().

LLObjectSelectionHandle LLSelectMgr::getEditSelection (  )  [inline]

Definition at line 444 of file llselectmgr.h.

References convertTransient(), and mSelectedObjects.

Referenced by LLObjectReturn::handleEvent(), LLManip::handleSelect(), LLFloaterPay::LLFloaterPay(), LLFloaterTelehub::LLFloaterTelehub(), LLFloaterTrustNetRate::LLFloaterTrustNetRate(), LLFloaterTools::onOpen(), LLFloaterOpenObject::show(), LLFloaterBuyContents::show(), and LLFloaterBuy::show().

void LLSelectMgr::getGrid ( LLVector3 origin,
LLQuaternion rotation,
LLVector3 scale 
)

Definition at line 1025 of file llselectmgr.cpp.

References LLObjectSelection::begin(), LLObjectSelection::cleanupNodes(), LLVector3::clearVec(), LLObjectSelection::end(), f, F32_MAX, FALSE, LLBBox::getCenterAgent(), LLBBox::getExtentLocal(), LLControlGroup::getF32(), LLObjectSelection::getFirstObject(), LLViewerObject::getRenderMatrix(), LLViewerObject::getRenderPosition(), LLViewerObject::getRenderRotation(), LLViewerObject::getRootEdit(), LLBBox::getRotation(), getSelectTypeForObject(), LLDrawable::getSpatialExtents(), LLXform::getWorldPosition(), LLXform::getWorldRotation(), GRID_MODE_LOCAL, GRID_MODE_REF_OBJECT, gSavedSettings, LLDrawable::isActive(), LLVector3::isFinite(), lerp(), llassert, LLQuaternion::loadIdentity(), LLViewerObject::mDrawable, mGridMode, mGridObjects, mGridOrigin, mGridRotation, mGridScale, mGridValid, mSavedSelectionBBox, mSelectedObjects, LLPointer< Type >::notNull(), SELECT_TYPE_ATTACHMENT, SELECT_TYPE_HUD, SELECT_TYPE_WORLD, TRUE, and update_min_max().

Referenced by LLManipRotate::dragConstrained(), LLManipRotate::getConstraintAxis(), LLManip::getManipAxis(), LLManip::getManipNormal(), LLManipTranslate::handleMouseDownOnPart(), LLManipTranslate::highlightManipulators(), LLManipRotate::highlightManipulators(), LLManipRotate::render(), LLManip::renderGuidelines(), LLManipTranslate::renderSnapGuides(), LLManipRotate::renderSnapGuides(), LLManipTranslate::renderTranslationHandles(), and LLManipScale::updateSnapGuides().

EGridMode LLSelectMgr::getGridMode (  )  [inline]

Definition at line 455 of file llselectmgr.h.

References mGridMode.

Referenced by LLManipRotate::dragConstrained(), LLManipTranslate::renderSnapGuides(), LLManipScale::renderSnapGuides(), and LLManipRotate::renderSnapGuides().

LLObjectSelectionHandle LLSelectMgr::getHighlightedObjects (  )  [inline]

Definition at line 445 of file llselectmgr.h.

References mHighlightedObjects.

Referenced by LLToolSelectRect::handleRectangleSelection(), and selectHighlightedObjects().

LLSelectNode * LLSelectMgr::getHoverNode (  ) 

Definition at line 805 of file llselectmgr.cpp.

References getHoverObjects().

Referenced by LLHoverView::updateText().

LLObjectSelectionHandle LLSelectMgr::getHoverObjects (  )  [inline]

Definition at line 441 of file llselectmgr.h.

References mHoverObjects.

Referenced by getHoverNode(), and processObjectPropertiesFamily().

LLBBox LLSelectMgr::getSavedBBoxOfSelection (  )  const [inline]

Definition at line 464 of file llselectmgr.h.

References mSavedSelectionBBox.

Referenced by LLManip::getSavedPivotPoint(), and LLManipScale::renderSnapGuides().

LLObjectSelectionHandle LLSelectMgr::getSelection (  )  [inline]

Definition at line 442 of file llselectmgr.h.

References mSelectedObjects.

Referenced by adjustTexturesByScale(), LLAgent::cameraOrbitAround(), LLAgent::cameraOrbitOver(), LLAgent::cameraZoomIn(), confirm_replace_attachment(), demoteSelectionToIndividuals(), derez_objects(), disabled_duplicate(), LLManipScale::drag(), LLManipRotate::drag(), LLTextureView::draw(), dump(), enable_buy(), enable_deed_object_to_group(), enable_export_selected(), enable_more_than_one_selected(), enable_save_into_inventory(), enable_save_into_task_inventory(), enable_selection_you_own_all(), enable_selection_you_own_one(), enable_take(), findObjectPermissions(), LLViewerObjectList::findOrphans(), force_take_copy(), LLAgent::getCameraZoomFraction(), LLAgent::getRenderState(), LLPanelVolume::getState(), LLPanelObject::getState(), LLPanelFace::getState(), LLPanelContents::getState(), handle_buy(), handle_export_selected(), handle_force_unlock(), handle_give_money_dialog(), handle_selected_texture_info(), handle_take(), LLToolIndividual::handleDoubleClick(), LLToolFace::handleDoubleClick(), LLToolsUseSelectionForGrid::handleEvent(), LLToolsEnableTakeCopy::handleEvent(), LLEditableSelected::handleEvent(), LLSomethingSelectedNoHUD::handleEvent(), LLSomethingSelected::handleEvent(), LLAttachmentDetach::handleEvent(), LLObjectAttachToAvatar::handleEvent(), LLObjectEnableSitOrStand::handleEvent(), LLToolsLookAtSelection::handleEvent(), LLToolsEnableUnlink::handleEvent(), LLToolsLink::handleEvent(), LLToolsEnableLink::handleEvent(), LLToolsSnapObjectXY::handleEvent(), LLToolsSaveToObjectInventory::handleEvent(), LLToolsBuyOrTake::handleEvent(), LLObjectEnableReturn::handleEvent(), LLObjectReturn::handleEvent(), LLToolsTakeCopy::handleEvent(), LLObjectMute::handleEvent(), LLObjectEdit::handleEvent(), LLObjectEnableTouch::handleEvent(), LLToolSelect::handleObjectSelection(), LLViewerWindow::handlePerFrameHover(), LLAgent::handleScrollWheel(), LLToolIndividual::handleSelect(), LLVOAvatar::idleUpdate(), is_selection_buy_not_take(), label_touch(), LLManipRotate::mouseToRay(), object_selected_and_point_valid(), LLPanelFace::onClickAutoFix(), LLPanelContents::onClickNewScript(), LLPanelObjectTools::onClickSetBySelection(), LLPanelPermissions::onCommitClickAction(), LLPanelPermissions::onCommitPerm(), LLPanelFace::onDragTexture(), overrideObjectUpdates(), LLToolPie::pickAndShowMenu(), LLToolGrab::pickCallback(), LLToolCamera::pickCallback(), LLToolFace::pickCallback(), LLToolCompInspect::pickCallback(), LLPipeline::postSort(), processObjectProperties(), promoteSelectionToRoot(), queue_actions(), LLPanelPermissions::refresh(), LLPanelInventory::refresh(), LLPanelContents::refresh(), removeObjectFromSelections(), LLViewerWindow::renderSelections(), repeatDuplicate(), LLAgent::resetView(), saveSelectedObjectColors(), saveSelectedObjectTextures(), saveSelectedObjectTransform(), selectDelete(), selectDuplicate(), selectGetAggregatePermissions(), selectGetAggregateTexturePermissions(), selectGetAllRootsValid(), selectGetAllValid(), selectGetCreator(), selectGetGroup(), selectGetLastOwner(), selectGetModify(), selectGetOwner(), selectGetPerm(), selectGetPermissions(), selectGetRootsCopy(), selectGetRootsModify(), selectGetRootsTransfer(), selectGetSaleInfo(), selection_price(), selectionAllPCode(), selectionDump(), selectionGetClickAction(), selectionGetIncludeInSearch(), selectionResetRotation(), selectionRevertColors(), selectionRevertTextures(), selectionRotateAroundZ(), selectionSetAlphaOnly(), selectionSetBumpmap(), selectionSetClickAction(), selectionSetColor(), selectionSetColorOnly(), selectionSetFullbright(), selectionSetImage(), selectionSetIncludeInSearch(), selectionSetMaterial(), selectionSetMediaTypeAndURL(), selectionSetShiny(), selectionSetTexGen(), selectionTexScaleAutofit(), selectionUpdateCastShadows(), selectionUpdatePhantom(), selectionUpdatePhysics(), selectionUpdateTemporary(), selectIsForSale(), selectIsGroupOwned(), sendListToRegions(), LLPanelFace::sendTextureInfo(), LLAgent::setCameraZoomFraction(), LLFloaterOpenObject::show(), LLFloaterInspect::show(), LLFloaterBuyContents::show(), LLFloaterBuy::show(), sitting_on_selection(), LLViewerObjectList::updateApparentAngles(), updateSilhouettes(), and validateSelection().

LLVector3d LLSelectMgr::getSelectionCenterGlobal (  )  const [inline]

Definition at line 615 of file llselectmgr.h.

References mSelectionCenterGlobal.

Referenced by confirmDelete(), deselectAllIfTooFar(), LLToolsLookAtSelection::handleEvent(), LLToolSelect::handleObjectSelection(), LLManipScale::render(), and LLSelectNode::renderOneSilhouette().

ESelectType LLSelectMgr::getSelectTypeForObject ( LLViewerObject object  )  [private]

Definition at line 5539 of file llselectmgr.cpp.

References LLViewerObject::isAttachment(), LLViewerObject::isHUDAttachment(), SELECT_TYPE_ATTACHMENT, SELECT_TYPE_HUD, and SELECT_TYPE_WORLD.

Referenced by canSelectObject(), getGrid(), selectHighlightedObjects(), and updateSelectionCenter().

BOOL LLSelectMgr::getTEMode (  )  [inline]

Definition at line 458 of file llselectmgr.h.

References mTEMode.

Referenced by LLPipeline::postSort(), and sendMultipleUpdate().

void LLSelectMgr::highlightObjectAndFamily ( const std::vector< LLViewerObject * > &  list  ) 

Definition at line 851 of file llselectmgr.cpp.

References LL_PCODE_VOLUME, LLViewerObject::mChildList, and mRectSelectedObjects.

void LLSelectMgr::highlightObjectAndFamily ( LLViewerObject objectp  ) 

Definition at line 832 of file llselectmgr.cpp.

References LLXform::getRoot(), highlightObjectOnly(), i, and LLViewerObject::mChildList.

Referenced by LLToolDragAndDrop::pickCallback(), and processForceObjectSelect().

void LLSelectMgr::highlightObjectOnly ( LLViewerObject objectp  ) 

Definition at line 810 of file llselectmgr.cpp.

References LLControlGroup::getBOOL(), LLPrimitive::getPCode(), gSavedSettings, LL_PCODE_VOLUME, mRectSelectedObjects, LLViewerObject::permMove(), and LLViewerObject::permYouOwner().

Referenced by LLToolSelectRect::handleRectangleSelection(), highlightObjectAndFamily(), and LLToolPipette::pickCallback().

void LLSelectMgr::overrideObjectUpdates (  ) 

Definition at line 257 of file llselectmgr.cpp.

References f, func, LLSelectNode::getObject(), getSelection(), LLVector3::isExactlyZero(), LLSelectNode::mLastPositionLocal, LLSelectNode::mLastRotation, LLSelectNode::mLastScale, LLViewerObject::permMove(), LLViewerObject::setPosition(), LLViewerObject::setRotation(), and LLViewerObject::setScale().

Referenced by updateSelectionCenter().

void LLSelectMgr::packAgentAndGroupID ( void user_data  )  [static, private]

Definition at line 3749 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_GroupID, LLMessageSystem::addUUIDFast(), gMessageSystem, LLOwnerData::group_id, LLMessageSystem::nextBlockFast(), and LLOwnerData::owner_id.

void LLSelectMgr::packAgentAndSessionAndGroupID ( void user_data  )  [static, private]

Definition at line 3759 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_GroupID, _PREHASH_SessionID, LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, and LLMessageSystem::nextBlockFast().

Referenced by packDuplicateHeader(), redo(), sendGroup(), and undo().

void LLSelectMgr::packAgentAndSessionID ( void user_data  )  [static, private]

Definition at line 3741 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, and LLMessageSystem::nextBlockFast().

Referenced by deselectAll(), selectionSetClickAction(), selectionSetIncludeInSearch(), selectionSetObjectCategory(), selectionSetObjectDescription(), selectionSetObjectName(), selectionSetObjectSaleInfo(), sendDelink(), sendDetach(), sendDropAttachment(), sendLink(), sendMultipleUpdate(), and sendSelect().

void LLSelectMgr::packAgentGroupAndCatID ( void  )  [static, private]

Definition at line 3793 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_CategoryID, _PREHASH_GroupID, _PREHASH_SessionID, LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getGroupID(), LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLBuyData::mCategoryID, and LLMessageSystem::nextBlockFast().

Referenced by sendBuy().

void LLSelectMgr::packAgentID ( void  )  [static, private]

Definition at line 3734 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), gMessageSystem, and LLMessageSystem::nextBlockFast().

void LLSelectMgr::packAgentIDAndSessionAndAttachment ( void  )  [static, private]

Definition at line 3724 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_AttachmentPoint, _PREHASH_SessionID, LLMessageSystem::addU8Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, and LLMessageSystem::nextBlockFast().

Referenced by sendAttach().

void LLSelectMgr::packBuyObjectIDs ( LLSelectNode node,
void user_data 
) [static, private]

Definition at line 3209 of file llselectmgr.cpp.

References _PREHASH_ObjectData, _PREHASH_ObjectLocalID, _PREHASH_SalePrice, _PREHASH_SaleType, LLMessageSystem::addS32Fast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addU8Fast(), LLViewerObject::getLocalID(), LLSelectNode::getObject(), LLSaleInfo::getSalePrice(), LLSaleInfo::getSaleType(), gMessageSystem, LLBuyData::mObjectsSent, LLBuyData::mSaleInfo, and LLMessageSystem::nextBlockFast().

Referenced by sendBuy().

void LLSelectMgr::packDeleteHeader ( void userdata  )  [static, private]

Definition at line 3782 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_Force, _PREHASH_SessionID, LLMessageSystem::addBOOLFast(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, and LLMessageSystem::nextBlockFast().

Referenced by selectForceDelete().

void LLSelectMgr::packDeRezHeader ( void user_data  )  [static, private]

Definition at line 3804 of file llselectmgr.cpp.

References _PREHASH_AgentBlock, _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_Destination, _PREHASH_DestinationID, _PREHASH_GroupID, _PREHASH_PacketCount, _PREHASH_PacketNumber, _PREHASH_SessionID, _PREHASH_TransactionID, LLMessageSystem::addU8Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLUUID::generate(), LLAgent::getGroupID(), LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLDeRezInfo::mDestination, LLDeRezInfo::mDestinationID, and LLMessageSystem::nextBlockFast().

Referenced by confirmDelete().

static void LLSelectMgr::packDeselect ( LLSelectNode node,
void user_data 
) [static, private]

void LLSelectMgr::packDuplicate ( LLSelectNode node,
void duplicate_data 
) [static, private]

Definition at line 2991 of file llselectmgr.cpp.

References _PREHASH_ObjectData, _PREHASH_ObjectLocalID, LLMessageSystem::addU32Fast(), LLViewerObject::getLocalID(), LLSelectNode::getObject(), gMessageSystem, and LLMessageSystem::nextBlockFast().

Referenced by repeatDuplicate(), and selectDuplicate().

void LLSelectMgr::packDuplicateHeader ( void  )  [static, private]

Definition at line 3769 of file llselectmgr.cpp.

References _PREHASH_DuplicateFlags, _PREHASH_Offset, _PREHASH_SharedData, LLMessageSystem::addU32Fast(), LLMessageSystem::addVector3Fast(), LLDuplicateData::flags, gAgent, LLAgent::getGroupID(), gMessageSystem, LLMessageSystem::nextBlockFast(), LLDuplicateData::offset, and packAgentAndSessionAndGroupID().

Referenced by repeatDuplicate(), and selectDuplicate().

void LLSelectMgr::packDuplicateOnRayHead ( void user_data  )  [static, private]

Definition at line 3054 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_BypassRaycast, _PREHASH_CopyCenters, _PREHASH_CopyRotates, _PREHASH_DuplicateFlags, _PREHASH_GroupID, _PREHASH_RayEnd, _PREHASH_RayEndIsIntersection, _PREHASH_RayStart, _PREHASH_RayTargetID, _PREHASH_SessionID, LLMessageSystem::addBOOLFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), LLMessageSystem::addVector3Fast(), gAgent, LLAgent::getGroupID(), LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLDuplicateOnRayData::mBypassRaycast, LLDuplicateOnRayData::mCopyCenters, LLDuplicateOnRayData::mCopyRotates, LLDuplicateOnRayData::mFlags, LLDuplicateOnRayData::mRayEndIsIntersection, LLDuplicateOnRayData::mRayEndRegion, LLDuplicateOnRayData::mRayStartRegion, LLDuplicateOnRayData::mRayTargetID, and LLMessageSystem::nextBlockFast().

Referenced by selectDuplicateOnRay().

void LLSelectMgr::packGodlikeHead ( void user_data  )  [static, private]

Definition at line 1915 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, LLMessageSystem::addString(), LLMessageSystem::addUUID(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLMessageSystem::nextBlock(), LLMessageSystem::nextBlockFast(), and LLUUID::null.

Referenced by sendGodlikeRequest().

void LLSelectMgr::packHingeHead ( void user_data  )  [static, private]

Definition at line 3567 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_JointType, _PREHASH_SessionID, _PREHASH_Type, LLMessageSystem::addU8Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLMessageSystem::nextBlockFast(), and type.

void LLSelectMgr::packMultipleUpdate ( LLSelectNode node,
void user_data 
) [static, private]

Definition at line 3099 of file llselectmgr.cpp.

References _PREHASH_Data, _PREHASH_ObjectData, _PREHASH_ObjectLocalID, _PREHASH_Type, LLMessageSystem::addBinaryDataFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addU8Fast(), LLViewerObject::getLocalID(), LLSelectNode::getObject(), LLXform::getPosition(), LLXform::getRotation(), LLXform::getScale(), gMessageSystem, htonmemcpy(), LLVector3::mV, MVT_LLQuaternion, MVT_LLVector3, LLMessageSystem::nextBlockFast(), LLQuaternion::packToVector3(), S32, type, UPD_POSITION, UPD_ROTATION, and UPD_SCALE.

Referenced by sendMultipleUpdate().

void LLSelectMgr::packObjectCategory ( LLSelectNode node,
void user_data 
) [static, private]

Definition at line 3879 of file llselectmgr.cpp.

References _PREHASH_LocalID, _PREHASH_ObjectData, LLMessageSystem::addU32Fast(), LLViewerObject::getLocalID(), LLSelectNode::getObject(), gMessageSystem, LLMessageSystem::nextBlockFast(), and LLCategory::packMessage().

Referenced by selectionSetObjectCategory().

void LLSelectMgr::packObjectClickAction ( LLSelectNode node,
void data 
) [static, private]

Definition at line 3836 of file llselectmgr.cpp.

References _PREHASH_ObjectData, _PREHASH_ObjectLocalID, LLMessageSystem::addU32Fast(), LLMessageSystem::addU8(), LLViewerObject::getClickAction(), LLViewerObject::getLocalID(), LLSelectNode::getObject(), gMessageSystem, and LLMessageSystem::nextBlockFast().

Referenced by selectionSetClickAction().

void LLSelectMgr::packObjectDescription ( LLSelectNode node,
void user_data 
) [static, private]

Definition at line 3868 of file llselectmgr.cpp.

References _PREHASH_Description, _PREHASH_LocalID, _PREHASH_ObjectData, LLMessageSystem::addStringFast(), LLMessageSystem::addU32Fast(), LLViewerObject::getLocalID(), LLSelectNode::getObject(), gMessageSystem, and LLMessageSystem::nextBlockFast().

Referenced by selectionSetObjectDescription().

void LLSelectMgr::packObjectID ( LLSelectNode node,
void  
) [static, private]

Definition at line 3823 of file llselectmgr.cpp.

References _PREHASH_ObjectData, _PREHASH_ObjectID, LLMessageSystem::addUUIDFast(), LLSelectNode::getObject(), gMessageSystem, LLViewerObject::mID, and LLMessageSystem::nextBlockFast().

Referenced by redo(), and undo().

void LLSelectMgr::packObjectIDAndRotation ( LLSelectNode node,
void  
) [static, private]

Definition at line 3829 of file llselectmgr.cpp.

References _PREHASH_ObjectData, _PREHASH_ObjectLocalID, _PREHASH_Rotation, LLMessageSystem::addQuatFast(), LLMessageSystem::addU32Fast(), LLViewerObject::getLocalID(), LLSelectNode::getObject(), LLXform::getRotation(), gMessageSystem, and LLMessageSystem::nextBlockFast().

Referenced by sendAttach().

void LLSelectMgr::packObjectIDAsParam ( LLSelectNode node,
void  
) [static, private]

Definition at line 1940 of file llselectmgr.cpp.

References LLMessageSystem::addString(), LLViewerObject::getLocalID(), LLSelectNode::getObject(), gMessageSystem, MAX_STRING, and LLMessageSystem::nextBlock().

Referenced by sendGodlikeRequest().

void LLSelectMgr::packObjectIncludeInSearch ( LLSelectNode node,
void data 
) [static, private]

Definition at line 3843 of file llselectmgr.cpp.

References _PREHASH_ObjectData, _PREHASH_ObjectLocalID, LLMessageSystem::addBOOL(), LLMessageSystem::addU32Fast(), LLViewerObject::getIncludeInSearch(), LLViewerObject::getLocalID(), LLSelectNode::getObject(), gMessageSystem, and LLMessageSystem::nextBlockFast().

Referenced by selectionSetIncludeInSearch().

void LLSelectMgr::packObjectLocalID ( LLSelectNode node,
void  
) [static, private]

Definition at line 3851 of file llselectmgr.cpp.

References _PREHASH_ObjectData, _PREHASH_ObjectLocalID, LLMessageSystem::addU32Fast(), LLViewerObject::getLocalID(), LLSelectNode::getObject(), gMessageSystem, and LLMessageSystem::nextBlockFast().

Referenced by confirmDelete(), deselectAll(), selectDuplicateOnRay(), selectForceDelete(), sendDelink(), sendDetach(), sendDropAttachment(), sendGroup(), sendLink(), sendOwner(), and sendSelect().

void LLSelectMgr::packObjectName ( LLSelectNode node,
void user_data 
) [static, private]

Definition at line 3858 of file llselectmgr.cpp.

References _PREHASH_LocalID, _PREHASH_Name, _PREHASH_ObjectData, LLMessageSystem::addStringFast(), LLMessageSystem::addU32Fast(), LLViewerObject::getLocalID(), LLSelectNode::getObject(), gMessageSystem, and LLMessageSystem::nextBlockFast().

Referenced by selectionSetObjectName().

void LLSelectMgr::packObjectSaleInfo ( LLSelectNode node,
void user_data 
) [static, private]

Definition at line 3889 of file llselectmgr.cpp.

References _PREHASH_LocalID, _PREHASH_ObjectData, LLMessageSystem::addU32Fast(), LLViewerObject::getLocalID(), LLSelectNode::getObject(), gMessageSystem, LLMessageSystem::nextBlockFast(), and LLSaleInfo::packMessage().

Referenced by selectionSetObjectSaleInfo().

void LLSelectMgr::packOwnerHead ( void user_data  )  [static, private]

Definition at line 3161 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_GroupID, _PREHASH_HeaderData, _PREHASH_Override, _PREHASH_OwnerID, _PREHASH_SessionID, LLMessageSystem::addBOOLFast(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLOwnerData::group_id, LLMessageSystem::nextBlockFast(), LLOwnerData::override, and LLOwnerData::owner_id.

Referenced by sendOwner().

void LLSelectMgr::packPermissions ( LLSelectNode node,
void user_data 
) [static, private]

Definition at line 3909 of file llselectmgr.cpp.

References _PREHASH_Field, _PREHASH_Mask, _PREHASH_ObjectData, _PREHASH_ObjectLocalID, _PREHASH_Set, LLMessageSystem::addBOOLFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addU8Fast(), LLViewerObject::getLocalID(), LLSelectNode::getObject(), gMessageSystem, LLPermData::mField, LLPermData::mMask, LLPermData::mSet, and LLMessageSystem::nextBlockFast().

Referenced by selectionSetObjectPermissions().

void LLSelectMgr::packPermissionsHead ( void user_data  )  [static, private]

Definition at line 3252 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_HeaderData, _PREHASH_Override, _PREHASH_SessionID, LLMessageSystem::addBOOLFast(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLPermData::mOverride, and LLMessageSystem::nextBlockFast().

Referenced by selectionSetObjectPermissions().

void LLSelectMgr::packPhysics ( LLSelectNode node,
void user_data 
) [static, private]

Definition at line 3899 of file llselectmgr.cpp.

void LLSelectMgr::packShape ( LLSelectNode node,
void user_data 
) [static, private]

Definition at line 3904 of file llselectmgr.cpp.

void LLSelectMgr::processForceObjectSelect ( LLMessageSystem msg,
void **   
) [static]

Definition at line 4369 of file llselectmgr.cpp.

References deselectAll(), LLViewerObjectList::findObject(), LLMessageSystem::getBOOL(), LLMessageSystem::getNumberOfBlocks(), LLMessageSystem::getS32(), LLMessageSystem::getSenderIP(), LLMessageSystem::getSenderPort(), LLViewerObjectList::getUUIDFromLocal(), gObjectList, gSelectMgr, highlightObjectAndFamily(), i, and S32.

Referenced by register_viewer_callbacks().

void LLSelectMgr::processObjectProperties ( LLMessageSystem mesgsys,
void **  user_data 
) [static]

Definition at line 4116 of file llselectmgr.cpp.

References _PREHASH_AggregatePerms, _PREHASH_AggregatePermTextures, _PREHASH_AggregatePermTexturesOwner, _PREHASH_BaseMask, _PREHASH_CreationDate, _PREHASH_CreatorID, _PREHASH_Description, _PREHASH_EveryoneMask, _PREHASH_FolderID, _PREHASH_FromTaskID, _PREHASH_GroupID, _PREHASH_GroupMask, _PREHASH_InventorySerial, _PREHASH_ItemID, _PREHASH_LastOwnerID, _PREHASH_Name, _PREHASH_NextOwnerMask, _PREHASH_ObjectData, _PREHASH_ObjectID, _PREHASH_OwnerID, _PREHASH_OwnerMask, _PREHASH_SitName, _PREHASH_TextureID, _PREHASH_TouchName, LLAggregatePermissions::AP_ALL, LLAggregatePermissions::AP_EMPTY, LLAggregatePermissions::AP_NONE, count, DB_INV_ITEM_DESC_BUF_SIZE, DB_INV_ITEM_NAME_BUF_SIZE, dialog_refresh_all(), LLViewerObject::dirtyInventory(), enable_save_into_inventory(), f, FALSE, func, LLMessageSystem::getBinaryDataFast(), LLMessageSystem::getNumberOfBlocksFast(), LLSelectNode::getObject(), LLMessageSystem::getS16Fast(), getSelection(), LLMessageSystem::getSizeFast(), LLMessageSystem::getStringFast(), LLMessageSystem::getU32Fast(), LLMessageSystem::getU64Fast(), LLMessageSystem::getUUIDFast(), LLAggregatePermissions::getValue(), LLView::getVisible(), gPopupMenuView, gSelectMgr, i, LLPermissions::init(), LLPermissions::initMasks(), LLSelectNode::mAggregatePerm, LLSelectNode::mAggregateTexturePerm, LLSelectNode::mAggregateTexturePermOwner, LLSelectNode::mCategory, LLSelectNode::mCreationDate, LLSelectNode::mDescription, LLSelectNode::mFolderID, LLSelectNode::mFromTaskID, LLViewerObject::mID, LLSelectNode::mInventorySerial, LLSelectNode::mItemID, LLSelectNode::mName, LLSelectNode::mPermissions, LLSelectNode::mSaleInfo, LLSelectNode::mSitName, LLSelectNode::mTouchName, LLSelectNode::mValid, NULL, PERM_COPY, PERM_TRANSFER, LLViewerObject::permYouOwner(), S32, SAVE_INTO_INVENTORY, LLSelectNode::saveTextures(), SELECT_MAX_TES, LLToolPie::selectionPropertiesReceived(), LLMenuGL::setItemEnabled(), size, TRUE, LLAggregatePermissions::unpackMessage(), LLCategory::unpackMultiMessage(), LLSaleInfo::unpackMultiMessage(), and UUID_BYTES.

Referenced by register_viewer_callbacks().

void LLSelectMgr::processObjectPropertiesFamily ( LLMessageSystem mesgsys,
void **  user_data 
) [static]

Definition at line 4288 of file llselectmgr.cpp.

References _PREHASH_BaseMask, _PREHASH_Description, _PREHASH_EveryoneMask, _PREHASH_GroupID, _PREHASH_GroupMask, _PREHASH_LastOwnerID, _PREHASH_Name, _PREHASH_NextOwnerMask, _PREHASH_ObjectData, _PREHASH_ObjectID, _PREHASH_OwnerID, _PREHASH_OwnerMask, _PREHASH_RequestFlags, BUG_REPORT, BUG_REPORT_REQUEST, COMPLAINT_REPORT, COMPLAINT_REPORT_REQUEST, DB_FIRST_NAME_BUF_SIZE, DB_INV_ITEM_DESC_BUF_SIZE, DB_INV_ITEM_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, dialog_refresh_all(), f, func, gCacheName, getHoverObjects(), LLCacheName::getName(), LLSelectNode::getObject(), LLFloaterReporter::getReporter(), LLMessageSystem::getStringFast(), LLMessageSystem::getU32Fast(), LLMessageSystem::getUUIDFast(), gSelectMgr, LLPermissions::init(), LLPermissions::initMasks(), LLSelectNode::mCategory, LLSelectNode::mDescription, LLViewerObject::mID, LLSelectNode::mName, LLSelectNode::mPermissions, LLSelectNode::mSaleInfo, LLSelectNode::mValid, LLUUID::null, LLFloaterReporter::setPickedObjectProperties(), TRUE, LLCategory::unpackMessage(), and LLSaleInfo::unpackMessage().

Referenced by register_viewer_callbacks().

void LLSelectMgr::promoteSelectionToRoot (  ) 

Definition at line 1213 of file llselectmgr.cpp.

References deselectAll(), FALSE, LLSelectNode::getObject(), LLXform::getParent(), getSelection(), LLViewerObject::isJointChild(), LLXform::isRootEdit(), LLSelectNode::mIndividualSelection, selectObjectAndFamily(), and TRUE.

Referenced by commit_select_component(), LLToolsEditLinkedParts::handleEvent(), LLToolComposite::handleSelect(), LLFloaterTools::onClose(), and selectObjectAndFamily().

void LLSelectMgr::redo (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 5484 of file llselectmgr.cpp.

References gAgent, LLControlGroup::getBOOL(), LLAgent::getGroupID(), gSavedSettings, packAgentAndSessionAndGroupID(), packObjectID(), SEND_CHILDREN_FIRST, SEND_ONLY_ROOTS, and sendListToRegions().

void LLSelectMgr::remove ( LLViewerObject object,
S32  te = SELECT_ALL_TES,
BOOL  undoable = TRUE 
)

Definition at line 1135 of file llselectmgr.cpp.

References dialog_refresh_all(), FALSE, LLPrimitive::getNumTEs(), LLSelectNode::getObject(), i, LLSelectNode::isTESelected(), llendl, llerrs, mSelectedObjects, NULL, S32, SELECT_ALL_TES, SELECT_MAX_TES, LLSelectNode::selectTE(), LLViewerObject::setSelected(), and updateSelectionCenter().

void LLSelectMgr::remove ( std::vector< LLViewerObject * > &  objects  ) 

Definition at line 1113 of file llselectmgr.cpp.

References dialog_refresh_all(), FALSE, mSelectedObjects, NULL, LLViewerObject::setSelected(), and updateSelectionCenter().

Referenced by deselectObjectAndFamily(), deselectObjectOnly(), LLObjectBridge::performAction(), LLToolFace::pickCallback(), and remove_inventory_category_from_avatar_step2().

void LLSelectMgr::removeAll (  ) 

Definition at line 1195 of file llselectmgr.cpp.

References dialog_refresh_all(), FALSE, mSelectedObjects, LLViewerObject::setSelected(), and updateSelectionCenter().

Referenced by deselectAll().

BOOL LLSelectMgr::removeObjectFromSelections ( const LLUUID id  ) 

Definition at line 503 of file llselectmgr.cpp.

References deselectObjectAndFamily(), FALSE, LLToolMgr::getCurrentTool(), LLTool::getEditingObject(), getSelection(), gNoRender, gToolMgr, LLPrimitive::isAvatar(), LLViewerObject::mID, NULL, LLTool::stopEditing(), and TRUE.

Referenced by process_kill_object().

void LLSelectMgr::renderSilhouettes ( BOOL  for_hud  ) 

Definition at line 4676 of file llselectmgr.cpp.

References LLViewerImage::bindTexture(), LLKeyboard::currentMask(), depth, f, FALSE, gAgent, gCamera, LLCamera::getAspect(), LLAgent::getAvatarObject(), LLBBox::getCenterLocal(), LLBBox::getExtentLocal(), LLVOAvatar::getHUDBBox(), LLViewerObject::getID(), LLFloaterInspect::getSelectedUUID(), gKeyboard, glLoadMatrixf, glOrtho, glPopMatrix, glTranslatef, LLViewerObject::isHUDAttachment(), LLXform::isRoot(), LLXform::isRootEdit(), LLViewerObject::isSelected(), llmax(), MASK_CONTROL, mHighlightedObjects, LLVOAvatar::mHUDCurZoom, mRenderSilhouettes, mSelectedObjects, mSilhouetteImagep, LLVector3::mV, OGL_TO_CFR_ROTATION, LLColor4::red, S32, sContextSilhouetteColor, sHighlightChildColor, sHighlightInspectColor, sHighlightParentColor, sRenderHiddenSelections, sSilhouetteChildColor, sSilhouetteParentColor, stop_glerror, TRUE, and VX.

Referenced by LLViewerWindow::renderSelections().

void LLSelectMgr::repeatDuplicate (  ) 

Definition at line 2930 of file llselectmgr.cpp.

References deselectObjectAndFamily(), LLDuplicateData::flags, getSelection(), make_ui_sound(), mSelectedObjects, LLDuplicateData::offset, packDuplicate(), packDuplicateHeader(), SEND_ONLY_ROOTS, sendListToRegions(), sendMultipleUpdate(), UPD_POSITION, UPD_ROTATION, and LLVector3::zero.

Referenced by handle_repeat_duplicate().

void LLSelectMgr::requestGodInfo (  ) 

void LLSelectMgr::requestObjectPropertiesFamily ( LLViewerObject object  ) 

Definition at line 4098 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_ObjectData, _PREHASH_ObjectID, _PREHASH_RequestFlags, _PREHASH_RequestObjectPropertiesFamily, _PREHASH_SessionID, LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLViewerRegion::getHost(), LLAgent::getID(), LLViewerObject::getRegion(), LLAgent::getSessionID(), gMessageSystem, LLViewerObject::mID, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), and LLMessageSystem::sendReliable().

Referenced by selectHighlightedObjects(), and setHoverObject().

void LLSelectMgr::resetAgentHUDZoom (  ) 

Definition at line 5613 of file llselectmgr.cpp.

References gAgent, LLAgent::getAvatarObject(), LLVOAvatar::mHUDCurZoom, and LLVOAvatar::mHUDTargetZoom.

Referenced by updateSelectionCenter().

void LLSelectMgr::saveSelectedObjectColors (  ) 

Definition at line 3592 of file llselectmgr.cpp.

References f, func, getSelection(), and LLSelectNode::saveColors().

Referenced by LLPanelFace::onSelectColor().

void LLSelectMgr::saveSelectedObjectTextures (  ) 

Definition at line 3605 of file llselectmgr.cpp.

References f, FALSE, func, getSelection(), LLSelectNode::mValid, and sendSelect().

Referenced by LLPanelFace::onSelectTexture().

void LLSelectMgr::saveSelectedObjectTransform ( EActionType  action_type  ) 

Definition at line 3625 of file llselectmgr.cpp.

References a, f, func, gAgent, getBBoxOfSelection(), LLSelectNode::getObject(), LLXform::getParent(), LLAgent::getPosGlobalFromAgent(), LLXform::getPosition(), LLViewerObject::getPositionGlobal(), LLViewerObject::getRenderRotation(), LLXform::getRotation(), LLViewerObject::getRotationRegion(), LLXform::getScale(), getSelection(), LLXform::getWorldPosition(), LLXform::getWorldRotation(), LLViewerObject::isAttachment(), LLXform::isRootEdit(), LLViewerObject::mDrawable, LLSelectNode::mSavedPositionGlobal, LLSelectNode::mSavedPositionLocal, LLSelectNode::mSavedRotation, LLSelectNode::mSavedScale, mSavedSelectionBBox, mSelectedObjects, and LLSelectNode::saveTextureScaleRatios().

Referenced by addAsFamily(), addAsIndividual(), LLManipTranslate::handleMouseDownOnPart(), LLManipScale::handleMouseDownOnPart(), LLManipRotate::handleMouseDownOnPart(), LLManipTranslate::handleMouseUp(), LLManipScale::handleMouseUp(), LLManipRotate::handleMouseUp(), LLManipTranslate::handleSelect(), LLManipScale::handleSelect(), LLManipRotate::handleSelect(), selectHighlightedObjects(), selectObjectAndFamily(), selectObjectOnly(), and LLPanelObject::sendScale().

void LLSelectMgr::selectDelete (  ) 

Definition at line 2596 of file llselectmgr.cpp.

References LLViewerWindow::alertXml(), confirmDelete(), convertTransient(), FALSE, getSelection(), gViewerWindow, make_ui_sound(), S32, and TRUE.

Referenced by doDelete().

void LLSelectMgr::selectDuplicate ( const LLVector3 offset,
BOOL  select_copy 
)

Definition at line 2897 of file llselectmgr.cpp.

References deselectAll(), LLDuplicateData::flags, FLAGS_CREATE_SELECTED, getSelection(), make_ui_sound(), mSelectedObjects, LLDuplicateData::offset, packDuplicate(), packDuplicateHeader(), SEND_ONLY_ROOTS, sendListToRegions(), and TRUE.

Referenced by duplicate(), handle_duplicate_in_place(), and LLManipTranslate::handleHover().

void LLSelectMgr::selectDuplicateOnRay ( const LLVector3 ray_start_region,
const LLVector3 ray_end_region,
BOOL  bypass_raycast,
BOOL  ray_end_is_intersection,
const LLUUID ray_target_id,
BOOL  copy_centers,
BOOL  copy_rotates,
BOOL  select_copy 
)

Definition at line 3016 of file llselectmgr.cpp.

References deselectAll(), FLAGS_CREATE_SELECTED, make_ui_sound(), LLDuplicateOnRayData::mBypassRaycast, LLDuplicateOnRayData::mCopyCenters, LLDuplicateOnRayData::mCopyRotates, LLDuplicateOnRayData::mFlags, LLDuplicateOnRayData::mRayEndIsIntersection, LLDuplicateOnRayData::mRayEndRegion, LLDuplicateOnRayData::mRayStartRegion, LLDuplicateOnRayData::mRayTargetID, mSelectedObjects, packDuplicateOnRayHead(), packObjectLocalID(), SEND_ONLY_ROOTS, and sendListToRegions().

Referenced by add_duplicate().

void LLSelectMgr::selectForceDelete (  ) 

Definition at line 2760 of file llselectmgr.cpp.

References packDeleteHeader(), packObjectLocalID(), SEND_ONLY_ROOTS, sendListToRegions(), and TRUE.

Referenced by handle_force_delete().

BOOL LLSelectMgr::selectGetAggregatePermissions ( LLAggregatePermissions ag_perm  ) 

Definition at line 2824 of file llselectmgr.cpp.

References LLAggregatePermissions::aggregate(), FALSE, first, getSelection(), and TRUE.

Referenced by handle_buy_object().

BOOL LLSelectMgr::selectGetAggregateTexturePermissions ( LLAggregatePermissions ag_perm  ) 

Definition at line 2853 of file llselectmgr.cpp.

References LLAggregatePermissions::aggregate(), FALSE, first, getSelection(), and TRUE.

Referenced by LLPanelFace::getState(), LLPanelObject::postBuild(), and LLPanelFace::postBuild().

BOOL LLSelectMgr::selectGetAllRootsValid (  ) 

Definition at line 2098 of file llselectmgr.cpp.

References FALSE, getSelection(), and TRUE.

Referenced by handle_buy_object(), LLToolsEnableUnlink::handleEvent(), LLToolsLink::handleEvent(), and LLToolsEnableLink::handleEvent().

BOOL LLSelectMgr::selectGetAllValid (  ) 

Definition at line 2117 of file llselectmgr.cpp.

References FALSE, getSelection(), and TRUE.

Referenced by LLToolPie::selectionPropertiesReceived().

BOOL LLSelectMgr::selectGetCategory ( LLCategory category  ) 

BOOL LLSelectMgr::selectGetCreator ( LLUUID id,
LLString name 
)

Definition at line 2230 of file llselectmgr.cpp.

References DB_FIRST_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, FALSE, first, gCacheName, LLCacheName::getName(), getSelection(), LLUUID::isNull(), and TRUE.

Referenced by LLPanelPermissions::refresh(), and LLFloaterTrustNetRate::show().

BOOL LLSelectMgr::selectGetGroup ( LLUUID id  ) 

Definition at line 2425 of file llselectmgr.cpp.

References FALSE, first, getSelection(), LLUUID::isNull(), and TRUE.

Referenced by callback_deed_to_group(), enable_deed_object_to_group(), LLPanelContents::getState(), handle_deed_object_to_group(), LLPanelPermissions::onClickOwner(), and LLPanelPermissions::refresh().

BOOL LLSelectMgr::selectGetLastOwner ( LLUUID id,
LLString name 
)

Definition at line 2360 of file llselectmgr.cpp.

References DB_FIRST_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, FALSE, first, gCacheName, LLCacheName::getName(), getSelection(), LLUUID::isNull(), and TRUE.

Referenced by LLPanelPermissions::refresh().

BOOL LLSelectMgr::selectGetModify (  ) 

Definition at line 2136 of file llselectmgr.cpp.

References FALSE, getSelection(), LLViewerObject::permModify(), and TRUE.

Referenced by LLPanelPermissions::refresh().

BOOL LLSelectMgr::selectGetOwner ( LLUUID id,
LLString name 
)

Definition at line 2287 of file llselectmgr.cpp.

References DB_FIRST_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, FALSE, first, gCacheName, LLCacheName::getName(), getSelection(), LLUUID::isNull(), and TRUE.

Referenced by LLPanelVolume::getState(), LLPanelObject::getState(), handle_buy_object(), LLToolsLink::handleEvent(), LLPanelPermissions::onClickGroup(), LLPanelObjectTools::onClickSetBySelection(), LLPanelPermissions::refresh(), LLFloaterTrustNetRate::show(), LLFloaterBuyContents::show(), and LLFloaterBuy::show().

BOOL LLSelectMgr::selectGetOwnershipCost ( S32 cost  ) 

Definition at line 2561 of file llselectmgr.cpp.

References mSelectedObjects.

BOOL LLSelectMgr::selectGetPerm ( U8  which_perm,
U32 mask_on,
U32 mask_off 
)

Definition at line 2497 of file llselectmgr.cpp.

References FALSE, getSelection(), mask, PERM_BASE, PERM_EVERYONE, PERM_GROUP, PERM_NEXT_OWNER, PERM_OWNER, and TRUE.

Referenced by LLPanelObject::getState(), and LLPanelPermissions::refresh().

BOOL LLSelectMgr::selectGetPermissions ( LLPermissions perm  ) 

Definition at line 2566 of file llselectmgr.cpp.

References LLPermissions::accumulate(), FALSE, first, getSelection(), and TRUE.

Referenced by enable_deed_object_to_group(), and handle_buy_object().

BOOL LLSelectMgr::selectGetRootsCopy (  ) 

Definition at line 2207 of file llselectmgr.cpp.

References FALSE, getSelection(), LLViewerObject::permCopy(), and TRUE.

Referenced by LLPanelPermissions::refresh().

BOOL LLSelectMgr::selectGetRootsModify (  ) 

Definition at line 2159 of file llselectmgr.cpp.

References FALSE, getSelection(), LLViewerObject::permModify(), and TRUE.

Referenced by LLToolsLink::handleEvent(), and LLPanelPermissions::refresh().

BOOL LLSelectMgr::selectGetRootsTransfer (  ) 

Definition at line 2184 of file llselectmgr.cpp.

References FALSE, getSelection(), LLViewerObject::permTransfer(), and TRUE.

Referenced by LLPanelPermissions::refresh().

BOOL LLSelectMgr::selectGetSaleInfo ( LLSaleInfo sale_info  ) 

Definition at line 2795 of file llselectmgr.cpp.

References LLSaleInfo::accumulate(), FALSE, first, getSelection(), and TRUE.

Referenced by handle_buy(), LLPanelPermissions::onCommitClickAction(), and LLPanelPermissions::refresh().

LLObjectSelectionHandle LLSelectMgr::selectHighlightedObjects (  ) 

Definition at line 915 of file llselectmgr.cpp.

References canSelectObject(), gEditMenuHandler, getHighlightedObjects(), LLSelectNode::getObject(), getSelectTypeForObject(), LLXform::isRootEdit(), LLViewerObject::isSelected(), mHighlightedObjects, mSelectedObjects, NULL, requestObjectPropertiesFamily(), saveSelectedObjectTransform(), SELECT_ACTION_TYPE_PICK, sendSelect(), LLViewerObject::setSelected(), TRUE, unhighlightAll(), updatePointAt(), and updateSelectionCenter().

Referenced by LLToolSelectRect::handleMouseUp().

BOOL LLSelectMgr::selectionAllPCode ( LLPCode  code  ) 

Definition at line 1771 of file llselectmgr.cpp.

References f, FALSE, func, LLPrimitive::getPCode(), getSelection(), and t.

Referenced by LLPanelVolume::getState(), LLPanelObject::getState(), LLPanelContents::getState(), LLPanelPermissions::refresh(), LLFloaterTools::refresh(), and LLFloaterTelehub::refresh().

void LLSelectMgr::selectionDump (  ) 

Definition at line 3579 of file llselectmgr.cpp.

References LLViewerObject::dump(), f, func, and getSelection().

Referenced by print_object_info().

BOOL LLSelectMgr::selectionGetClickAction ( U8 out_action  ) 

Definition at line 1832 of file llselectmgr.cpp.

References f, FALSE, func, LLViewerObject::getClickAction(), getSelection(), mSelectedObjects, and t.

Referenced by LLPanelPermissions::onCommitClickAction(), LLPanelPermissions::refresh(), and LLPanelPermissions::setAllSaleInfo().

bool LLSelectMgr::selectionGetIncludeInSearch ( bool *  include_in_search_out  ) 

Definition at line 1790 of file llselectmgr.cpp.

References FALSE, LLViewerObject::getIncludeInSearch(), getSelection(), and mSelectedObjects.

Referenced by LLPanelPermissions::refresh().

void LLSelectMgr::selectionResetRotation (  ) 

Definition at line 1951 of file llselectmgr.cpp.

References f, func, getSelection(), gPipeline, LLPipeline::markMoved(), LLViewerObject::mDrawable, LLPointer< Type >::notNull(), LLViewerObject::sendRotationUpdate(), LLViewerObject::setRotation(), and TRUE.

Referenced by click_popup_rotate_reset().

void LLSelectMgr::selectionRevertColors (  ) 

Definition at line 1505 of file llselectmgr.cpp.

References f, getSelection(), LLSelectNode::mSavedColors, mSelectedObjects, LLViewerObject::permModify(), S32, and LLViewerObject::setTEColor().

Referenced by LLPanelFace::onCancelColor().

BOOL LLSelectMgr::selectionRevertTextures (  ) 

Definition at line 1532 of file llselectmgr.cpp.

References f, FALSE, LLViewerImageList::getImage(), getSelection(), gImageList, LLSelectNode::mSavedTextures, mSelectedObjects, LLViewerObject::permModify(), S32, and LLViewerObject::setTEImage().

Referenced by LLPanelFace::onCancelTexture().

void LLSelectMgr::selectionRotateAroundZ ( F32  degrees  ) 

Definition at line 1970 of file llselectmgr.cpp.

References DEG_TO_RAD, f, func, LLViewerObject::getRotationEdit(), getSelection(), gPipeline, LLPipeline::markMoved(), LLViewerObject::mDrawable, LLPointer< Type >::notNull(), LLViewerObject::sendRotationUpdate(), LLViewerObject::setRotation(), and TRUE.

Referenced by click_popup_rotate_left(), and click_popup_rotate_right().

void LLSelectMgr::selectionSetAlphaOnly ( const F32  alpha  ) 

Definition at line 1481 of file llselectmgr.cpp.

References a, f, LLTextureEntry::getColor(), getSelection(), LLPrimitive::getTE(), LLColor4::mV, LLViewerObject::permModify(), S32, LLViewerObject::setTEColor(), and VALPHA.

Referenced by LLPanelFace::sendAlpha().

void LLSelectMgr::selectionSetBumpmap ( U8  bumpmap  ) 

Definition at line 1569 of file llselectmgr.cpp.

References b, f, getSelection(), LLViewerObject::permModify(), S32, and LLViewerObject::setTEBumpmap().

Referenced by LLPanelFace::sendBump().

void LLSelectMgr::selectionSetClickAction ( U8  action  ) 

Definition at line 1860 of file llselectmgr.cpp.

References f, func, getSelection(), packAgentAndSessionID(), packObjectClickAction(), SEND_INDIVIDUALS, sendListToRegions(), LLViewerObject::setClickAction(), and t.

Referenced by LLPanelPermissions::onCommitClickAction(), LLPanelVolume::sendIsFlexible(), and LLPanelPermissions::setAllSaleInfo().

void LLSelectMgr::selectionSetColor ( const LLColor4 color  ) 

Definition at line 1430 of file llselectmgr.cpp.

References c, f, getSelection(), LLViewerObject::permModify(), S32, and LLViewerObject::setTEColor().

void LLSelectMgr::selectionSetColorOnly ( const LLColor4 color  ) 

Definition at line 1454 of file llselectmgr.cpp.

References c, f, LLTextureEntry::getColor(), getSelection(), LLPrimitive::getTE(), LLColor4::mV, LLViewerObject::permModify(), S32, LLViewerObject::setTEColor(), and VALPHA.

Referenced by LLPanelFace::sendColor().

void LLSelectMgr::selectionSetFullbright ( U8  fullbright  ) 

Definition at line 1636 of file llselectmgr.cpp.

References f, g, LLPrimitive::getMaterial(), getSelection(), LL_MCODE_GLASS, LL_MCODE_LIGHT, LL_MCODE_MASK, LLViewerObject::permModify(), S32, LLViewerObject::sendMaterialUpdate(), LLViewerObject::sendTEUpdate(), LLViewerObject::setMaterial(), LLViewerObject::setTEFullbright(), and t.

Referenced by LLPanelFace::sendFullbright().

void LLSelectMgr::selectionSetImage ( const LLUUID imageid  ) 

Definition at line 1355 of file llselectmgr.cpp.

References LLPermissions::allowOperationBy(), LLHUDManager::createViewerEffect(), LLToolDragAndDrop::dropTextureAllFaces(), LLToolDragAndDrop::dropTextureOneFace(), f, FALSE, g, gAgent, LLAgent::getAvatarObject(), LLAgent::getEffectColor(), LLAgent::getID(), LLViewerImageList::getImage(), LLInventoryModel::getItem(), LLInventoryItem::getPermissions(), getSelection(), gHUDManager, gImageList, gInventory, LL_HUD_DUR_SHORT, LLHUDObject::LL_HUD_EFFECT_BEAM, llendl, llwarns, mSelectedObjects, LLUUID::null, PERM_COPY, S32, LLViewerObject::sendTEUpdate(), LLHUDEffect::setColor(), LLHUDEffect::setDuration(), LLHUDObject::setSourceObject(), LLHUDEffectSpiral::setTargetObject(), LLViewerObject::setTEImage(), LLToolDragAndDrop::SOURCE_AGENT, and TRUE.

Referenced by LLPanelFace::sendTexture().

void LLSelectMgr::selectionSetIncludeInSearch ( bool  include_in_search  ) 

Definition at line 1815 of file llselectmgr.cpp.

References getSelection(), NULL, packAgentAndSessionID(), packObjectIncludeInSearch(), SEND_ONLY_ROOTS, sendListToRegions(), and LLViewerObject::setIncludeInSearch().

Referenced by LLPanelPermissions::onCommitIncludeInSearch().

void LLSelectMgr::selectionSetMaterial ( U8  material  ) 

Definition at line 1749 of file llselectmgr.cpp.

References f, LLPrimitive::getMaterial(), getSelection(), LL_MCODE_MASK, LLViewerObject::permModify(), LLViewerObject::sendMaterialUpdate(), LLViewerObject::setMaterial(), and t.

Referenced by LLPanelObject::onCommitMaterial().

void LLSelectMgr::selectionSetMediaTypeAndURL ( U8  media_type,
const std::string &  media_url 
)

Definition at line 1682 of file llselectmgr.cpp.

References a, b, f, g, getSelection(), LLViewerObject::MEDIA_TYPE_WEB_PAGE, LLTextureEntry::MF_NONE, LLTextureEntry::MF_WEB_PAGE, LLViewerObject::permModify(), S32, LLViewerObject::sendTEUpdate(), LLViewerObject::setMediaType(), LLViewerObject::setMediaURL(), LLViewerObject::setTEMediaFlags(), and t.

void LLSelectMgr::selectionSetObjectCategory ( const LLCategory category  ) 

Definition at line 3393 of file llselectmgr.cpp.

References mSelectedObjects, packAgentAndSessionID(), packObjectCategory(), SEND_ONLY_ROOTS, and sendListToRegions().

void LLSelectMgr::selectionSetObjectDescription ( const LLString desc  ) 

Definition at line 3372 of file llselectmgr.cpp.

References mSelectedObjects, packAgentAndSessionID(), packObjectDescription(), SEND_INDIVIDUALS, SEND_ONLY_ROOTS, and sendListToRegions().

Referenced by LLPreview::onCommit(), and LLPanelPermissions::onCommitDesc().

void LLSelectMgr::selectionSetObjectName ( const LLString name  ) 

Definition at line 3351 of file llselectmgr.cpp.

References mSelectedObjects, packAgentAndSessionID(), packObjectName(), SEND_INDIVIDUALS, SEND_ONLY_ROOTS, and sendListToRegions().

Referenced by LLPanelPermissions::onCommitName(), and LLObjectBridge::renameItem().

void LLSelectMgr::selectionSetObjectPermissions ( U8  perm_field,
BOOL  set,
U32  perm_mask,
BOOL  override = FALSE 
)

Definition at line 3237 of file llselectmgr.cpp.

References LLPermData::mField, LLPermData::mMask, LLPermData::mOverride, LLPermData::mSet, packPermissions(), packPermissionsHead(), SEND_ONLY_ROOTS, and sendListToRegions().

Referenced by handle_object_lock(), handle_object_owner_permissive(), LLPanelObject::onCommitLock(), and LLPanelPermissions::onCommitPerm().

void LLSelectMgr::selectionSetObjectSaleInfo ( const LLSaleInfo sale_info  ) 

Definition at line 3405 of file llselectmgr.cpp.

References mSelectedObjects, packAgentAndSessionID(), packObjectSaleInfo(), SEND_ONLY_ROOTS, and sendListToRegions().

Referenced by LLPanelPermissions::setAllSaleInfo().

void LLSelectMgr::selectionSetShiny ( U8  shiny  ) 

Definition at line 1614 of file llselectmgr.cpp.

References f, getSelection(), LLViewerObject::permModify(), S32, LLViewerObject::setTEShiny(), and t.

Referenced by LLPanelFace::sendShiny().

void LLSelectMgr::selectionSetTexGen ( U8  texgen  ) 

Definition at line 1591 of file llselectmgr.cpp.

References f, getSelection(), LLViewerObject::permModify(), S32, LLViewerObject::setTETexGen(), and t.

Referenced by LLPanelFace::sendTexGen().

void LLSelectMgr::selectionTexScaleAutofit ( F32  repeats_per_meter  ) 

Definition at line 1995 of file llselectmgr.cpp.

References f, LLXform::getScale(), getSelection(), LLPrimitive::getTESTAxes(), LLVector3::mV, LLViewerObject::permModify(), S32, LLViewerObject::setTEScale(), t, and TRUE.

Referenced by LLPanelFace::onClickApply().

void LLSelectMgr::selectionUpdateCastShadows ( BOOL  cast_shadows  ) 

Definition at line 3712 of file llselectmgr.cpp.

References FLAGS_CAST_SHADOWS, func, and getSelection().

Referenced by LLPanelObject::sendCastShadows().

void LLSelectMgr::selectionUpdatePhantom ( BOOL  is_ghost  ) 

Definition at line 3706 of file llselectmgr.cpp.

References FLAGS_PHANTOM, func, and getSelection().

Referenced by LLPanelVolume::sendIsFlexible(), and LLPanelObject::sendIsPhantom().

void LLSelectMgr::selectionUpdatePhysics ( BOOL  use_physics  ) 

Definition at line 3694 of file llselectmgr.cpp.

References FLAGS_USE_PHYSICS, func, and getSelection().

Referenced by LLPanelObject::sendIsPhysical().

void LLSelectMgr::selectionUpdateTemporary ( BOOL  is_temporary  ) 

Definition at line 3700 of file llselectmgr.cpp.

References FLAGS_TEMPORARY_ON_REZ, func, and getSelection().

Referenced by LLPanelObject::sendIsTemporary().

BOOL LLSelectMgr::selectIsForSale ( S32 price  ) 

Definition at line 2773 of file llselectmgr.cpp.

References FALSE, getSelection(), and TRUE.

Referenced by LLPanelPermissions::refresh().

BOOL LLSelectMgr::selectIsGroupOwned (  ) 

Definition at line 2468 of file llselectmgr.cpp.

References FALSE, getSelection(), and TRUE.

Referenced by LLPanelPermissions::onClickOwner(), and LLPanelPermissions::refresh().

LLObjectSelectionHandle LLSelectMgr::selectObjectAndFamily ( const std::vector< LLViewerObject * > &  object_list,
BOOL  send_to_sim = TRUE 
)

Definition at line 432 of file llselectmgr.cpp.

References addAsFamily(), canSelectObject(), dialog_refresh_all(), FALSE, gEditMenuHandler, LLControlGroup::getBOOL(), gSavedSettings, llassert, mSelectedObjects, NULL, promoteSelectionToRoot(), saveSelectedObjectTransform(), SELECT_ACTION_TYPE_PICK, sendSelect(), LLControlGroup::setBOOL(), updatePointAt(), updateSelectionCenter(), and LLVector3::zero.

LLObjectSelectionHandle LLSelectMgr::selectObjectAndFamily ( LLViewerObject object,
BOOL  add_to_end = FALSE 
)

Definition at line 352 of file llselectmgr.cpp.

References addAsFamily(), LLViewerObject::addThisAndNonJointChildren(), canSelectObject(), dialog_refresh_all(), FALSE, gEditMenuHandler, LLControlGroup::getBOOL(), LLXform::getParent(), gSavedSettings, LLPrimitive::isAvatar(), LLViewerObject::isJointChild(), LLViewerObject::isSelected(), llassert, mSelectedObjects, NULL, promoteSelectionToRoot(), LLViewerObject::resetRot(), saveSelectedObjectTransform(), SELECT_ACTION_TYPE_PICK, sendSelect(), LLPrimitive::setAcceleration(), LLControlGroup::setBOOL(), LLPrimitive::setVelocity(), updatePointAt(), updateSelectionCenter(), and LLVector3::zero.

Referenced by LLViewerObjectList::findOrphans(), LLToolSelect::handleObjectSelection(), LLViewerObjectList::processUpdateCore(), promoteSelectionToRoot(), and LLViewerObject::removeChild().

LLObjectSelectionHandle LLSelectMgr::selectObjectOnly ( LLViewerObject object,
S32  face = SELECT_ALL_TES 
)

Definition at line 289 of file llselectmgr.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_ObjectData, _PREHASH_ObjectLocalID, _PREHASH_ObjectSelect, _PREHASH_SessionID, addAsIndividual(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), canSelectObject(), gAgent, gEditMenuHandler, LLViewerRegion::getHost(), LLAgent::getID(), LLViewerObject::getLocalID(), LLViewerObject::getRegion(), LLAgent::getSessionID(), gMessageSystem, LLViewerObject::isSelected(), llassert, mSelectedObjects, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), NULL, LLViewerObject::resetRot(), saveSelectedObjectTransform(), SELECT_ACTION_TYPE_PICK, LLMessageSystem::sendReliable(), LLPrimitive::setAcceleration(), LLPrimitive::setVelocity(), updatePointAt(), updateSelectionCenter(), and LLVector3::zero.

Referenced by demoteSelectionToIndividuals(), LLToolSelect::handleObjectSelection(), LLToolIndividual::handleSelect(), LLToolIndividual::pickCallback(), and LLToolFace::pickCallback().

void LLSelectMgr::sendAttach ( U8  attachment_point  ) 

Definition at line 3420 of file llselectmgr.cpp.

References deselectAll(), gAgent, LLAgent::getAvatarObject(), gToolMgr, LLToolMgr::inEdit(), LLVOAvatar::mAttachmentPoints, mSelectedObjects, packAgentIDAndSessionAndAttachment(), packObjectIDAndRotation(), SELECT_TYPE_WORLD, SEND_ONLY_ROOTS, and sendListToRegions().

Referenced by near_attach_object().

void LLSelectMgr::sendBuy ( const LLUUID buyer_id,
const LLUUID category_id,
const LLSaleInfo  sale_info 
)

Definition at line 3200 of file llselectmgr.cpp.

References LLBuyData::mCategoryID, LLBuyData::mSaleInfo, packAgentGroupAndCatID(), packBuyObjectIDs(), SEND_ONLY_ROOTS, and sendListToRegions().

Referenced by LLFloaterBuyContents::onClickBuy(), and LLFloaterBuy::onClickBuy().

void LLSelectMgr::sendDelink (  ) 

Definition at line 3497 of file llselectmgr.cpp.

References mSelectedObjects, NULL, packAgentAndSessionID(), packObjectLocalID(), SEND_INDIVIDUALS, and sendListToRegions().

Referenced by LLToolsUnlink::handleEvent().

void LLSelectMgr::sendDetach (  ) 

Definition at line 3447 of file llselectmgr.cpp.

References mSelectedObjects, NULL, packAgentAndSessionID(), packObjectLocalID(), SELECT_TYPE_WORLD, SEND_ONLY_ROOTS, and sendListToRegions().

Referenced by LLAttachmentDetach::handleEvent().

void LLSelectMgr::sendDropAttachment (  ) 

Definition at line 3463 of file llselectmgr.cpp.

References mSelectedObjects, NULL, packAgentAndSessionID(), packObjectLocalID(), SELECT_TYPE_WORLD, SEND_ONLY_ROOTS, and sendListToRegions().

Referenced by LLAttachmentDrop::handleEvent().

void LLSelectMgr::sendGodlikeRequest ( const LLString request,
const LLString parameter 
)

Definition at line 1887 of file llselectmgr.cpp.

References gAgent, gMessageSystem, LLAgent::isGodlike(), mSelectedObjects, LLMessageSystem::newMessage(), packGodlikeHead(), packObjectIDAsParam(), param, request(), SEND_ONLY_ROOTS, sendListToRegions(), and LLAgent::sendReliableMessage().

Referenced by handle_god_request_avatar_geometry(), handle_god_request_havok(), handle_object_asset_ids(), LLFloaterTelehub::onClickAddSpawnPoint(), LLFloaterTelehub::onClickConnect(), LLFloaterTelehub::onClickDisconnect(), LLPanelRequestTools::onClickRequest(), and LLFloaterTelehub::sendTelehubInfoRequest().

void LLSelectMgr::sendGroup ( const LLUUID group_id  ) 

Definition at line 3178 of file llselectmgr.cpp.

References packAgentAndSessionAndGroupID(), packObjectLocalID(), SEND_ONLY_ROOTS, and sendListToRegions().

Referenced by LLPanelPermissions::cbGroupID().

void LLSelectMgr::sendLink (  ) 

Definition at line 3482 of file llselectmgr.cpp.

References mSelectedObjects, NULL, packAgentAndSessionID(), packObjectLocalID(), SEND_ONLY_ROOTS, and sendListToRegions().

Referenced by LLToolsLink::handleEvent().

void LLSelectMgr::sendListToRegions ( const LLString message_name,
void(*)(void *user_data)  pack_header,
void(*)(LLSelectNode *node, void *user_data)  pack_body,
void user_data,
ESendType  send_type 
) [private]

Definition at line 3924 of file llselectmgr.cpp.

References LLMessageSystem::clearMessage(), f, FALSE, func, LLMessageSystem::getCurrentSendTotal(), LLViewerRegion::getHost(), LLSelectNode::getObject(), LLViewerObject::getRegion(), getSelection(), gMessageSystem, LLXform::isRootEdit(), LLMessageSystem::isSendFull(), llendl, llerrs, MAX_OBJECTS_PER_PACKET, LLSelectNode::mLastPositionLocal, LLSelectNode::mLastRotation, LLSelectNode::mLastScale, n, LLMessageSystem::newMessage(), NULL, S32, SEND_CHILDREN_FIRST, SEND_INDIVIDUALS, SEND_ONLY_ROOTS, SEND_ROOTS_FIRST, LLMessageSystem::sendReliable(), LLVector3::setVec(), and TRUE.

Referenced by confirmDelete(), deselectAll(), redo(), repeatDuplicate(), selectDuplicate(), selectDuplicateOnRay(), selectForceDelete(), selectionSetClickAction(), selectionSetIncludeInSearch(), selectionSetObjectCategory(), selectionSetObjectDescription(), selectionSetObjectName(), selectionSetObjectPermissions(), selectionSetObjectSaleInfo(), sendAttach(), sendBuy(), sendDelink(), sendDetach(), sendDropAttachment(), sendGodlikeRequest(), sendGroup(), sendLink(), sendMultipleUpdate(), sendOwner(), sendSelect(), and undo().

void LLSelectMgr::sendMultipleUpdate ( U32  type  ) 

Definition at line 3079 of file llselectmgr.cpp.

References LLControlGroup::getBOOL(), getTEMode(), gSavedSettings, packAgentAndSessionID(), packMultipleUpdate(), SEND_ONLY_ROOTS, SEND_ROOTS_FIRST, sendListToRegions(), UPD_LINKED_SETS, and UPD_NONE.

Referenced by LLToolsSnapObjectXY::handleEvent(), LLManipTranslate::handleMouseUp(), LLManipScale::handleMouseUp(), LLManipRotate::handleMouseUp(), repeatDuplicate(), LLPanelObject::sendPosition(), LLPanelObject::sendRotation(), LLPanelObject::sendScale(), and LLManipScale::sendUpdates().

void LLSelectMgr::sendOwner ( const LLUUID owner_id,
const LLUUID group_id,
BOOL  override = FALSE 
)

Definition at line 3147 of file llselectmgr.cpp.

References LLOwnerData::group_id, LLOwnerData::override, LLOwnerData::owner_id, packObjectLocalID(), packOwnerHead(), SEND_ONLY_ROOTS, and sendListToRegions().

Referenced by callback_deed_to_group(), handle_deed_object_to_group(), handle_force_unlock(), handle_object_owner_self(), LLPanelPermissions::onClickClaim(), and LLPanelPermissions::onClickRelease().

void LLSelectMgr::sendSelect (  ) 

Definition at line 3551 of file llselectmgr.cpp.

References mSelectedObjects, NULL, packAgentAndSessionID(), packObjectLocalID(), SEND_INDIVIDUALS, and sendListToRegions().

Referenced by saveSelectedObjectTextures(), selectHighlightedObjects(), and selectObjectAndFamily().

void LLSelectMgr::setAgentHUDZoom ( F32  target_zoom,
F32  current_zoom 
)

Definition at line 5631 of file llselectmgr.cpp.

References gAgent, LLAgent::getAvatarObject(), LLVOAvatar::mHUDCurZoom, and LLVOAvatar::mHUDTargetZoom.

Referenced by LLToolSelect::handleObjectSelection().

BOOL LLSelectMgr::setForceSelection ( BOOL  force  ) 

Definition at line 5607 of file llselectmgr.cpp.

References mForceSelection.

Referenced by LLToolSelect::handleObjectSelection(), and LLFloaterInspect::show().

void LLSelectMgr::setGridMode ( EGridMode  mode  ) 

Definition at line 1017 of file llselectmgr.cpp.

References FALSE, gSavedSettings, mGridMode, mGridValid, LLControlGroup::setS32(), and updateSelectionCenter().

Referenced by commit_grid_mode(), and LLToolsUseSelectionForGrid::handleEvent().

LLObjectSelectionHandle LLSelectMgr::setHoverObject ( LLViewerObject objectp  ) 

Definition at line 766 of file llselectmgr.cpp.

References LLViewerObject::addThisAndNonJointChildren(), FALSE, gAgentID, LLPrimitive::getPCode(), LLViewerObject::getRootEdit(), LLViewerObject::LL_VO_SURFACE_PATCH, mHoverObjects, LLViewerObject::mID, NULL, and requestObjectPropertiesFamily().

Referenced by LLHoverView::cancelHover(), and LLHoverView::pickCallback().

void LLSelectMgr::setTEMode ( BOOL  b  )  [inline]

Definition at line 459 of file llselectmgr.h.

References mTEMode.

Referenced by LLToolFace::handleDeselect(), and LLToolFace::handleSelect().

BOOL LLSelectMgr::shouldShowSelection (  )  [inline]

Definition at line 461 of file llselectmgr.h.

References mShowSelection.

Referenced by LLAgent::getRenderState(), and LLVOAvatar::needsRenderBeam().

void LLSelectMgr::undo (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 5466 of file llselectmgr.cpp.

References gAgent, LLControlGroup::getBOOL(), LLAgent::getGroupID(), gSavedSettings, packAgentAndSessionAndGroupID(), packObjectID(), SEND_CHILDREN_FIRST, SEND_ONLY_ROOTS, and sendListToRegions().

void LLSelectMgr::unhighlightAll (  ) 

Definition at line 909 of file llselectmgr.cpp.

References mHighlightedObjects, and mRectSelectedObjects.

Referenced by LLFloaterSellLandUI::callbackHighlightTransferable(), LLPanelLandObjects::callbackReturnGroupObjects(), LLPanelLandObjects::callbackReturnOtherObjects(), LLPanelLandObjects::callbackReturnOwnerList(), LLPanelLandObjects::callbackReturnOwnerObjects(), deselectHighlightedObjects(), LLToolDragAndDrop::endDrag(), LLToolPipette::handleMouseUp(), LLFloaterLand::onClose(), LLToolPipette::pickCallback(), LLToolDragAndDrop::pickCallback(), LLAgent::resetView(), selectHighlightedObjects(), and send_parcel_select_objects().

void LLSelectMgr::unhighlightObjectAndFamily ( LLViewerObject objectp  ) 

Definition at line 889 of file llselectmgr.cpp.

References LLXform::getRoot(), LLViewerObject::mChildList, and unhighlightObjectOnly().

void LLSelectMgr::unhighlightObjectOnly ( LLViewerObject objectp  ) 

Definition at line 879 of file llselectmgr.cpp.

References LLPrimitive::getPCode(), LL_PCODE_VOLUME, and mRectSelectedObjects.

Referenced by LLToolSelectRect::handleRectangleSelection(), and unhighlightObjectAndFamily().

void LLSelectMgr::update (  ) 

Definition at line 228 of file llselectmgr.cpp.

References mSelectedObjects.

Referenced by idle().

void LLSelectMgr::updateEffects (  ) 

Definition at line 233 of file llselectmgr.cpp.

References LLObjectSelection::applyToObjects(), f, func, LLFrameTimer::getElapsedTimeF32(), gPipeline, LLPipeline::markMoved(), LLViewerObject::mDrawable, mEffectsTimer, mGridObjects, mSelectedObjects, and LLFrameTimer::reset().

Referenced by idle().

void LLSelectMgr::updatePointAt (  ) 

Definition at line 5409 of file llselectmgr.cpp.

References LLViewerObjectList::findObject(), gAgent, LLViewerObject::getRenderRotation(), gLastHitObjectID, gLastHitObjectOffset, gObjectList, LLViewerObject::isSelected(), LOOKAT_TARGET_CLEAR, LOOKAT_TARGET_SELECT, mSelectedObjects, mShowSelection, POINTAT_TARGET_CLEAR, POINTAT_TARGET_SELECT, LLAgent::setLookAt(), and LLAgent::setPointAt().

Referenced by LLVOAvatar::attachObject(), deselectAll(), deselectObjectAndFamily(), deselectObjectOnly(), selectHighlightedObjects(), selectObjectAndFamily(), and selectObjectOnly().

void LLSelectMgr::updateSelectionCenter (  ) 

Definition at line 5296 of file llselectmgr.cpp.

References LLBBox::addBBoxAgent(), LLVector3d::clearVec(), FALSE, gAgent, gAgentID, gEditMenuHandler, LLAgent::getAvatarObject(), LLViewerObject::getBoundingBoxAgent(), LLBBox::getCenterAgent(), LLToolMgr::getCurrentTool(), LLTool::getEditingPointGlobal(), LLAgent::getPosGlobalFromAgent(), LLViewerObject::getRootEdit(), getSelectTypeForObject(), gToolMgr, LLPrimitive::isAvatar(), LLViewerObject::isChild(), LLTool::isEditing(), LLViewerObject::isJointChild(), LLVector3d::magVecSquared(), LLVOAvatar::mHUDCurZoom, LLVOAvatar::mHUDTargetZoom, mLastSentSelectionCenterGlobal, mPauseRequest, mSelectedObjects, mSelectionBBox, mSelectionCenterGlobal, mShowSelection, LLUUID::null, NULL, overrideObjectUpdates(), LLCharacter::requestPause(), resetAgentHUDZoom(), SELECT_TYPE_ATTACHMENT, SELECT_TYPE_HUD, SELECT_TYPE_WORLD, and TRUE.

Referenced by addAsIndividual(), LLVOAvatar::attachObject(), deselectObjectAndFamily(), deselectObjectOnly(), LLManipScale::drag(), LLManipRotate::drag(), LLManipTranslate::handleHover(), LLToolGrab::handleHoverActive(), LLManipTranslate::handleMouseDownOnPart(), LLManipRotate::handleMouseUp(), LLToolGrab::handleObjectHit(), LLToolGrab::onMouseCaptureLost(), LLViewerObject::processUpdateMessage(), remove(), removeAll(), selectHighlightedObjects(), selectObjectAndFamily(), selectObjectOnly(), LLPanelObject::sendPosition(), setGridMode(), and LLAgent::setRegion().

void LLSelectMgr::updateSilhouettes (  ) 

Definition at line 4408 of file llselectmgr.cpp.

References canSelectObject(), LLXform::clearChanged(), f, func, gAgent, gCamera, generateSilhouette(), LLControlGroup::getBOOL(), LLAgent::getCameraPositionGlobal(), LLAgent::getCurrentCameraBuildOffset(), LLViewerImageList::getImage(), LLCoordFrame::getOrigin(), LLXform::getParent(), LLXform::getRoot(), LLViewerObject::getRootEdit(), getSelection(), LLControlGroup::getString(), gImageList, gSavedSettings, gViewerArt, LLViewerObject::isAttachment(), LLXform::isChanged(), LLPointer< Type >::isNull(), LLXform::isRoot(), LLXform::isRootEdit(), MAX_SILS_PER_FRAME, LLViewerObject::mChildList, LLViewerObject::mDrawable, mHighlightedObjects, LLSelectNode::mIndividualSelection, mLastCameraPos, LLXform::MOVED, mRectSelectedObjects, mSelectedObjects, mSilhouetteImagep, LLPointer< Type >::notNull(), S32, LLSelectNode::selectAllTEs(), LLXform::SILHOUETTE, SILHOUETTE_UPDATE_THRESHOLD_SQUARED, and TRUE.

Referenced by LLViewerWindow::renderSelections().

void LLSelectMgr::validateSelection (  ) 

Definition at line 5559 of file llselectmgr.cpp.

References canSelectObject(), deselectObjectOnly(), f, func, getSelection(), and gSelectMgr.

Referenced by LLToolPie::handleDeselect().


Member Data Documentation

LLFrameTimer LLSelectMgr::mEffectsTimer [private]

Definition at line 702 of file llselectmgr.h.

Referenced by updateEffects().

BOOL LLSelectMgr::mForceSelection [private]

Definition at line 703 of file llselectmgr.h.

Referenced by canSelectObject(), and setForceSelection().

EGridMode LLSelectMgr::mGridMode [private]

Definition at line 688 of file llselectmgr.h.

Referenced by getGrid(), getGridMode(), LLSelectMgr(), and setGridMode().

LLObjectSelection LLSelectMgr::mGridObjects [private]

Definition at line 684 of file llselectmgr.h.

Referenced by addGridObject(), clearGridObjects(), clearSelections(), getGrid(), and updateEffects().

LLVector3 LLSelectMgr::mGridOrigin [private]

Definition at line 686 of file llselectmgr.h.

Referenced by getGrid().

LLQuaternion LLSelectMgr::mGridRotation [private]

Definition at line 685 of file llselectmgr.h.

Referenced by getGrid().

LLVector3 LLSelectMgr::mGridScale [private]

Definition at line 687 of file llselectmgr.h.

Referenced by getGrid().

BOOL LLSelectMgr::mGridValid [private]

Definition at line 689 of file llselectmgr.h.

Referenced by getGrid(), LLSelectMgr(), and setGridMode().

LLObjectSelectionHandle LLSelectMgr::mHighlightedObjects [private]

Definition at line 681 of file llselectmgr.h.

Referenced by clearSelections(), dump(), getHighlightedObjects(), LLSelectMgr(), renderSilhouettes(), selectHighlightedObjects(), unhighlightAll(), and updateSilhouettes().

LLObjectSelectionHandle LLSelectMgr::mHoverObjects [private]

Definition at line 680 of file llselectmgr.h.

Referenced by clearSelections(), getHoverObjects(), LLSelectMgr(), and setHoverObject().

LLVector3d LLSelectMgr::mLastCameraPos [private]

Definition at line 698 of file llselectmgr.h.

Referenced by LLSelectMgr(), and updateSilhouettes().

LLVector3d LLSelectMgr::mLastSentSelectionCenterGlobal [private]

Definition at line 696 of file llselectmgr.h.

Referenced by deselectAll(), and updateSelectionCenter().

LLAnimPauseRequest LLSelectMgr::mPauseRequest [private]

Definition at line 705 of file llselectmgr.h.

Referenced by updateSelectionCenter().

std::set<LLPointer<LLViewerObject> > LLSelectMgr::mRectSelectedObjects [private]

Definition at line 682 of file llselectmgr.h.

Referenced by clearSelections(), deselectHighlightedObjects(), highlightObjectAndFamily(), highlightObjectOnly(), unhighlightAll(), unhighlightObjectOnly(), and updateSilhouettes().

BOOL LLSelectMgr::mRenderSilhouettes [private]

Definition at line 699 of file llselectmgr.h.

Referenced by enableSilhouette(), LLSelectMgr(), and renderSilhouettes().

LLBBox LLSelectMgr::mSavedSelectionBBox [private]

Definition at line 700 of file llselectmgr.h.

Referenced by getGrid(), getSavedBBoxOfSelection(), and saveSelectedObjectTransform().

LLObjectSelectionHandle LLSelectMgr::mSelectedObjects [private]

Definition at line 679 of file llselectmgr.h.

Referenced by addAsFamily(), addAsIndividual(), canDeselect(), canDoDelete(), canDuplicate(), canRedo(), canSelectObject(), canUndo(), clearSelections(), confirmDelete(), convertTransient(), deselectAll(), deselectAllIfTooFar(), deselectUnused(), dump(), getEditSelection(), getGrid(), getSelection(), LLSelectMgr(), remove(), removeAll(), renderSilhouettes(), repeatDuplicate(), saveSelectedObjectTransform(), selectDuplicate(), selectDuplicateOnRay(), selectGetOwnershipCost(), selectHighlightedObjects(), selectionGetClickAction(), selectionGetIncludeInSearch(), selectionRevertColors(), selectionRevertTextures(), selectionSetImage(), selectionSetObjectCategory(), selectionSetObjectDescription(), selectionSetObjectName(), selectionSetObjectSaleInfo(), selectObjectAndFamily(), selectObjectOnly(), sendAttach(), sendDelink(), sendDetach(), sendDropAttachment(), sendGodlikeRequest(), sendLink(), sendSelect(), update(), updateEffects(), updatePointAt(), updateSelectionCenter(), and updateSilhouettes().

LLBBox LLSelectMgr::mSelectionBBox [private]

Definition at line 694 of file llselectmgr.h.

Referenced by getBBoxOfSelection(), and updateSelectionCenter().

LLVector3d LLSelectMgr::mSelectionCenterGlobal [private]

Definition at line 693 of file llselectmgr.h.

Referenced by dump(), getSelectionCenterGlobal(), and updateSelectionCenter().

BOOL LLSelectMgr::mShowSelection [private]

Definition at line 697 of file llselectmgr.h.

Referenced by shouldShowSelection(), updatePointAt(), and updateSelectionCenter().

LLPointer<LLViewerImage> LLSelectMgr::mSilhouetteImagep [private]

Definition at line 678 of file llselectmgr.h.

Referenced by cleanup(), renderSilhouettes(), and updateSilhouettes().

BOOL LLSelectMgr::mTEMode [private]

Definition at line 692 of file llselectmgr.h.

Referenced by dump(), getTEMode(), LLSelectMgr(), and setTEMode().

LLColor4 LLSelectMgr::sContextSilhouetteColor [static]

Definition at line 354 of file llselectmgr.h.

Referenced by LLSelectMgr(), and renderSilhouettes().

F32 LLSelectMgr::sHighlightAlpha = 0.f [static]

Definition at line 345 of file llselectmgr.h.

Referenced by LLSelectMgr(), and LLSelectNode::renderOneSilhouette().

F32 LLSelectMgr::sHighlightAlphaTest = 0.f [static]

Definition at line 346 of file llselectmgr.h.

Referenced by LLSelectMgr().

LLColor4 LLSelectMgr::sHighlightChildColor [static]

Definition at line 352 of file llselectmgr.h.

Referenced by LLSelectMgr(), and renderSilhouettes().

LLColor4 LLSelectMgr::sHighlightInspectColor [static]

Definition at line 353 of file llselectmgr.h.

Referenced by LLSelectMgr(), and renderSilhouettes().

LLColor4 LLSelectMgr::sHighlightParentColor [static]

Definition at line 351 of file llselectmgr.h.

Referenced by LLSelectMgr(), and renderSilhouettes().

F32 LLSelectMgr::sHighlightThickness = 0.f [static]

Definition at line 342 of file llselectmgr.h.

Referenced by LLSelectMgr(), and LLSelectNode::renderOneSilhouette().

F32 LLSelectMgr::sHighlightUAnim = 0.f [static]

Definition at line 347 of file llselectmgr.h.

Referenced by LLSelectMgr(), and LLSelectNode::renderOneSilhouette().

F32 LLSelectMgr::sHighlightUScale = 0.f [static]

Definition at line 343 of file llselectmgr.h.

Referenced by LLSelectMgr(), and LLSelectNode::renderOneSilhouette().

F32 LLSelectMgr::sHighlightVAnim = 0.f [static]

Definition at line 348 of file llselectmgr.h.

Referenced by LLSelectMgr(), and LLSelectNode::renderOneSilhouette().

F32 LLSelectMgr::sHighlightVScale = 0.f [static]

Definition at line 344 of file llselectmgr.h.

Referenced by LLSelectMgr(), and LLSelectNode::renderOneSilhouette().

BOOL LLSelectMgr::sRectSelectInclusive = TRUE [static]

Definition at line 339 of file llselectmgr.h.

Referenced by LLToolsSelectBySurrounding::handleEvent(), LLToolSelectRect::handleRectangleSelection(), and saved_settings_to_globals().

BOOL LLSelectMgr::sRenderHiddenSelections = TRUE [static]

Definition at line 340 of file llselectmgr.h.

Referenced by LLToolsShowHiddenSelection::handleEvent(), LLSelectNode::renderOneSilhouette(), renderSilhouettes(), and saved_settings_to_globals().

BOOL LLSelectMgr::sRenderLightRadius = FALSE [static]

Definition at line 341 of file llselectmgr.h.

Referenced by LLToolsShowSelectionLightRadius::handleEvent(), LLSelectMgr(), LLViewerWindow::renderSelections(), and saved_settings_to_globals().

LLColor4 LLSelectMgr::sSilhouetteChildColor [static]

Definition at line 350 of file llselectmgr.h.

Referenced by LLSelectMgr(), and renderSilhouettes().

LLColor4 LLSelectMgr::sSilhouetteParentColor [static]

Definition at line 349 of file llselectmgr.h.

Referenced by LLSelectMgr(), and renderSilhouettes().


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