#include <lltoolpipette.h>
Inheritance diagram for LLToolPipette:
Public Types | |
typedef void(*) | select_callback (const LLTextureEntry &te, void *data) |
Public Member Functions | |
LLToolPipette () | |
virtual | ~LLToolPipette () |
virtual BOOL | handleMouseDown (S32 x, S32 y, MASK mask) |
virtual BOOL | handleMouseUp (S32 x, S32 y, MASK mask) |
virtual BOOL | handleHover (S32 x, S32 y, MASK mask) |
virtual BOOL | handleToolTip (S32 x, S32 y, LLString &msg, LLRect *sticky_rect_screen) |
void | setSelectCallback (select_callback callback, void *user_data) |
void | setResult (BOOL success, const LLString &msg) |
Static Public Member Functions | |
static void | pickCallback (S32 x, S32 y, MASK mask) |
Protected Attributes | |
LLTextureEntry | mTextureEntry |
select_callback | mSelectCallback |
BOOL | mSuccess |
LLString | mTooltipMsg |
void * | mUserData |
Definition at line 45 of file lltoolpipette.h.
typedef void(*) LLToolPipette::select_callback(const LLTextureEntry &te, void *data) |
Definition at line 57 of file lltoolpipette.h.
LLToolPipette::LLToolPipette | ( | ) |
LLToolPipette::~LLToolPipette | ( | ) | [virtual] |
Definition at line 65 of file lltoolpipette.cpp.
Reimplemented from LLTool.
Definition at line 89 of file lltoolpipette.cpp.
References FALSE, gPickFaces, gViewerWindow, LLTool::hasMouseCapture(), LLViewerWindow::hitObjectOrLandGlobalAsync(), mSuccess, pickCallback(), LLViewerWindow::setCursor(), TRUE, UI_CURSOR_NO, and UI_CURSOR_PIPETTE.
Reimplemented from LLTool.
Definition at line 69 of file lltoolpipette.cpp.
References gPickFaces, gViewerWindow, LLViewerWindow::hitObjectOrLandGlobalAsync(), mSuccess, mTooltipMsg, pickCallback(), LLTool::setMouseCapture(), and TRUE.
Reimplemented from LLTool.
Definition at line 79 of file lltoolpipette.cpp.
References LLToolMgr::clearTransientTool(), FALSE, gSelectMgr, gToolMgr, mSuccess, LLTool::setMouseCapture(), TRUE, and LLSelectMgr::unhighlightAll().
BOOL LLToolPipette::handleToolTip | ( | S32 | x, | |
S32 | y, | |||
LLString & | msg, | |||
LLRect * | sticky_rect_screen | |||
) | [virtual] |
Reimplemented from LLTool.
Definition at line 101 of file lltoolpipette.cpp.
References FALSE, mTooltipMsg, LLRectBase< Type >::setCenterAndSize(), and TRUE.
Definition at line 113 of file lltoolpipette.cpp.
References LLPrimitive::getPCode(), LLPrimitive::getTE(), gLastHitObjectFace, gSelectMgr, gToolPipette, gViewerWindow, LLSelectMgr::highlightObjectOnly(), LLViewerWindow::lastObjectHit(), LL_PCODE_VOLUME, mSelectCallback, mTextureEntry, mUserData, and LLSelectMgr::unhighlightAll().
Referenced by handleHover(), and handleMouseDown().
Definition at line 139 of file lltoolpipette.cpp.
References mSuccess, and mTooltipMsg.
Referenced by LLFloaterTexturePicker::onTextureSelect().
void LLToolPipette::setSelectCallback | ( | select_callback | callback, | |
void * | user_data | |||
) |
Definition at line 133 of file lltoolpipette.cpp.
References mSelectCallback, and mUserData.
Referenced by LLFloaterTexturePicker::onBtnPipette(), and LLFloaterColorPicker::onClickPipette().
select_callback LLToolPipette::mSelectCallback [protected] |
Definition at line 65 of file lltoolpipette.h.
Referenced by LLToolPipette(), pickCallback(), and setSelectCallback().
BOOL LLToolPipette::mSuccess [protected] |
Definition at line 66 of file lltoolpipette.h.
Referenced by handleHover(), handleMouseDown(), handleMouseUp(), and setResult().
LLTextureEntry LLToolPipette::mTextureEntry [protected] |
LLString LLToolPipette::mTooltipMsg [protected] |
Definition at line 67 of file lltoolpipette.h.
Referenced by handleMouseDown(), handleToolTip(), and setResult().
void* LLToolPipette::mUserData [protected] |
Definition at line 68 of file lltoolpipette.h.
Referenced by LLToolPipette(), pickCallback(), and setSelectCallback().