LLToolPipette Class Reference

#include <lltoolpipette.h>

Inheritance diagram for LLToolPipette:

Inheritance graph
[legend]
Collaboration diagram for LLToolPipette:

Collaboration graph
[legend]
List of all members.

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
voidmUserData

Detailed Description

Definition at line 45 of file lltoolpipette.h.


Member Typedef Documentation

typedef void(*) LLToolPipette::select_callback(const LLTextureEntry &te, void *data)

Definition at line 57 of file lltoolpipette.h.


Constructor & Destructor Documentation

LLToolPipette::LLToolPipette (  ) 

Definition at line 56 of file lltoolpipette.cpp.

References mSelectCallback, mUserData, and NULL.

LLToolPipette::~LLToolPipette (  )  [virtual]

Definition at line 65 of file lltoolpipette.cpp.


Member Function Documentation

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

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.

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

Reimplemented from LLTool.

Definition at line 69 of file lltoolpipette.cpp.

References gPickFaces, gViewerWindow, LLViewerWindow::hitObjectOrLandGlobalAsync(), mSuccess, mTooltipMsg, pickCallback(), LLTool::setMouseCapture(), and TRUE.

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

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.

void LLToolPipette::pickCallback ( S32  x,
S32  y,
MASK  mask 
) [static]

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().

void LLToolPipette::setResult ( BOOL  success,
const LLString msg 
)

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().


Member Data Documentation

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]

Definition at line 64 of file lltoolpipette.h.

Referenced by pickCallback().

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().


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