#include <lltoolfocus.h>
Inheritance diagram for LLToolCamera:


| 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 LLTool * | getOverrideTool (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 | 
Definition at line 37 of file lltoolfocus.h.
| LLToolCamera::LLToolCamera | ( | ) | 
Definition at line 73 of file lltoolfocus.cpp.
| LLToolCamera::~LLToolCamera | ( | ) |  [virtual] | 
Definition at line 89 of file lltoolfocus.cpp.
| void LLToolCamera::handleDeselect | ( | ) |  [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.
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.
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().
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().
| S32 LLToolCamera::mAccumX  [protected] | 
| S32 LLToolCamera::mAccumY  [protected] | 
| S32 LLToolCamera::mMouseDownX  [protected] | 
| S32 LLToolCamera::mMouseDownY  [protected] | 
| 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().
 1.4.7
 1.4.7