#include <lltool.h>
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 LLString & | getName () const |
virtual LLViewerObject * | getEditingObject () |
virtual LLVector3d | getEditingPointGlobal () |
virtual BOOL | isEditing () |
virtual void | stopEditing () |
virtual BOOL | clipMouseWhenDown () |
virtual void | handleSelect () |
virtual void | handleDeselect () |
virtual LLTool * | getOverrideTool (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 | |
LLToolComposite * | mComposite |
LLString | mName |
Definition at line 46 of file lltool.h.
LLTool::LLTool | ( | const LLString & | name, | |
LLToolComposite * | composite = NULL | |||
) |
Definition at line 51 of file lltool.cpp.
Referenced by LLToolCompGun::LLToolCompGun().
LLTool::~LLTool | ( | ) | [virtual] |
Definition at line 57 of file lltool.cpp.
References gFocusMgr, hasMouseCapture(), llendl, llwarns, and LLFocusMgr::removeMouseCaptureWithoutCallback().
virtual BOOL LLTool::isView | ( | ) | const [inline, virtual] |
Implements LLMouseHandler.
Reimplemented in LLManipRotate, LLManipScale, LLManipTranslate, LLToolTexEyedropper, LLToolBrushLand, LLToolComposite, LLToolCompInspect, LLToolCompTranslate, LLToolCompScale, LLToolCompRotate, LLToolCompCreate, LLToolCompGun, LLToolFace, LLToolCamera, LLToolGrab, LLToolGun, LLToolIndividual, LLToolObjPicker, LLToolPie, LLToolPipette, LLToolSelect, LLToolSelectLand, and LLToolSelectRect.
Definition at line 67 of file lltool.cpp.
References AGENT_CONTROL_LBUTTON_DOWN, gAgent, gDebugClicks, llendl, llinfos, LLAgent::setControlFlags(), and TRUE.
Referenced by LLViewerWindow::handleMouseDown(), LLToolSelect::handleMouseDown(), LLToolObjPicker::handleMouseDown(), LLToolGrab::handleMouseDown(), LLToolCamera::handleMouseDown(), LLSnapshotFloaterView::handleMouseDown(), LLToolPie::pickAndShowMenu(), LLToolCompRotate::pickCallback(), and LLToolCompScale::pickCallback().
Implements LLMouseHandler.
Reimplemented in LLManip, LLManipRotate, LLManipScale, LLManipTranslate, LLToolBrushLand, LLToolComposite, LLToolCompTranslate, LLToolCompScale, LLToolCompRotate, LLToolCompCreate, LLToolCompGun, LLToolDragAndDrop, LLToolCamera, LLToolGrab, LLToolObjPicker, LLToolPie, LLToolPipette, LLToolSelect, LLToolSelectLand, and LLToolSelectRect.
Definition at line 79 of file lltool.cpp.
References AGENT_CONTROL_LBUTTON_UP, gAgent, gDebugClicks, llendl, llinfos, LLAgent::setControlFlags(), and TRUE.
Referenced by LLViewerWindow::handleMouseUp(), LLToolSelect::handleMouseUp(), LLToolPie::handleMouseUp(), LLToolObjPicker::handleMouseUp(), LLToolGrab::handleMouseUp(), LLToolComposite::handleMouseUp(), LLSnapshotFloaterView::handleMouseUp(), and LLToolCamera::releaseMouse().
Implements LLMouseHandler.
Reimplemented in LLManip, LLManipRotate, LLManipScale, LLManipTranslate, LLToolTexEyedropper, LLToolBrushLand, LLToolComposite, LLToolCompTranslate, LLToolCompScale, LLToolCompRotate, LLToolCompGun, LLToolDragAndDrop, LLToolCamera, LLToolGrab, LLToolGun, LLToolObjPicker, LLToolPie, LLToolPipette, LLToolPlacer, LLToolSelectLand, and LLToolSelectRect.
Definition at line 91 of file lltool.cpp.
References LLViewerWindow::getWindow(), gViewerWindow, lldebugst, llendl, LLWindow::setCursor(), TRUE, and UI_CURSOR_ARROW.
Referenced by LLToolSelectRect::handleHover(), LLToolComposite::handleHover(), LLToolCompGun::handleHover(), LLToolCompRotate::handleHover(), LLToolCompScale::handleHover(), LLToolCompTranslate::handleHover(), LLSnapshotFloaterView::handleHover(), and LLViewerWindow::handlePerFrameHover().
Implements LLMouseHandler.
Reimplemented in LLToolComposite, and LLToolCompGun.
Definition at line 99 of file lltool.cpp.
References FALSE.
Referenced by LLToolComposite::handleScrollWheel().
Implements LLMouseHandler.
Reimplemented in LLToolComposite, LLToolCompInspect, LLToolCompTranslate, LLToolCompScale, LLToolCompRotate, LLToolCompCreate, LLToolCompGun, LLToolFace, LLToolGrab, LLToolIndividual, LLToolPie, LLToolSelect, and LLToolSelectLand.
Definition at line 106 of file lltool.cpp.
References FALSE.
Referenced by LLViewerWindow::handleDoubleClick(), and LLToolSelect::handleDoubleClick().
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().
Implements LLMouseHandler.
Reimplemented in LLToolPie.
Definition at line 120 of file lltool.cpp.
References FALSE.
Referenced by LLViewerWindow::handleRightMouseUp(), and LLToolPie::handleRightMouseUp().
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().
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().
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().
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().
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().
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().
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().
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().
virtual void LLTool::handleSelect | ( | ) | [inline, virtual] |
Reimplemented in LLManip, LLManipRotate, LLManipScale, LLManipTranslate, LLToolBrushLand, LLToolComposite, LLToolCompGun, LLToolFace, LLToolCamera, LLToolGrab, LLToolGun, LLToolIndividual, LLToolObjPicker, LLToolPlacer, and LLToolSelectLand.
Definition at line 81 of file lltool.h.
Referenced by LLToolMgr::getCurrentTool(), LLToolObjPicker::handleSelect(), LLToolComposite::handleSelect(), and LLToolComposite::setCurrentTool().
virtual void LLTool::handleDeselect | ( | ) | [inline, virtual] |
Reimplemented in LLManip, LLManipRotate, LLManipScale, LLManipTranslate, LLToolBrushLand, LLToolComposite, LLToolCompGun, LLToolDragAndDrop, LLToolFace, LLToolCamera, LLToolGrab, LLToolGun, LLToolObjPicker, LLToolPie, LLToolPlacer, LLToolSelect, and LLToolSelectLand.
Definition at line 82 of file lltool.h.
Referenced by LLToolMgr::getCurrentTool(), LLToolObjPicker::handleDeselect(), LLToolComposite::handleDeselect(), LLToolComposite::setCurrentTool(), and LLToolMgr::setCurrentToolset().
Reimplemented in LLToolCompTranslate, LLToolCompScale, LLToolCompRotate, LLToolCamera, LLToolGun, and LLToolPie.
Definition at line 161 of file lltool.cpp.
References LLSingleton< LLToolCamera >::getInstance(), MASK_ALT, and NULL.
Referenced by LLToolMgr::getCurrentTool(), LLToolPie::getOverrideTool(), LLToolCompRotate::getOverrideTool(), LLToolCompScale::getOverrideTool(), and LLToolCompTranslate::getOverrideTool().
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().
virtual void LLTool::render | ( | ) | [inline, virtual] |
Reimplemented in LLManipRotate, LLManipScale, LLManipTranslate, LLToolBrushLand, LLToolComposite, LLToolCompTranslate, LLToolCompScale, LLToolCompRotate, LLToolFace, LLToolGrab, LLToolPie, and LLToolSelectLand.
Definition at line 90 of file lltool.h.
Referenced by LLToolComposite::render(), LLToolCompRotate::render(), LLToolCompScale::render(), LLToolCompTranslate::render(), and LLViewerWindow::renderSelections().
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().
Reimplemented in LLToolComposite, and LLToolDragAndDrop.
Definition at line 156 of file lltool.cpp.
References FALSE.
Referenced by LLViewerWindow::handleKey(), and LLToolComposite::handleKey().
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().
BOOL LLTool::hasMouseCapture | ( | ) | [virtual] |
Implements LLMouseHandler.
Definition at line 151 of file lltool.cpp.
References LLFocusMgr::getMouseCapture(), gFocusMgr, and mComposite.
Referenced by LLToolSelectRect::draw(), LLToolMgr::getCurrentTool(), LLToolSelect::handleDeselect(), LLToolPie::handleDeselect(), LLToolObjPicker::handleDeselect(), LLToolGrab::handleDeselect(), LLToolSelectRect::handleHover(), LLToolSelectLand::handleHover(), LLToolPipette::handleHover(), LLToolCamera::handleHover(), LLToolCompRotate::handleHover(), LLToolCompScale::handleHover(), LLToolCompTranslate::handleHover(), LLToolBrushLand::handleHover(), LLManipTranslate::handleHover(), LLManipScale::handleHover(), LLManipRotate::handleHover(), LLManip::handleHover(), LLToolGrab::handleHoverActive(), LLToolObjPicker::handleMouseDown(), LLToolSelectLand::handleMouseUp(), LLToolObjPicker::handleMouseUp(), LLToolGrab::handleMouseUp(), LLToolCamera::handleMouseUp(), LLToolDragAndDrop::handleMouseUp(), LLToolBrushLand::handleMouseUp(), LLManipTranslate::handleMouseUp(), LLManipScale::handleMouseUp(), LLManipRotate::handleMouseUp(), LLManip::handleMouseUp(), LLSnapshotLivePreview::onIdle(), LLToolCamera::pickCallback(), LLToolSelectLand::render(), setMouseCapture(), LLToolSelect::stopEditing(), LLToolPie::stopEditing(), LLToolGrab::stopEditing(), LLManipRotate::updateVisiblity(), and ~LLTool().
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().
LLToolComposite* LLTool::mComposite [protected] |
Definition at line 101 of file lltool.h.
Referenced by hasMouseCapture(), LLToolCompGun::onMouseCaptureLost(), and setMouseCapture().
LLString LLTool::mName [protected] |
const LLString LLTool::sNameNull [static] |