LLToolCompGun Class Reference

#include <lltoolcomp.h>

Inheritance diagram for LLToolCompGun:

Inheritance graph
[legend]
Collaboration diagram for LLToolCompGun:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLToolCompGun ()
virtual ~LLToolCompGun ()
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleDoubleClick (S32 x, S32 y, MASK mask)
virtual BOOL handleRightMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleScrollWheel (S32 x, S32 y, S32 clicks)
virtual void onMouseCaptureLost ()
virtual void handleSelect ()
virtual void handleDeselect ()

Protected Attributes

LLToolGunmGun
LLToolGrabmGrab
LLToolmNull

Detailed Description

Definition at line 214 of file lltoolcomp.h.


Constructor & Destructor Documentation

LLToolCompGun::LLToolCompGun (  ) 

Definition at line 644 of file lltoolcomp.cpp.

References LLTool::LLTool(), LLToolComposite::mDefault, mGrab, mGun, mNull, and LLToolComposite::setCurrentTool().

LLToolCompGun::~LLToolCompGun (  )  [virtual]

Definition at line 656 of file lltoolcomp.cpp.

References mGrab, mGun, mNull, and NULL.


Member Function Documentation

void LLToolCompGun::handleDeselect (  )  [virtual]

Reimplemented from LLToolComposite.

Definition at line 783 of file lltoolcomp.cpp.

References FALSE, LLToolComposite::handleDeselect(), and LLTool::setMouseCapture().

BOOL LLToolCompGun::handleDoubleClick ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Implements LLToolComposite.

Definition at line 721 of file lltoolcomp.cpp.

References AGENT_CONTROL_ML_LBUTTON_DOWN, FALSE, gAgent, LLToolMgr::getCurrentToolset(), gGrabTransientTool, gToolGrab, gToolMgr, LLToolGrab::handleDoubleClick(), LLAgent::leftButtonGrabbed(), mGrab, LLToolset::selectTool(), and LLAgent::setControlFlags().

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

Reimplemented from LLToolComposite.

Definition at line 668 of file lltoolcomp.cpp.

References LLSelectMgr::deselectAll(), LLViewerWindow::getLeftMouseDown(), LLView::getVisible(), gPopupMenuView, gSelectMgr, gViewerWindow, LLTool::handleHover(), MASK_ALT, LLToolComposite::mCur, mGrab, mGun, mNull, LLToolComposite::setCurrentTool(), LLTool::setMouseCapture(), and TRUE.

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

Implements LLToolComposite.

Definition at line 704 of file lltoolcomp.cpp.

References AGENT_CONTROL_ML_LBUTTON_DOWN, FALSE, gAgent, LLToolMgr::getCurrentToolset(), gGrabTransientTool, gToolGrab, gToolMgr, LLToolGrab::handleMouseDown(), LLAgent::leftButtonGrabbed(), mGrab, LLToolset::selectTool(), and LLAgent::setControlFlags().

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

Reimplemented from LLToolComposite.

Definition at line 756 of file lltoolcomp.cpp.

References AGENT_CONTROL_ML_LBUTTON_UP, gAgent, mGun, LLAgent::setControlFlags(), LLToolComposite::setCurrentTool(), and TRUE.

BOOL LLToolCompGun::handleRightMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLToolComposite.

Definition at line 738 of file lltoolcomp.cpp.

References TRUE.

BOOL LLToolCompGun::handleScrollWheel ( S32  x,
S32  y,
S32  clicks 
) [virtual]

Reimplemented from LLToolComposite.

Definition at line 790 of file lltoolcomp.cpp.

References LLAgent::changeCameraToDefault(), gAgent, and TRUE.

void LLToolCompGun::handleSelect (  )  [virtual]

Reimplemented from LLToolComposite.

Definition at line 777 of file lltoolcomp.cpp.

References LLToolComposite::handleSelect(), LLTool::setMouseCapture(), and TRUE.

void LLToolCompGun::onMouseCaptureLost (  )  [virtual]

Reimplemented from LLToolComposite.

Definition at line 763 of file lltoolcomp.cpp.

References LLTool::mComposite, LLToolComposite::mCur, mGun, LLTool::onMouseCaptureLost(), LLToolComposite::onMouseCaptureLost(), and LLToolComposite::setCurrentTool().


Member Data Documentation

LLToolGrab* LLToolCompGun::mGrab [protected]

Definition at line 233 of file lltoolcomp.h.

Referenced by handleDoubleClick(), handleHover(), handleMouseDown(), LLToolCompGun(), and ~LLToolCompGun().

LLToolGun* LLToolCompGun::mGun [protected]

Definition at line 232 of file lltoolcomp.h.

Referenced by handleHover(), handleMouseUp(), LLToolCompGun(), onMouseCaptureLost(), and ~LLToolCompGun().

LLTool* LLToolCompGun::mNull [protected]

Definition at line 234 of file lltoolcomp.h.

Referenced by handleHover(), LLToolCompGun(), and ~LLToolCompGun().


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