LLToolComposite Class Reference

#include <lltoolcomp.h>

Inheritance diagram for LLToolComposite:

Inheritance graph
[legend]
Collaboration diagram for LLToolComposite:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLToolComposite (const LLString &name)
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)=0
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleDoubleClick (S32 x, S32 y, MASK mask)=0
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual BOOL handleScrollWheel (S32 x, S32 y, S32 clicks)
virtual BOOL handleRightMouseDown (S32 x, S32 y, MASK mask)
virtual LLViewerObjectgetEditingObject ()
virtual LLVector3d getEditingPointGlobal ()
virtual BOOL isEditing ()
virtual void stopEditing ()
virtual BOOL clipMouseWhenDown ()
virtual void handleSelect ()
virtual void handleDeselect ()
virtual void render ()
virtual void draw ()
virtual BOOL handleKey (KEY key, MASK mask)
virtual void onMouseCaptureLost ()
virtual void screenPointToLocal (S32 screen_x, S32 screen_y, S32 *local_x, S32 *local_y) const
virtual void localPointToScreen (S32 local_x, S32 local_y, S32 *screen_x, S32 *screen_y) const
BOOL isSelecting ()

Static Public Attributes

static const LLString sNameComp

Protected Member Functions

void setCurrentTool (LLTool *new_tool)
LLToolgetCurrentTool ()
void setToolFromMask (MASK mask, LLTool *normal)

Protected Attributes

LLToolmCur
LLToolmDefault
BOOL mSelected
BOOL mMouseDown
LLManipmManip
LLToolSelectRectmSelectRect

Detailed Description

Definition at line 47 of file lltoolcomp.h.


Constructor & Destructor Documentation

LLToolComposite::LLToolComposite ( const LLString name  ) 

Definition at line 96 of file lltoolcomp.cpp.


Member Function Documentation

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

Reimplemented from LLTool.

Definition at line 66 of file lltoolcomp.h.

References LLTool::clipMouseWhenDown(), and mCur.

virtual void LLToolComposite::draw ( void   )  [inline, virtual]

Reimplemented from LLTool.

Definition at line 72 of file lltoolcomp.h.

References LLTool::draw(), and mCur.

LLTool* LLToolComposite::getCurrentTool (  )  [inline, protected]

Definition at line 87 of file lltoolcomp.h.

References mCur.

virtual LLViewerObject* LLToolComposite::getEditingObject (  )  [inline, virtual]

Reimplemented from LLTool.

Definition at line 61 of file lltoolcomp.h.

References LLTool::getEditingObject(), and mCur.

virtual LLVector3d LLToolComposite::getEditingPointGlobal (  )  [inline, virtual]

Reimplemented from LLTool.

Definition at line 62 of file lltoolcomp.h.

References LLTool::getEditingPointGlobal(), and mCur.

virtual void LLToolComposite::handleDeselect (  )  [inline, virtual]

Reimplemented from LLTool.

Reimplemented in LLToolCompGun.

Definition at line 69 of file lltoolcomp.h.

References FALSE, LLTool::handleDeselect(), mCur, mDefault, and mSelected.

Referenced by LLToolCompGun::handleDeselect().

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

Reimplemented from LLTool.

Implemented in LLToolCompInspect, LLToolCompTranslate, LLToolCompScale, LLToolCompRotate, LLToolCompCreate, and LLToolCompGun.

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

Reimplemented from LLTool.

Reimplemented in LLToolCompTranslate, LLToolCompScale, LLToolCompRotate, and LLToolCompGun.

Definition at line 57 of file lltoolcomp.h.

References LLTool::handleHover(), and mCur.

virtual BOOL LLToolComposite::handleKey ( KEY  key,
MASK  mask 
) [inline, virtual]

Reimplemented from LLTool.

Definition at line 74 of file lltoolcomp.h.

References LLTool::handleKey(), and mCur.

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

Reimplemented from LLTool.

Implemented in LLToolCompInspect, LLToolCompTranslate, LLToolCompScale, LLToolCompRotate, LLToolCompCreate, and LLToolCompGun.

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

Reimplemented from LLTool.

Reimplemented in LLToolCompTranslate, LLToolCompScale, LLToolCompRotate, LLToolCompCreate, and LLToolCompGun.

Definition at line 104 of file lltoolcomp.cpp.

References LLTool::handleMouseUp(), mCur, mDefault, and setCurrentTool().

Referenced by LLToolCompRotate::handleMouseUp(), LLToolCompCreate::handleMouseUp(), LLToolCompScale::handleMouseUp(), and LLToolCompTranslate::handleMouseUp().

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

Reimplemented from LLTool.

Reimplemented in LLToolCompGun.

Definition at line 59 of file lltoolcomp.h.

References LLTool::handleRightMouseDown(), and mCur.

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

Reimplemented from LLTool.

Reimplemented in LLToolCompGun.

Definition at line 58 of file lltoolcomp.h.

References LLTool::handleScrollWheel(), and mCur.

void LLToolComposite::handleSelect (  )  [virtual]

Reimplemented from LLTool.

Reimplemented in LLToolCompGun.

Definition at line 125 of file lltoolcomp.cpp.

References LLControlGroup::getBOOL(), gSavedSettings, gSelectMgr, LLTool::handleSelect(), mCur, mDefault, mSelected, LLSelectMgr::promoteSelectionToRoot(), and TRUE.

Referenced by LLToolCompGun::handleSelect().

virtual BOOL LLToolComposite::isEditing (  )  [inline, virtual]

Reimplemented from LLTool.

Definition at line 63 of file lltoolcomp.h.

References LLTool::isEditing(), and mCur.

BOOL LLToolComposite::isSelecting (  ) 

Definition at line 120 of file lltoolcomp.cpp.

References mCur, and mSelectRect.

virtual void LLToolComposite::localPointToScreen ( S32  local_x,
S32  local_y,
S32 screen_x,
S32 screen_y 
) const [inline, virtual]

Reimplemented from LLTool.

Definition at line 81 of file lltoolcomp.h.

References LLTool::localPointToScreen(), and mCur.

void LLToolComposite::onMouseCaptureLost (  )  [virtual]

Reimplemented from LLTool.

Reimplemented in LLToolCompGun.

Definition at line 114 of file lltoolcomp.cpp.

References mCur, mDefault, LLTool::onMouseCaptureLost(), and setCurrentTool().

Referenced by LLToolCompGun::onMouseCaptureLost().

virtual void LLToolComposite::render (  )  [inline, virtual]

Reimplemented from LLTool.

Reimplemented in LLToolCompTranslate, LLToolCompScale, and LLToolCompRotate.

Definition at line 71 of file lltoolcomp.h.

References mCur, and LLTool::render().

virtual void LLToolComposite::screenPointToLocal ( S32  screen_x,
S32  screen_y,
S32 local_x,
S32 local_y 
) const [inline, virtual]

Reimplemented from LLTool.

Definition at line 78 of file lltoolcomp.h.

References mCur, and LLTool::screenPointToLocal().

void LLToolComposite::setCurrentTool ( LLTool new_tool  )  [protected]

Definition at line 79 of file lltoolcomp.cpp.

References LLTool::handleDeselect(), LLTool::handleSelect(), mCur, and mSelected.

Referenced by LLToolCompGun::handleHover(), LLToolCompRotate::handleHover(), LLToolCompScale::handleHover(), LLToolCompTranslate::handleHover(), LLToolCompCreate::handleMouseDown(), LLToolCompGun::handleMouseUp(), LLToolCompCreate::handleMouseUp(), handleMouseUp(), LLToolCompGun::LLToolCompGun(), LLToolCompGun::onMouseCaptureLost(), onMouseCaptureLost(), LLToolCompRotate::pickCallback(), LLToolCompCreate::pickCallback(), LLToolCompScale::pickCallback(), LLToolCompTranslate::pickCallback(), and LLToolCompInspect::pickCallback().

void LLToolComposite::setToolFromMask ( MASK  mask,
LLTool normal 
) [protected]

virtual void LLToolComposite::stopEditing (  )  [inline, virtual]

Reimplemented from LLTool.

Definition at line 64 of file lltoolcomp.h.

References mCur, mDefault, and LLTool::stopEditing().


Member Data Documentation

LLTool* LLToolComposite::mCur [protected]

Definition at line 92 of file lltoolcomp.h.

Referenced by clipMouseWhenDown(), draw(), getCurrentTool(), getEditingObject(), getEditingPointGlobal(), handleDeselect(), handleHover(), LLToolCompGun::handleHover(), LLToolCompRotate::handleHover(), LLToolCompScale::handleHover(), LLToolCompTranslate::handleHover(), handleKey(), handleMouseUp(), handleRightMouseDown(), handleScrollWheel(), handleSelect(), isEditing(), isSelecting(), LLToolCompCreate::LLToolCompCreate(), LLToolCompRotate::LLToolCompRotate(), LLToolCompScale::LLToolCompScale(), LLToolCompTranslate::LLToolCompTranslate(), localPointToScreen(), LLToolCompGun::onMouseCaptureLost(), onMouseCaptureLost(), LLToolCompRotate::pickCallback(), LLToolCompScale::pickCallback(), render(), LLToolCompRotate::render(), LLToolCompScale::render(), LLToolCompTranslate::render(), screenPointToLocal(), setCurrentTool(), and stopEditing().

LLTool* LLToolComposite::mDefault [protected]

Definition at line 93 of file lltoolcomp.h.

Referenced by handleDeselect(), handleMouseUp(), handleSelect(), LLToolCompCreate::LLToolCompCreate(), LLToolCompGun::LLToolCompGun(), LLToolCompInspect::LLToolCompInspect(), LLToolCompRotate::LLToolCompRotate(), LLToolCompScale::LLToolCompScale(), LLToolCompTranslate::LLToolCompTranslate(), onMouseCaptureLost(), and stopEditing().

LLManip* LLToolComposite::mManip [protected]

Definition at line 96 of file lltoolcomp.h.

Referenced by LLToolCompRotate::handleDoubleClick(), LLToolCompScale::handleDoubleClick(), LLToolCompTranslate::handleDoubleClick(), LLToolCompRotate::handleHover(), LLToolCompScale::handleHover(), LLToolCompTranslate::handleHover(), LLToolCompRotate::LLToolCompRotate(), LLToolCompScale::LLToolCompScale(), LLToolCompTranslate::LLToolCompTranslate(), LLToolCompRotate::pickCallback(), LLToolCompScale::pickCallback(), LLToolCompTranslate::pickCallback(), LLToolCompRotate::render(), LLToolCompScale::render(), LLToolCompTranslate::render(), LLToolCompRotate::~LLToolCompRotate(), LLToolCompScale::~LLToolCompScale(), and LLToolCompTranslate::~LLToolCompTranslate().

BOOL LLToolComposite::mMouseDown [protected]

Definition at line 95 of file lltoolcomp.h.

Referenced by LLToolCompRotate::handleMouseDown(), LLToolCompCreate::handleMouseDown(), LLToolCompScale::handleMouseDown(), LLToolCompTranslate::handleMouseDown(), LLToolCompInspect::handleMouseDown(), LLToolCompRotate::handleMouseUp(), LLToolCompCreate::handleMouseUp(), LLToolCompScale::handleMouseUp(), LLToolCompTranslate::handleMouseUp(), LLToolCompRotate::pickCallback(), LLToolCompScale::pickCallback(), LLToolCompTranslate::pickCallback(), and LLToolCompInspect::pickCallback().

BOOL LLToolComposite::mSelected [protected]

Definition at line 94 of file lltoolcomp.h.

Referenced by handleDeselect(), handleSelect(), and setCurrentTool().

LLToolSelectRect* LLToolComposite::mSelectRect [protected]

Definition at line 97 of file lltoolcomp.h.

Referenced by isSelecting(), LLToolCompCreate::LLToolCompCreate(), LLToolCompInspect::LLToolCompInspect(), LLToolCompRotate::LLToolCompRotate(), LLToolCompScale::LLToolCompScale(), LLToolCompTranslate::LLToolCompTranslate(), LLToolCompRotate::pickCallback(), LLToolCompCreate::pickCallback(), LLToolCompScale::pickCallback(), LLToolCompTranslate::pickCallback(), LLToolCompInspect::pickCallback(), LLToolCompCreate::~LLToolCompCreate(), LLToolCompInspect::~LLToolCompInspect(), LLToolCompRotate::~LLToolCompRotate(), LLToolCompScale::~LLToolCompScale(), and LLToolCompTranslate::~LLToolCompTranslate().

const LLString LLToolComposite::sNameComp [static]

Definition at line 100 of file lltoolcomp.h.


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