#include <lltoolselectrect.h>
Inheritance diagram for LLToolSelectRect:
Public Member Functions | |
LLToolSelectRect (LLToolComposite *composite) | |
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 void | draw () |
Protected Member Functions | |
void | handleRectangleSelection (S32 x, S32 y, MASK mask) |
BOOL | outsideSlop (S32 x, S32 y, S32 start_x, S32 start_y) |
Protected Attributes | |
S32 | mDragStartX |
S32 | mDragStartY |
S32 | mDragEndX |
S32 | mDragEndY |
S32 | mDragLastWidth |
S32 | mDragLastHeight |
BOOL | mMouseOutsideSlop |
Definition at line 38 of file lltoolselectrect.h.
LLToolSelectRect::LLToolSelectRect | ( | LLToolComposite * | composite | ) |
Definition at line 63 of file lltoolselectrect.cpp.
void LLToolSelectRect::draw | ( | ) | [virtual] |
Reimplemented from LLTool.
Definition at line 158 of file lltoolselectrect.cpp.
References LLKeyboard::currentMask(), f, FALSE, gKeyboard, gl_rect_2d(), glColor4f, LLTool::hasMouseCapture(), llmax(), llmin(), MASK_CONTROL, mDragEndX, mDragEndY, mDragStartX, mDragStartY, mMouseOutsideSlop, and TRUE.
Reimplemented from LLTool.
Definition at line 124 of file lltoolselectrect.cpp.
References LLSelectMgr::deselectAll(), LLViewerWindow::getWindow(), gSelectMgr, gViewerWindow, LLTool::handleHover(), handleRectangleSelection(), LLTool::hasMouseCapture(), lldebugst, llendl, MASK_CONTROL, MASK_SHIFT, mDragEndX, mDragEndY, mDragStartX, mDragStartY, mMouseOutsideSlop, outsideSlop(), LLWindow::setCursor(), TRUE, and UI_CURSOR_ARROW.
Reimplemented from LLToolSelect.
Definition at line 79 of file lltoolselectrect.cpp.
References FALSE, LLToolSelect::handleMouseDown(), mDragEndX, mDragEndY, mDragStartX, mDragStartY, mMouseOutsideSlop, LLTool::setMouseCapture(), and TRUE.
Referenced by LLToolCompRotate::pickCallback(), LLToolCompCreate::pickCallback(), LLToolCompScale::pickCallback(), LLToolCompTranslate::pickCallback(), and LLToolCompInspect::pickCallback().
Reimplemented from LLToolSelect.
Definition at line 96 of file lltoolselectrect.cpp.
References LLSelectMgr::deselectHighlightedObjects(), FALSE, gSelectMgr, LLToolSelect::handleMouseUp(), MASK_CONTROL, mDragLastHeight, mDragLastWidth, mMouseOutsideSlop, LLSelectMgr::selectHighlightedObjects(), LLTool::setMouseCapture(), and TRUE.
Definition at line 182 of file llglsandbox.cpp.
References LLViewerCamera::areVertsVisible(), bottom, LLSpatialPartition::cull(), dist_vec_squared(), f, FALSE, FOR_SELECTION, func, gAgent, gCamera, LLCoordFrame::getAtAxis(), LLControlGroup::getBOOL(), LLControlGroup::getF32(), LLCamera::getFar(), LLSelectMgr::getHighlightedObjects(), LLCamera::getNear(), LLCoordFrame::getOrigin(), LLPrimitive::getPCode(), LLDrawable::getPositionAgent(), LLAgent::getPositionAgent(), LLDrawable::getRadius(), LLPipeline::getSpatialPartition(), glPopMatrix, gPipeline, gSavedSettings, gSelectMgr, gViewerWindow, height, LLSelectMgr::highlightObjectOnly(), i, LLViewerObject::isAttachment(), LLViewerObject::isSelected(), left, LL_PCODE_VOLUME, llmax(), llmin(), llround(), MASK_CONTROL, mDragLastHeight, mDragLastWidth, mDragStartX, mDragStartY, LLPipeline::NUM_PARTITIONS, right, S32, LLCamera::setFar(), LLCamera::setNear(), LLViewerCamera::setPerspective(), LLViewerWindow::setup3DRender(), LLUI::sGLScaleFactor, LLCamera::sphereInFrustum(), LLSelectMgr::sRectSelectInclusive, top, TRUE, LLSelectMgr::unhighlightObjectOnly(), VX, VY, and width.
Referenced by handleHover().
Definition at line 194 of file lltoolselectrect.cpp.
References S32, and SLOP_RADIUS.
Referenced by handleHover().
S32 LLToolSelectRect::mDragEndX [protected] |
Definition at line 57 of file lltoolselectrect.h.
Referenced by draw(), handleHover(), and handleMouseDown().
S32 LLToolSelectRect::mDragEndY [protected] |
Definition at line 58 of file lltoolselectrect.h.
Referenced by draw(), handleHover(), and handleMouseDown().
S32 LLToolSelectRect::mDragLastHeight [protected] |
Definition at line 61 of file lltoolselectrect.h.
Referenced by handleMouseUp(), and handleRectangleSelection().
S32 LLToolSelectRect::mDragLastWidth [protected] |
Definition at line 60 of file lltoolselectrect.h.
Referenced by handleMouseUp(), and handleRectangleSelection().
S32 LLToolSelectRect::mDragStartX [protected] |
Definition at line 54 of file lltoolselectrect.h.
Referenced by draw(), handleHover(), handleMouseDown(), and handleRectangleSelection().
S32 LLToolSelectRect::mDragStartY [protected] |
Definition at line 55 of file lltoolselectrect.h.
Referenced by draw(), handleHover(), handleMouseDown(), and handleRectangleSelection().
BOOL LLToolSelectRect::mMouseOutsideSlop [protected] |
Definition at line 63 of file lltoolselectrect.h.
Referenced by draw(), handleHover(), handleMouseDown(), and handleMouseUp().