LLToolGun Class Reference

#include <lltoolgun.h>

Inheritance diagram for LLToolGun:

Inheritance graph
Collaboration diagram for LLToolGun:

Collaboration graph
List of all members.

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 LLToolgetOverrideTool (MASK mask)
virtual BOOL clipMouseWhenDown ()

Private Attributes

LLPointer< LLViewerImagemCrosshairImg

Detailed Description

Definition at line 39 of file lltoolgun.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

virtual BOOL LLToolGun::clipMouseWhenDown (  )  [inline, virtual]

Reimplemented from LLTool.

Definition at line 53 of file lltoolgun.h.

References FALSE.

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.

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

Reimplemented from LLTool.

Definition at line 52 of file lltoolgun.h.

References NULL.

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

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

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.

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

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.

Member Data Documentation

LLPointer<LLViewerImage> LLToolGun::mCrosshairImg [private]

Definition at line 56 of file lltoolgun.h.

Referenced by draw(), and LLToolGun().

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