LLToolCamera Class Reference

#include <lltoolfocus.h>

Inheritance diagram for LLToolCamera:

Inheritance graph
[legend]
Collaboration diagram for LLToolCamera:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLToolCamera ()
virtual ~LLToolCamera ()
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 onMouseCaptureLost ()
virtual void handleSelect ()
virtual void handleDeselect ()
virtual LLToolgetOverrideTool (MASK mask)
BOOL mouseSteerMode ()

Static Public Member Functions

static void pickCallback (S32 x, S32 y, MASK mask)

Protected Member Functions

void releaseMouse ()

Protected Attributes

S32 mAccumX
S32 mAccumY
S32 mMouseDownX
S32 mMouseDownY
BOOL mOutsideSlopX
BOOL mOutsideSlopY
BOOL mValidClickPoint
BOOL mMouseSteering
S32 mMouseUpX
S32 mMouseUpY
MASK mMouseUpMask

Detailed Description

Definition at line 37 of file lltoolfocus.h.


Constructor & Destructor Documentation

LLToolCamera::LLToolCamera (  ) 

Definition at line 73 of file lltoolfocus.cpp.

LLToolCamera::~LLToolCamera (  )  [virtual]

Definition at line 89 of file lltoolfocus.cpp.


Member Function Documentation

virtual LLTool* LLToolCamera::getOverrideTool ( MASK  mask  )  [inline, virtual]

Reimplemented from LLTool.

Definition at line 53 of file lltoolfocus.h.

References NULL.

void LLToolCamera::handleDeselect (  )  [virtual]

Reimplemented from LLTool.

Definition at line 102 of file lltoolfocus.cpp.

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

Reimplemented from LLTool.

Definition at line 317 of file lltoolfocus.cpp.

References LLAgent::cameraOrbitAround(), LLAgent::cameraOrbitOver(), LLAgent::cameraPanLeft(), LLAgent::cameraPanUp(), LLAgent::cameraZoomIn(), DEG_TO_RAD, FALSE, gAgent, gCameraBtnOrbit, gCameraBtnPan, LLAgent::getCameraPositionGlobal(), LLViewerWindow::getCurrentMouseDX(), LLViewerWindow::getCurrentMouseDY(), LLAgent::getFocusGlobal(), LLViewerWindow::getWindowWidth(), gViewerWindow, LLTool::hasMouseCapture(), llabs(), lldebugst, llendl, mAccumX, mAccumY, MASK_ALT, MASK_ORBIT, MASK_PAN, mMouseSteering, mOutsideSlopX, mOutsideSlopY, LLViewerWindow::moveCursorToCenter(), mValidClickPoint, LLVector3d::normVec(), S32, LLViewerWindow::setCursor(), LLViewerWindow::showCursor(), SLOP_RANGE, TRUE, UI_CURSOR_NO, UI_CURSOR_TOOLCAMERA, UI_CURSOR_TOOLPAN, and UI_CURSOR_TOOLZOOMIN.

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

Reimplemented from LLTool.

Definition at line 107 of file lltoolfocus.cpp.

References FALSE, gViewerWindow, LLTool::handleMouseDown(), LLViewerWindow::hideCursor(), LLViewerWindow::hitObjectOrLandGlobalAsync(), mAccumX, mAccumY, mMouseUpMask, mMouseUpX, mMouseUpY, mOutsideSlopX, mOutsideSlopY, mValidClickPoint, pickCallback(), LLTool::setMouseCapture(), and TRUE.

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

Reimplemented from LLTool.

Definition at line 269 of file lltoolfocus.cpp.

References CAMERA_MODE_CUSTOMIZE_AVATAR, FALSE, gAgent, gCamera, LLAgent::getCameraMode(), LLAgent::getFocusGlobal(), LLAgent::getPosAgentFromGlobal(), gViewerWindow, LLTool::hasMouseCapture(), mMouseDownX, mMouseDownY, mMouseSteering, mMouseUpMask, mMouseUpX, mMouseUpY, LLViewerWindow::moveCursorToCenter(), mValidClickPoint, LLViewerCamera::projectPosAgentToScreen(), releaseMouse(), LLUI::setCursorPositionScreen(), LLTool::setMouseCapture(), and TRUE.

void LLToolCamera::handleSelect (  )  [virtual]

Reimplemented from LLTool.

Definition at line 93 of file lltoolfocus.cpp.

References gFloaterTools, and LLFloaterTools::setStatusText().

BOOL LLToolCamera::mouseSteerMode (  )  [inline]

Definition at line 56 of file lltoolfocus.h.

References mMouseSteering.

Referenced by agent_turn_left(), and agent_turn_right().

void LLToolCamera::onMouseCaptureLost (  )  [virtual]

Reimplemented from LLTool.

Definition at line 464 of file lltoolfocus.cpp.

References releaseMouse().

void LLToolCamera::pickCallback ( S32  x,
S32  y,
MASK  mask 
) [static]

Definition at line 136 of file lltoolfocus.cpp.

References ANIMATE, LLAgent::calcCustomizeAvatarUIOffset(), CAMERA_MODE_CUSTOMIZE_AVATAR, LLAgent::cameraThirdPerson(), FALSE, LLVOAvatar::findAvatarFromAttachment(), gAgent, gCamera, LLAgent::getAvatarObject(), LLControlGroup::getBOOL(), LLAgent::getCameraMode(), LLAgent::getCameraPositionGlobal(), LLToolMgr::getCurrentTool(), LLCoordFrame::getLeftAxis(), LLViewerWindow::getLeftMouseDown(), LLTool::getName(), LLSelectMgr::getSelection(), gLastHitObjectID, gLastHitObjectOffset, gLastHitPosGlobal, gMorphView, gSavedSettings, gSelectMgr, gToolCamera, gToolMgr, gViewerWindow, LLTool::hasMouseCapture(), LLViewerObject::isAttachment(), LLVector3d::isExactlyZero(), LLViewerObject::isHUDAttachment(), LLViewerWindow::lastObjectHit(), MASK_ALT, LLVOAvatar::mIsSelf, mMouseDownX, mMouseDownY, mMouseSteering, LLViewerWindow::moveCursorToCenter(), mValidClickPoint, SELECT_TYPE_HUD, LLMorphView::setCameraDrivenByKeys(), LLAgent::setCameraPosAndFocusGlobal(), LLAgent::setFocusGlobal(), LLAgent::setFocusOnAvatar(), and TRUE.

Referenced by handleMouseDown(), and LLToolPie::pickAndShowMenu().

void LLToolCamera::releaseMouse (  )  [protected]

Definition at line 251 of file lltoolfocus.cpp.

References LLToolMgr::clearTransientTool(), FALSE, gToolMgr, gViewerWindow, LLTool::handleMouseUp(), mMouseSteering, mMouseUpMask, mMouseUpX, mMouseUpY, mOutsideSlopX, mOutsideSlopY, mValidClickPoint, and LLViewerWindow::showCursor().

Referenced by handleMouseUp(), and onMouseCaptureLost().


Member Data Documentation

S32 LLToolCamera::mAccumX [protected]

Definition at line 64 of file lltoolfocus.h.

Referenced by handleHover(), and handleMouseDown().

S32 LLToolCamera::mAccumY [protected]

Definition at line 65 of file lltoolfocus.h.

Referenced by handleHover(), and handleMouseDown().

S32 LLToolCamera::mMouseDownX [protected]

Definition at line 66 of file lltoolfocus.h.

Referenced by handleMouseUp(), and pickCallback().

S32 LLToolCamera::mMouseDownY [protected]

Definition at line 67 of file lltoolfocus.h.

Referenced by handleMouseUp(), and pickCallback().

BOOL LLToolCamera::mMouseSteering [protected]

Definition at line 71 of file lltoolfocus.h.

Referenced by handleHover(), handleMouseUp(), mouseSteerMode(), pickCallback(), and releaseMouse().

MASK LLToolCamera::mMouseUpMask [protected]

Definition at line 74 of file lltoolfocus.h.

Referenced by handleMouseDown(), handleMouseUp(), and releaseMouse().

S32 LLToolCamera::mMouseUpX [protected]

Definition at line 72 of file lltoolfocus.h.

Referenced by handleMouseDown(), handleMouseUp(), and releaseMouse().

S32 LLToolCamera::mMouseUpY [protected]

Definition at line 73 of file lltoolfocus.h.

Referenced by handleMouseDown(), handleMouseUp(), and releaseMouse().

BOOL LLToolCamera::mOutsideSlopX [protected]

Definition at line 68 of file lltoolfocus.h.

Referenced by handleHover(), handleMouseDown(), and releaseMouse().

BOOL LLToolCamera::mOutsideSlopY [protected]

Definition at line 69 of file lltoolfocus.h.

Referenced by handleHover(), handleMouseDown(), and releaseMouse().

BOOL LLToolCamera::mValidClickPoint [protected]

Definition at line 70 of file lltoolfocus.h.

Referenced by handleHover(), handleMouseDown(), handleMouseUp(), pickCallback(), and releaseMouse().


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