LLToolPie Class Reference

#include <lltoolpie.h>

Inheritance diagram for LLToolPie:

Inheritance graph
[legend]
Collaboration diagram for LLToolPie:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLToolPie ()
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleRightMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleRightMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual BOOL handleDoubleClick (S32 x, S32 y, MASK mask)
virtual void render ()
virtual void stopEditing ()
virtual void onMouseCaptureLost ()
virtual void handleDeselect ()
virtual LLToolgetOverrideTool (MASK mask)

Static Public Member Functions

static void leftMouseCallback (S32 x, S32 y, MASK mask)
static void rightMouseCallback (S32 x, S32 y, MASK mask)
static void selectionPropertiesReceived ()

Protected Member Functions

BOOL outsideSlop (S32 x, S32 y, S32 start_x, S32 start_y)
BOOL pickAndShowMenu (S32 x, S32 y, MASK mask, BOOL edit_menu)
BOOL useClickAction (BOOL always_show, MASK mask, LLViewerObject *object, LLViewerObject *parent)

Protected Attributes

BOOL mPieMouseButtonDown
BOOL mGrabMouseButtonDown
BOOL mHitLand
LLUUID mHitObjectID
BOOL mMouseOutsideSlop

Static Protected Attributes

static LLPointer< LLViewerObjectsClickActionObject
static U8 sClickAction = 0
static LLSafeHandle
< LLObjectSelection
sLeftClickSelection = NULL


Detailed Description

Definition at line 41 of file lltoolpie.h.


Constructor & Destructor Documentation

LLToolPie::LLToolPie (  ) 

Definition at line 83 of file lltoolpie.cpp.


Member Function Documentation

BOOL LLToolPie::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLTool.

Definition at line 93 of file lltoolpie.cpp.

References gPickFaces, gViewerWindow, LLViewerWindow::hitObjectOrLandGlobalAsync(), leftMouseCallback(), mGrabMouseButtonDown, and TRUE.

Here is the call graph for this function:

BOOL LLToolPie::handleRightMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLTool.

Definition at line 109 of file lltoolpie.cpp.

References FALSE, gPickFaces, gViewerWindow, LLViewerWindow::hitObjectOrLandGlobalAsync(), mPieMouseButtonDown, rightMouseCallback(), and TRUE.

Referenced by LLViewerWindow::handleRightMouseDown().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLToolPie::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLToolPie::handleRightMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLTool.

Definition at line 605 of file lltoolpie.cpp.

References LLToolMgr::clearTransientTool(), FALSE, LLSingleton< LLToolMgr >::getInstance(), LLTool::handleRightMouseUp(), and mPieMouseButtonDown.

Here is the call graph for this function:

BOOL LLToolPie::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLToolPie::handleDoubleClick ( S32  x,
S32  y,
MASK  mask 
) [virtual]

void LLToolPie::render (  )  [virtual]

Reimplemented from LLTool.

Definition at line 715 of file lltoolpie.cpp.

void LLToolPie::stopEditing (  )  [virtual]

Reimplemented from LLTool.

Definition at line 691 of file lltoolpie.cpp.

References FALSE, LLTool::hasMouseCapture(), and LLTool::setMouseCapture().

Here is the call graph for this function:

void LLToolPie::onMouseCaptureLost (  )  [virtual]

Reimplemented from LLTool.

Definition at line 699 of file lltoolpie.cpp.

References FALSE, and mMouseOutsideSlop.

void LLToolPie::handleDeselect (  )  [virtual]

Reimplemented from LLTool.

Definition at line 667 of file lltoolpie.cpp.

References FALSE, LLSingleton< LLSelectMgr >::getInstance(), LLTool::hasMouseCapture(), LLTool::setMouseCapture(), and LLSelectMgr::validateSelection().

Here is the call graph for this function:

LLTool * LLToolPie::getOverrideTool ( MASK  mask  )  [virtual]

Reimplemented from LLTool.

Definition at line 677 of file lltoolpie.cpp.

References LLSingleton< LLToolGrab >::getInstance(), LLTool::getOverrideTool(), MASK_CONTROL, and MASK_SHIFT.

Here is the call graph for this function:

void LLToolPie::leftMouseCallback ( S32  x,
S32  y,
MASK  mask 
) [static]

Definition at line 104 of file lltoolpie.cpp.

References FALSE, LLSingleton< LLToolPie >::getInstance(), and pickAndShowMenu().

Referenced by handleMouseDown().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLToolPie::rightMouseCallback ( S32  x,
S32  y,
MASK  mask 
) [static]

Definition at line 122 of file lltoolpie.cpp.

References LLSingleton< LLToolPie >::getInstance(), pickAndShowMenu(), and TRUE.

Referenced by handleRightMouseDown().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLToolPie::selectionPropertiesReceived (  )  [static]

Definition at line 478 of file lltoolpie.cpp.

References CLICK_ACTION_BUY, CLICK_ACTION_OPEN, CLICK_ACTION_PAY, LLSingleton< LLSelectMgr >::getInstance(), handle_buy(), handle_give_money_dialog(), handle_object_open(), NULL, sClickAction, sClickActionObject, and sLeftClickSelection.

Referenced by LLSelectMgr::processObjectProperties().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLToolPie::outsideSlop ( S32  x,
S32  y,
S32  start_x,
S32  start_y 
) [protected]

Definition at line 706 of file lltoolpie.cpp.

References S32.

BOOL LLToolPie::pickAndShowMenu ( S32  x,
S32  y,
MASK  mask,
BOOL  edit_menu 
) [protected]

Definition at line 128 of file lltoolpie.cpp.

References LLViewerObject::allowOpen(), LLPanel::childSetText(), CLICK_ACTION_BUY, CLICK_ACTION_OPEN, CLICK_ACTION_OPEN_MEDIA, CLICK_ACTION_PAY, CLICK_ACTION_PLAY, CLICK_ACTION_SIT, CLICK_ACTION_TOUCH, LLHUDManager::createViewerEffect(), LLViewerParcelMgr::deselectLand(), FALSE, LLViewerObject::flagHandleTouch(), LLViewerObject::flagTakesMoney(), gAgent, LLAgent::getAvatarObject(), LLControlGroup::getBOOL(), LLViewerObject::getClickAction(), LLViewerParcelMgr::getCollisionParcel(), LLViewerWindow::getCurrentMouseX(), LLViewerWindow::getCurrentMouseY(), LLToolMgr::getCurrentToolset(), LLAgent::getEffectColor(), LLVOAvatar::getFullname(), LLVOAvatar::getID(), LLAgent::getID(), LLViewerObject::getID(), LLMuteList::getInstance(), LLSingleton< LLSelectMgr >::getInstance(), LLSingleton< LLHUDManager >::getInstance(), LLSingleton< LLToolCamera >::getInstance(), LLSingleton< LLToolGrab >::getInstance(), LLSingleton< LLToolMgr >::getInstance(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLParcel::getParcelFlag(), LLXform::getParent(), LLViewerObject::getRootEdit(), LLSelectMgr::getSelection(), LLHUDObject::getSourceObject(), gGrabTransientTool, gLastHitHUDIcon, gLastHitParcelWall, gLastHitPosGlobal, gMenuHolder, gPieAttachment, gPieAvatar, gPieLand, gPieObject, gPieSelf, gSavedSettings, gViewerWindow, handle_click_action_open_media(), handle_click_action_play(), handle_sit_or_stand(), LLTool::handleMouseDown(), LLToolGrab::handleObjectHit(), LLToolSelect::handleObjectSelection(), LLTool::handleRightMouseDown(), LLViewerWindow::hideCursor(), LLViewerObject::isAttachment(), LLPrimitive::isAvatar(), LLViewerParcelMgr::isCollisionBanned(), LLVector3d::isExactlyZero(), LLViewerObject::isHUDAttachment(), LLViewerWindow::lastObjectHit(), LLAgent::leftButtonGrabbed(), LLHUDObject::LL_HUD_EFFECT_SPHERE, MASK_NONE, mGrabMouseButtonDown, mHitLand, mHitObjectID, LLVOAvatar::mIsSitting, LLSelectNode::mName, mPieMouseButtonDown, NULL, LLPanelLandGeneral::onClickBuyPass(), PF_USE_PASS_LIST, LLToolCamera::pickCallback(), sClickAction, sClickActionObject, LLViewerParcelMgr::selectCollisionParcel(), LLViewerParcelMgr::selectParcelAt(), LLToolset::selectTool(), LLHUDEffect::setColor(), LLHUDEffect::setDuration(), LLAgent::setFocusOnAvatar(), LLTool::setMouseCapture(), LLUUID::setNull(), LLViewerMenuHolderGL::setObjectSelection(), LLViewerMenuHolderGL::setParcelSelection(), LLHUDObject::setPositionGlobal(), LLToolMgr::setTransientTool(), LLPieMenu::show(), LLFloaterScriptDebug::show(), LLUIFactory< T, LLUISingleton< T, VISIBILITY_POLICY >, VISIBILITY_POLICY >::showInstance(), sLeftClickSelection, TRUE, useClickAction(), LLFirstUse::useLeftClickNoHit(), and LLViewerObject::usePhysics().

Referenced by leftMouseCallback(), and rightMouseCallback().

Here is the caller graph for this function:

BOOL LLToolPie::useClickAction ( BOOL  always_show,
MASK  mask,
LLViewerObject object,
LLViewerObject parent 
) [protected]

Definition at line 394 of file lltoolpie.cpp.

References LLViewerObject::getClickAction(), LLPrimitive::getPCode(), LLPrimitive::isPrimitive(), and MASK_NONE.

Referenced by handleHover(), and pickAndShowMenu().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 73 of file lltoolpie.h.

Referenced by handleRightMouseDown(), handleRightMouseUp(), and pickAndShowMenu().

Definition at line 74 of file lltoolpie.h.

Referenced by handleMouseDown(), handleMouseUp(), and pickAndShowMenu().

Definition at line 75 of file lltoolpie.h.

Referenced by pickAndShowMenu().

Definition at line 76 of file lltoolpie.h.

Referenced by pickAndShowMenu().

Definition at line 77 of file lltoolpie.h.

Referenced by onMouseCaptureLost().

Definition at line 78 of file lltoolpie.h.

Referenced by pickAndShowMenu(), and selectionPropertiesReceived().

U8 LLToolPie::sClickAction = 0 [static, protected]

Definition at line 79 of file lltoolpie.h.

Referenced by pickAndShowMenu(), and selectionPropertiesReceived().

Definition at line 80 of file lltoolpie.h.

Referenced by pickAndShowMenu(), and selectionPropertiesReceived().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:17:44 2008 for SecondLife by  doxygen 1.5.5