blob: cf6e81a5c7ab01f809cf317160278fb49c59e932 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/**
* @file lltoolobjpicker.h
* @brief LLToolObjPicker class header file
*
* Copyright (c) 2001-$CurrentYear$, Linden Research, Inc.
* $License$
*/
#ifndef LL_TOOLOBJPICKER_H
#define LL_TOOLOBJPICKER_H
#include "lltool.h"
#include "v3math.h"
#include "lluuid.h"
class LLToolObjPicker : public LLTool
{
public:
LLToolObjPicker();
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 void handleSelect();
virtual void handleDeselect();
virtual void onMouseCaptureLost();
virtual void setExitCallback(void (*callback)(void *), void *callback_data);
LLUUID getObjectID() const { return mHitObjectID; }
static void pickCallback(S32 x, S32 y, MASK mask);
protected:
BOOL mPicked;
LLUUID mHitObjectID;
void (*mExitCallback)(void *callback_data);
void *mExitCallbackData;
};
extern LLToolObjPicker* gToolObjPicker;
#endif
|