LLToolSelectRect Class Reference

#include <lltoolselectrect.h>

Inheritance diagram for LLToolSelectRect:

Inheritance graph
[legend]
Collaboration diagram for LLToolSelectRect:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 38 of file lltoolselectrect.h.


Constructor & Destructor Documentation

LLToolSelectRect::LLToolSelectRect ( LLToolComposite composite  ) 

Definition at line 63 of file lltoolselectrect.cpp.


Member Function Documentation

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.

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

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.

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

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().

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

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.

void LLToolSelectRect::handleRectangleSelection ( S32  x,
S32  y,
MASK  mask 
) [protected]

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().

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

Definition at line 194 of file lltoolselectrect.cpp.

References S32, and SLOP_RADIUS.

Referenced by handleHover().


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:52 2010 for Second Life Viewer by  doxygen 1.4.7