#include <lltoolselectland.h>
Inheritance diagram for LLToolSelectLand:
Public Member Functions | |
LLToolSelectLand () | |
virtual | ~LLToolSelectLand () |
BOOL | handleMouseDown (S32 x, S32 y, MASK mask) |
BOOL | handleDoubleClick (S32 x, S32 y, MASK mask) |
BOOL | handleMouseUp (S32 x, S32 y, MASK mask) |
BOOL | handleHover (S32 x, S32 y, MASK mask) |
void | render () |
BOOL | isAlwaysRendered () |
void | handleSelect () |
void | handleDeselect () |
Protected Member Functions | |
BOOL | outsideSlop (S32 x, S32 y, S32 start_x, S32 start_y) |
void | roundXY (LLVector3d &vec) |
Protected Attributes | |
LLVector3d | mDragStartGlobal |
LLVector3d | mDragEndGlobal |
BOOL | mDragEndValid |
S32 | mDragStartX |
S32 | mDragStartY |
S32 | mDragEndX |
S32 | mDragEndY |
BOOL | mMouseOutsideSlop |
LLVector3d | mWestSouthBottom |
LLVector3d | mEastNorthTop |
BOOL | mLastShowParcelOwners |
LLHandle< LLParcelSelection > | mSelection |
Definition at line 40 of file lltoolselectland.h.
LLToolSelectLand::LLToolSelectLand | ( | ) |
Definition at line 57 of file lltoolselectland.cpp.
LLToolSelectLand::~LLToolSelectLand | ( | ) | [virtual] |
Definition at line 72 of file lltoolselectland.cpp.
void LLToolSelectLand::handleDeselect | ( | ) | [virtual] |
Reimplemented from LLTool.
Definition at line 228 of file lltoolselectland.cpp.
References LLControlGroup::getBOOL(), gSavedSettings, mLastShowParcelOwners, mSelection, NULL, and LLControlGroup::setBOOL().
Reimplemented from LLTool.
Definition at line 109 of file lltoolselectland.cpp.
References FALSE, gParcelMgr, gViewerWindow, LLViewerWindow::mousePointOnLandGlobal(), LLViewerParcelMgr::selectParcelAt(), and TRUE.
Reimplemented from LLTool.
Definition at line 156 of file lltoolselectland.cpp.
References FALSE, LLViewerWindow::getWindow(), gViewerWindow, LLTool::hasMouseCapture(), lldebugst, llendl, mDragEndGlobal, mDragEndValid, mDragEndX, mDragEndY, mDragStartGlobal, mDragStartX, mDragStartY, mEastNorthTop, mMouseOutsideSlop, LLViewerWindow::mousePointOnLandGlobal(), mWestSouthBottom, outsideSlop(), PARCEL_GRID_STEP_METERS, roundXY(), sanitize_corners(), LLWindow::setCursor(), TRUE, UI_CURSOR_ARROW, and UI_CURSOR_NO.
Reimplemented from LLTool.
Definition at line 77 of file lltoolselectland.cpp.
References LLViewerParcelMgr::deselectLand(), gParcelMgr, gViewerWindow, mDragEndGlobal, mDragEndValid, mDragEndX, mDragEndY, mDragStartGlobal, mDragStartX, mDragStartY, mEastNorthTop, mMouseOutsideSlop, LLViewerWindow::mousePointOnLandGlobal(), mWestSouthBottom, PARCEL_GRID_STEP_METERS, roundXY(), sanitize_corners(), LLTool::setMouseCapture(), and TRUE.
Reimplemented from LLTool.
Definition at line 123 of file lltoolselectland.cpp.
References FALSE, gParcelMgr, LLTool::hasMouseCapture(), mDragEndGlobal, mDragEndValid, mDragStartGlobal, mEastNorthTop, mMouseOutsideSlop, mSelection, mWestSouthBottom, PARCEL_GRID_STEP_METERS, roundXY(), sanitize_corners(), LLViewerParcelMgr::selectLand(), LLTool::setMouseCapture(), and TRUE.
void LLToolSelectLand::handleSelect | ( | ) | [virtual] |
Reimplemented from LLTool.
Definition at line 220 of file lltoolselectland.cpp.
References LLControlGroup::getBOOL(), gFloaterTools, gSavedSettings, mLastShowParcelOwners, LLControlGroup::setBOOL(), and LLFloaterTools::setStatusText().
BOOL LLToolSelectLand::isAlwaysRendered | ( | ) | [inline, virtual] |
void LLToolSelectLand::render | ( | ) | [virtual] |
Reimplemented from LLTool.
Definition at line 212 of file lltoolselectland.cpp.
References gParcelMgr, LLTool::hasMouseCapture(), mDragEndValid, mEastNorthTop, mWestSouthBottom, and LLViewerParcelMgr::renderRect().
void LLToolSelectLand::roundXY | ( | LLVector3d & | vec | ) | [protected] |
Definition at line 237 of file lltoolselectland.cpp.
References llround(), LLVector3d::mdV, PARCEL_GRID_STEP_METERS, VX, and VY.
Referenced by handleHover(), handleMouseDown(), and handleMouseUp().
LLVector3d LLToolSelectLand::mDragEndGlobal [protected] |
Definition at line 63 of file lltoolselectland.h.
Referenced by handleHover(), handleMouseDown(), and handleMouseUp().
BOOL LLToolSelectLand::mDragEndValid [protected] |
Definition at line 64 of file lltoolselectland.h.
Referenced by handleHover(), handleMouseDown(), handleMouseUp(), and render().
S32 LLToolSelectLand::mDragEndX [protected] |
Definition at line 69 of file lltoolselectland.h.
Referenced by handleHover(), and handleMouseDown().
S32 LLToolSelectLand::mDragEndY [protected] |
Definition at line 70 of file lltoolselectland.h.
Referenced by handleHover(), and handleMouseDown().
LLVector3d LLToolSelectLand::mDragStartGlobal [protected] |
Definition at line 62 of file lltoolselectland.h.
Referenced by handleHover(), handleMouseDown(), and handleMouseUp().
S32 LLToolSelectLand::mDragStartX [protected] |
Definition at line 66 of file lltoolselectland.h.
Referenced by handleHover(), and handleMouseDown().
S32 LLToolSelectLand::mDragStartY [protected] |
Definition at line 67 of file lltoolselectland.h.
Referenced by handleHover(), and handleMouseDown().
LLVector3d LLToolSelectLand::mEastNorthTop [protected] |
Definition at line 75 of file lltoolselectland.h.
Referenced by handleHover(), handleMouseDown(), handleMouseUp(), and render().
BOOL LLToolSelectLand::mLastShowParcelOwners [protected] |
Definition at line 77 of file lltoolselectland.h.
Referenced by handleDeselect(), and handleSelect().
BOOL LLToolSelectLand::mMouseOutsideSlop [protected] |
Definition at line 72 of file lltoolselectland.h.
Referenced by handleHover(), handleMouseDown(), and handleMouseUp().
LLHandle<LLParcelSelection> LLToolSelectLand::mSelection [protected] |
Definition at line 78 of file lltoolselectland.h.
Referenced by handleDeselect(), and handleMouseUp().
LLVector3d LLToolSelectLand::mWestSouthBottom [protected] |
Definition at line 74 of file lltoolselectland.h.
Referenced by handleHover(), handleMouseDown(), handleMouseUp(), and render().