#include <lltoolgun.h>
Inheritance diagram for LLToolGun:
Public Member Functions | |
LLToolGun (LLToolComposite *composite=NULL) | |
virtual void | draw () |
virtual void | handleSelect () |
virtual void | handleDeselect () |
virtual BOOL | handleMouseDown (S32 x, S32 y, MASK mask) |
virtual BOOL | handleHover (S32 x, S32 y, MASK mask) |
virtual LLTool * | getOverrideTool (MASK mask) |
virtual BOOL | clipMouseWhenDown () |
Private Attributes | |
LLPointer< LLViewerImage > | mCrosshairImg |
Definition at line 39 of file lltoolgun.h.
LLToolGun::LLToolGun | ( | LLToolComposite * | composite = NULL |
) |
Definition at line 50 of file lltoolgun.cpp.
References LLViewerImageList::getImage(), LLControlGroup::getString(), gImageList, gSavedSettings, mCrosshairImg, MIPMAP_FALSE, and TRUE.
virtual BOOL LLToolGun::clipMouseWhenDown | ( | ) | [inline, virtual] |
void LLToolGun::draw | ( | ) | [virtual] |
Reimplemented from LLTool.
Definition at line 136 of file lltoolgun.cpp.
References LLControlGroup::getBOOL(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gl_draw_image(), gSavedSettings, gViewerWindow, and mCrosshairImg.
void LLToolGun::handleDeselect | ( | ) | [virtual] |
Reimplemented from LLTool.
Definition at line 64 of file lltoolgun.cpp.
References FALSE, gViewerWindow, LLViewerWindow::moveCursorToCenter(), LLViewerWindow::mWindow, LLWindow::setMouseClipping(), and LLViewerWindow::showCursor().
Reimplemented from LLTool.
Definition at line 79 of file lltoolgun.cpp.
References LLAgent::cameraMouselook(), clamp_rescale(), f, gAgent, gCamera, LLCoordFrame::getAtAxis(), LLControlGroup::getBOOL(), LLViewerWindow::getCurrentMouseDX(), LLViewerWindow::getCurrentMouseDY(), LLAgent::getReferenceUpVector(), gInvertMouse, gMouseSensitivity, gSavedSettings, gSky, gViewerWindow, LLViewerWindow::hideCursor(), lldebugst, llendl, LLViewerWindow::moveCursorToCenter(), LLVector3::mV, LLAgent::pitch(), LLAgent::rotate(), S32, LLViewerWindow::setCursor(), LLSky::setOverrideSun(), LLSky::setSunDirection(), LLControlGroup::setVector3(), TRUE, UI_CURSOR_ARROW, VX, VY, and VZ.
Reimplemented from LLTool.
Definition at line 71 of file lltoolgun.cpp.
References LLToolMgr::getCurrentToolset(), gGrabTransientTool, gToolGrab, gToolMgr, LLToolGrab::handleMouseDown(), and LLToolset::selectTool().
void LLToolGun::handleSelect | ( | ) | [virtual] |
Reimplemented from LLTool.
Definition at line 57 of file lltoolgun.cpp.
References gViewerWindow, LLViewerWindow::hideCursor(), LLViewerWindow::moveCursorToCenter(), LLViewerWindow::mWindow, LLWindow::setMouseClipping(), and TRUE.
LLPointer<LLViewerImage> LLToolGun::mCrosshairImg [private] |