LLTool Class Reference

#include <lltool.h>

Inheritance diagram for LLTool:

Inheritance graph
[legend]
Collaboration diagram for LLTool:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLTool (const LLString &name, LLToolComposite *composite=NULL)
virtual ~LLTool ()
virtual BOOL isView () const
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual BOOL handleScrollWheel (S32 x, S32 y, S32 clicks)
virtual BOOL handleDoubleClick (S32 x, S32 y, MASK mask)
virtual BOOL handleRightMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleRightMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleToolTip (S32 x, S32 y, LLString &msg, LLRect *sticky_rect_screen)
virtual void screenPointToLocal (S32 screen_x, S32 screen_y, S32 *local_x, S32 *local_y) const
virtual void localPointToScreen (S32 local_x, S32 local_y, S32 *screen_x, S32 *screen_y) const
virtual const LLStringgetName () const
virtual LLViewerObjectgetEditingObject ()
virtual LLVector3d getEditingPointGlobal ()
virtual BOOL isEditing ()
virtual void stopEditing ()
virtual BOOL clipMouseWhenDown ()
virtual void handleSelect ()
virtual void handleDeselect ()
virtual LLToolgetOverrideTool (MASK mask)
virtual BOOL isAlwaysRendered ()
virtual void render ()
virtual void draw ()
virtual BOOL handleKey (KEY key, MASK mask)
void setMouseCapture (BOOL b)
BOOL hasMouseCapture ()
virtual void onMouseCaptureLost ()

Static Public Attributes

static const LLString sNameNull

Protected Attributes

LLToolCompositemComposite
LLString mName


Detailed Description

Definition at line 46 of file lltool.h.


Constructor & Destructor Documentation

LLTool::LLTool ( const LLString name,
LLToolComposite composite = NULL 
)

Definition at line 51 of file lltool.cpp.

Referenced by LLToolCompGun::LLToolCompGun().

Here is the caller graph for this function:

LLTool::~LLTool (  )  [virtual]

Definition at line 57 of file lltool.cpp.

References gFocusMgr, hasMouseCapture(), llendl, llwarns, and LLFocusMgr::removeMouseCaptureWithoutCallback().

Here is the call graph for this function:


Member Function Documentation

virtual BOOL LLTool::isView (  )  const [inline, virtual]

Implements LLMouseHandler.

Definition at line 54 of file lltool.h.

References FALSE.

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

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

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

BOOL LLTool::handleScrollWheel ( S32  x,
S32  y,
S32  clicks 
) [virtual]

Implements LLMouseHandler.

Reimplemented in LLToolComposite, and LLToolCompGun.

Definition at line 99 of file lltool.cpp.

References FALSE.

Referenced by LLToolComposite::handleScrollWheel().

Here is the caller graph for this function:

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

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

Implements LLMouseHandler.

Reimplemented in LLToolComposite, LLToolCompGun, and LLToolPie.

Definition at line 113 of file lltool.cpp.

References FALSE.

Referenced by LLViewerWindow::handleRightMouseDown(), LLToolComposite::handleRightMouseDown(), and LLToolPie::pickAndShowMenu().

Here is the caller graph for this function:

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

Implements LLMouseHandler.

Reimplemented in LLToolPie.

Definition at line 120 of file lltool.cpp.

References FALSE.

Referenced by LLViewerWindow::handleRightMouseUp(), and LLToolPie::handleRightMouseUp().

Here is the caller graph for this function:

BOOL LLTool::handleToolTip ( S32  x,
S32  y,
LLString msg,
LLRect sticky_rect_screen 
) [virtual]

Implements LLMouseHandler.

Reimplemented in LLToolDragAndDrop, and LLToolPipette.

Definition at line 127 of file lltool.cpp.

References FALSE.

virtual void LLTool::screenPointToLocal ( S32  screen_x,
S32  screen_y,
S32 local_x,
S32 local_y 
) const [inline, virtual]

Implements LLMouseHandler.

Reimplemented in LLToolComposite.

Definition at line 66 of file lltool.h.

Referenced by LLToolComposite::screenPointToLocal().

Here is the caller graph for this function:

virtual void LLTool::localPointToScreen ( S32  local_x,
S32  local_y,
S32 screen_x,
S32 screen_y 
) const [inline, virtual]

Implements LLMouseHandler.

Reimplemented in LLToolComposite.

Definition at line 68 of file lltool.h.

Referenced by LLToolComposite::localPointToScreen().

Here is the caller graph for this function:

virtual const LLString& LLTool::getName ( void   )  const [inline, virtual]

Implements LLMouseHandler.

Definition at line 71 of file lltool.h.

References mName.

Referenced by LLToolCamera::pickCallback().

Here is the caller graph for this function:

virtual LLViewerObject* LLTool::getEditingObject (  )  [inline, virtual]

Reimplemented in LLToolComposite, and LLToolGrab.

Definition at line 74 of file lltool.h.

References NULL.

Referenced by LLToolComposite::getEditingObject(), LLVOAvatar::idleUpdate(), isEditing(), and LLSelectMgr::removeObjectFromSelections().

Here is the caller graph for this function:

virtual LLVector3d LLTool::getEditingPointGlobal (  )  [inline, virtual]

Reimplemented in LLToolComposite, and LLToolGrab.

Definition at line 75 of file lltool.h.

Referenced by LLToolComposite::getEditingPointGlobal(), LLVOAvatar::idleUpdate(), and LLSelectMgr::updateSelectionCenter().

Here is the caller graph for this function:

virtual BOOL LLTool::isEditing (  )  [inline, virtual]

Reimplemented in LLToolComposite, and LLToolGrab.

Definition at line 76 of file lltool.h.

References getEditingObject(), and NULL.

Referenced by LLVOAvatar::idleUpdate(), LLToolComposite::isEditing(), and LLSelectMgr::updateSelectionCenter().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LLTool::stopEditing (  )  [inline, virtual]

Reimplemented in LLToolComposite, LLToolGrab, LLToolPie, and LLToolSelect.

Definition at line 77 of file lltool.h.

Referenced by LLSelectMgr::removeObjectFromSelections(), and LLToolComposite::stopEditing().

Here is the caller graph for this function:

virtual BOOL LLTool::clipMouseWhenDown (  )  [inline, virtual]

Reimplemented in LLToolComposite, and LLToolGun.

Definition at line 79 of file lltool.h.

References TRUE.

Referenced by LLToolComposite::clipMouseWhenDown(), LLViewerWindow::handleMouseUp(), and LLViewerWindow::handleRightMouseUp().

Here is the caller graph for this function:

virtual void LLTool::handleSelect (  )  [inline, virtual]

virtual void LLTool::handleDeselect (  )  [inline, virtual]

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

virtual BOOL LLTool::isAlwaysRendered (  )  [inline, virtual]

Reimplemented in LLToolBrushLand, and LLToolSelectLand.

Definition at line 88 of file lltool.h.

References FALSE.

Referenced by LLViewerWindow::renderSelections().

Here is the caller graph for this function:

virtual void LLTool::render (  )  [inline, virtual]

void LLTool::draw ( void   )  [virtual]

Reimplemented in LLToolComposite, LLToolGrab, LLToolGun, and LLToolSelectRect.

Definition at line 148 of file lltool.cpp.

Referenced by LLViewerWindow::draw(), and LLToolComposite::draw().

Here is the caller graph for this function:

BOOL LLTool::handleKey ( KEY  key,
MASK  mask 
) [virtual]

Reimplemented in LLToolComposite, and LLToolDragAndDrop.

Definition at line 156 of file lltool.cpp.

References FALSE.

Referenced by LLViewerWindow::handleKey(), and LLToolComposite::handleKey().

Here is the caller graph for this function:

void LLTool::setMouseCapture ( BOOL  b  ) 

Definition at line 134 of file lltool.cpp.

References gViewerWindow, hasMouseCapture(), mComposite, NULL, and LLViewerWindow::setMouseCapture().

Referenced by LLToolDragAndDrop::beginDrag(), LLToolDragAndDrop::beginMultiDrag(), LLToolDragAndDrop::endDrag(), LLToolSelect::handleDeselect(), LLToolPie::handleDeselect(), LLToolObjPicker::handleDeselect(), LLToolGrab::handleDeselect(), LLToolCompGun::handleDeselect(), LLToolGrab::handleHover(), LLToolCompGun::handleHover(), LLManipScale::handleHover(), LLManipRotate::handleHover(), LLManip::handleHover(), LLToolGrab::handleHoverActive(), LLToolSelectRect::handleMouseDown(), LLToolSelectLand::handleMouseDown(), LLToolPipette::handleMouseDown(), LLToolObjPicker::handleMouseDown(), LLToolCamera::handleMouseDown(), LLToolBrushLand::handleMouseDown(), LLManipTranslate::handleMouseDownOnPart(), LLManipScale::handleMouseDownOnPart(), LLManipRotate::handleMouseDownOnPart(), LLToolSelectRect::handleMouseUp(), LLToolSelectLand::handleMouseUp(), LLToolPipette::handleMouseUp(), LLToolObjPicker::handleMouseUp(), LLToolGrab::handleMouseUp(), LLToolCamera::handleMouseUp(), LLToolBrushLand::handleMouseUp(), LLManip::handleMouseUp(), LLToolGrab::handleObjectHit(), LLToolObjPicker::handleSelect(), LLToolCompGun::handleSelect(), LLToolPie::pickAndShowMenu(), LLToolGrab::pickCallback(), LLToolSelect::stopEditing(), LLToolPie::stopEditing(), and LLToolGrab::stopEditing().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTool::hasMouseCapture (  )  [virtual]

virtual void LLTool::onMouseCaptureLost (  )  [inline, virtual]

Implements LLMouseHandler.

Reimplemented in LLToolBrushLand, LLToolComposite, LLToolCompGun, LLToolDragAndDrop, LLToolCamera, LLToolGrab, LLToolObjPicker, LLToolPie, and LLToolSelect.

Definition at line 98 of file lltool.h.

Referenced by LLToolCompGun::onMouseCaptureLost(), and LLToolComposite::onMouseCaptureLost().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 101 of file lltool.h.

Referenced by hasMouseCapture(), LLToolCompGun::onMouseCaptureLost(), and setMouseCapture().

LLString LLTool::mName [protected]

Definition at line 102 of file lltool.h.

Referenced by getName().

const LLString LLTool::sNameNull [static]

Definition at line 105 of file lltool.h.


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

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