#include <lltoolselectrect.h>
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.
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, LLSingleton< LLSelectMgr >::getInstance(), LLToolSelect::handleMouseUp(), MASK_CONTROL, mDragLastHeight, mDragLastWidth, mMouseOutsideSlop, LLSelectMgr::selectHighlightedObjects(), LLTool::setMouseCapture(), and TRUE.
Reimplemented from LLTool.
Definition at line 124 of file lltoolselectrect.cpp.
References LLSelectMgr::deselectAll(), LLSingleton< LLSelectMgr >::getInstance(), LLViewerWindow::getWindow(), 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.
void LLToolSelectRect::draw | ( | void | ) | [virtual] |
Reimplemented from LLTool.
Definition at line 158 of file lltoolselectrect.cpp.
References LLGLImmediate::color4f(), LLKeyboard::currentMask(), FALSE, gGL, gKeyboard, gl_rect_2d(), LLTool::hasMouseCapture(), llmax(), llmin(), MASK_CONTROL, mDragEndX, mDragEndY, mDragStartX, mDragStartY, mMouseOutsideSlop, and TRUE.
Definition at line 167 of file llglsandbox.cpp.
References LLViewerCamera::areVertsVisible(), LLSpatialPartition::cull(), dist_vec_squared(), FALSE, FOR_SELECTION, gAgent, LLCoordFrame::getAtAxis(), LLControlGroup::getBOOL(), LLControlGroup::getF32(), LLCamera::getFar(), LLSelectMgr::getHighlightedObjects(), LLSingleton< LLWorld >::getInstance(), LLSingleton< LLSelectMgr >::getInstance(), LLSingleton< LLViewerCamera >::getInstance(), LLCamera::getNear(), LLCoordFrame::getOrigin(), LLPrimitive::getPCode(), LLDrawable::getPositionAgent(), LLAgent::getPositionAgent(), LLDrawable::getRadius(), LLWorld::getRegionList(), LLViewerRegion::getSpatialPartition(), LLDrawable::getVObj(), LLDrawable::getWorldPosition(), gGL, gSavedSettings, gViewerWindow, LLSelectMgr::highlightObjectOnly(), i, LLViewerObject::isAttachment(), LLViewerObject::isSelected(), LL_PCODE_VOLUME, llmax(), llmin(), llround(), MASK_CONTROL, mDragLastHeight, mDragLastWidth, mDragStartX, mDragStartY, LLViewerObject::mDrawable, LLViewerRegion::NUM_PARTITIONS, LLGLImmediate::popMatrix(), LLGLImmediate::pushMatrix(), S32, LLCamera::setFar(), LLCamera::setNear(), LLViewerCamera::setPerspective(), LLViewerWindow::setup3DRender(), LLUI::sGLScaleFactor, LLCamera::sphereInFrustum(), LLSelectMgr::sRectSelectInclusive, TRUE, LLSelectMgr::unhighlightObjectOnly(), VX, and VY.
Referenced by handleHover().
Definition at line 194 of file lltoolselectrect.cpp.
References S32, and SLOP_RADIUS.
Referenced by handleHover().
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().
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::mDragLastWidth [protected] |
Definition at line 60 of file lltoolselectrect.h.
Referenced by handleMouseUp(), and handleRectangleSelection().
S32 LLToolSelectRect::mDragLastHeight [protected] |
Definition at line 61 of file lltoolselectrect.h.
Referenced by handleMouseUp(), and handleRectangleSelection().
BOOL LLToolSelectRect::mMouseOutsideSlop [protected] |
Definition at line 63 of file lltoolselectrect.h.
Referenced by draw(), handleHover(), handleMouseDown(), and handleMouseUp().