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
void * mUserData


Detailed Description

Definition at line 45 of file lltoolpipette.h.


Member Typedef Documentation

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


Constructor & Destructor Documentation

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.


Member Function Documentation

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

Reimplemented from LLTool.

Definition at line 66 of file lltoolpipette.cpp.

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

Here is the call graph for this function:

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

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

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.

Here is the call graph for this function:

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

Here is the caller graph for this function:

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

Definition at line 136 of file lltoolpipette.cpp.

References mSuccess, and mTooltipMsg.

Referenced by LLFloaterTexturePicker::onTextureSelect().

Here is the caller graph for this function:

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


Member Data Documentation

Definition at line 64 of file lltoolpipette.h.

Referenced by pickCallback().

Definition at line 65 of file lltoolpipette.h.

Referenced by LLToolPipette(), pickCallback(), and setSelectCallback().

Definition at line 66 of file lltoolpipette.h.

Referenced by handleHover(), handleMouseDown(), handleMouseUp(), and setResult().

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 Fri May 16 09:17:46 2008 for SecondLife by  doxygen 1.5.5