#include <lltoolpipette.h>
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) |
LLToolPipette::LLToolPipette | ( | ) |
A tool to pick texture entry infro from objects in world (color/texture)
Definition at line 53 of file lltoolpipette.cpp.
References mSelectCallback, mUserData, and NULL.
LLToolPipette::~LLToolPipette | ( | ) | [virtual] |
Definition at line 62 of file lltoolpipette.cpp.
Reimplemented from LLTool.
Definition at line 66 of file lltoolpipette.cpp.
References gPickFaces, gViewerWindow, LLViewerWindow::hitObjectOrLandGlobalAsync(), mSuccess, mTooltipMsg, pickCallback(), LLTool::setMouseCapture(), and TRUE.
Reimplemented from LLTool.
Definition at line 76 of file lltoolpipette.cpp.
References LLToolMgr::clearTransientTool(), FALSE, LLSingleton< LLToolMgr >::getInstance(), LLSingleton< LLSelectMgr >::getInstance(), mSuccess, LLTool::setMouseCapture(), TRUE, and LLSelectMgr::unhighlightAll().
Reimplemented from LLTool.
Definition at line 86 of file lltoolpipette.cpp.
References FALSE, gPickFaces, gViewerWindow, LLTool::hasMouseCapture(), LLViewerWindow::hitObjectOrLandGlobalAsync(), mSuccess, pickCallback(), LLViewerWindow::setCursor(), TRUE, UI_CURSOR_NO, and UI_CURSOR_PIPETTE.
BOOL LLToolPipette::handleToolTip | ( | S32 | x, | |
S32 | y, | |||
LLString & | msg, | |||
LLRect * | sticky_rect_screen | |||
) | [virtual] |
Reimplemented from LLTool.
Definition at line 98 of file lltoolpipette.cpp.
References FALSE, mTooltipMsg, LLRectBase< Type >::setCenterAndSize(), and TRUE.
void LLToolPipette::setSelectCallback | ( | select_callback | callback, | |
void * | user_data | |||
) |
Definition at line 130 of file lltoolpipette.cpp.
References mSelectCallback, and mUserData.
Referenced by LLFloaterTexturePicker::onBtnPipette(), and LLFloaterColorPicker::onClickPipette().
Definition at line 136 of file lltoolpipette.cpp.
References mSuccess, and mTooltipMsg.
Referenced by LLFloaterTexturePicker::onTextureSelect().
Definition at line 110 of file lltoolpipette.cpp.
References LLSingleton< LLToolPipette >::getInstance(), LLSingleton< LLSelectMgr >::getInstance(), LLPrimitive::getPCode(), LLPrimitive::getTE(), gLastHitObjectFace, gViewerWindow, LLSelectMgr::highlightObjectOnly(), LLViewerWindow::lastObjectHit(), LL_PCODE_VOLUME, mSelectCallback, mTextureEntry, mUserData, and LLSelectMgr::unhighlightAll().
Referenced by handleHover(), and handleMouseDown().
LLTextureEntry LLToolPipette::mTextureEntry [protected] |
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().
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().