#include <lltoolcomp.h>
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 LLViewerObject * | getEditingObject () |
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) |
LLTool * | getCurrentTool () |
void | setToolFromMask (MASK mask, LLTool *normal) |
Protected Attributes | |
LLTool * | mCur |
LLTool * | mDefault |
BOOL | mSelected |
BOOL | mMouseDown |
LLManip * | mManip |
LLToolSelectRect * | mSelectRect |
Definition at line 47 of file lltoolcomp.h.
LLToolComposite::LLToolComposite | ( | const LLString & | name | ) |
Definition at line 87 of file lltoolcomp.cpp.
Reimplemented from LLTool.
Implemented in LLToolCompInspect, LLToolCompTranslate, LLToolCompScale, LLToolCompRotate, LLToolCompCreate, and LLToolCompGun.
Reimplemented from LLTool.
Reimplemented in LLToolCompTranslate, LLToolCompScale, LLToolCompRotate, LLToolCompCreate, and LLToolCompGun.
Definition at line 95 of file lltoolcomp.cpp.
References LLTool::handleMouseUp(), mCur, mDefault, and setCurrentTool().
Referenced by LLToolCompRotate::handleMouseUp(), LLToolCompCreate::handleMouseUp(), LLToolCompScale::handleMouseUp(), and LLToolCompTranslate::handleMouseUp().
Reimplemented from LLTool.
Implemented in LLToolCompInspect, LLToolCompTranslate, LLToolCompScale, LLToolCompRotate, LLToolCompCreate, and LLToolCompGun.
Reimplemented from LLTool.
Reimplemented in LLToolCompTranslate, LLToolCompScale, LLToolCompRotate, and LLToolCompGun.
Definition at line 57 of file lltoolcomp.h.
References LLTool::handleHover(), and mCur.
Reimplemented from LLTool.
Reimplemented in LLToolCompGun.
Definition at line 58 of file lltoolcomp.h.
References LLTool::handleScrollWheel(), and mCur.
Reimplemented from LLTool.
Reimplemented in LLToolCompGun.
Definition at line 59 of file lltoolcomp.h.
References LLTool::handleRightMouseDown(), and 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 BOOL LLToolComposite::isEditing | ( | ) | [inline, virtual] |
Reimplemented from LLTool.
Definition at line 63 of file lltoolcomp.h.
References LLTool::isEditing(), and mCur.
virtual void LLToolComposite::stopEditing | ( | ) | [inline, virtual] |
Reimplemented from LLTool.
Definition at line 64 of file lltoolcomp.h.
References mCur, mDefault, and LLTool::stopEditing().
virtual BOOL LLToolComposite::clipMouseWhenDown | ( | ) | [inline, virtual] |
Reimplemented from LLTool.
Definition at line 66 of file lltoolcomp.h.
References LLTool::clipMouseWhenDown(), and mCur.
void LLToolComposite::handleSelect | ( | ) | [virtual] |
Reimplemented from LLTool.
Reimplemented in LLToolCompGun.
Definition at line 116 of file lltoolcomp.cpp.
References LLControlGroup::getBOOL(), LLSingleton< LLSelectMgr >::getInstance(), LLTool::handleSelect(), mCur, mDefault, mSelected, LLSelectMgr::promoteSelectionToRoot(), and TRUE.
Referenced by LLToolCompGun::handleSelect().
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 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::draw | ( | void | ) | [inline, virtual] |
Reimplemented from LLTool.
Definition at line 72 of file lltoolcomp.h.
References LLTool::draw(), and mCur.
Reimplemented from LLTool.
Definition at line 74 of file lltoolcomp.h.
References LLTool::handleKey(), and mCur.
void LLToolComposite::onMouseCaptureLost | ( | ) | [virtual] |
Reimplemented from LLTool.
Reimplemented in LLToolCompGun.
Definition at line 105 of file lltoolcomp.cpp.
References mCur, mDefault, LLTool::onMouseCaptureLost(), and setCurrentTool().
Referenced by LLToolCompGun::onMouseCaptureLost().
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().
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.
BOOL LLToolComposite::isSelecting | ( | ) |
void LLToolComposite::setCurrentTool | ( | LLTool * | new_tool | ) | [protected] |
Definition at line 70 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().
LLTool* LLToolComposite::getCurrentTool | ( | ) | [inline, protected] |
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().
BOOL LLToolComposite::mSelected [protected] |
Definition at line 94 of file lltoolcomp.h.
Referenced by handleDeselect(), handleSelect(), and setCurrentTool().
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().
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().
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.