MeVisLab Toolbox Reference
|
Go to the source code of this file.
Macros | |
#define | XV_LEFT_MOUSEBUTTON 1 |
Mouse button macros, definitions, mappings, and events. More... | |
#define | XV_MIDDLE_MOUSEBUTTON 2 |
#define | XV_RIGHT_MOUSEBUTTON 3 |
#define | XV_MAP_BUTTON(a) (a) |
For TGS inventor and our own SoQt implementation everything is OK. More... | |
#define | XV_MOUSE_PRESS_EVENT(EVENT, BUTTON) (SoMouseButtonEvent::isButtonPressEvent(EVENT,XV_MAP_BUTTON(SoMouseButtonEvent::BUTTON))) |
#define | XV_MOUSE_RELEASE_EVENT(EVENT, BUTTON) (SoMouseButtonEvent::isButtonReleaseEvent(EVENT,XV_MAP_BUTTON(SoMouseButtonEvent::BUTTON))) |
#define XV_LEFT_MOUSEBUTTON 1 |
Mouse button macros, definitions, mappings, and events.
XV_MAP_BUTTON() is a macro that must be used in any code calling SoMouseButtonEvent::getButton() to map the mouse button to the following defines. These defines should be used instead of the SoMouseButtonEvent::BUTTON1 ... BUTTON3 Example: int button = XV_MAP_BOTTON(event->getButton())
Definition at line 22 of file XVMouseButtons.h.
#define XV_MAP_BUTTON | ( | a | ) | (a) |
For TGS inventor and our own SoQt implementation everything is OK.
Definition at line 27 of file XVMouseButtons.h.
#define XV_MIDDLE_MOUSEBUTTON 2 |
Definition at line 23 of file XVMouseButtons.h.
#define XV_MOUSE_PRESS_EVENT | ( | EVENT, | |
BUTTON | |||
) | (SoMouseButtonEvent::isButtonPressEvent(EVENT,XV_MAP_BUTTON(SoMouseButtonEvent::BUTTON))) |
Definition at line 30 of file XVMouseButtons.h.
#define XV_MOUSE_RELEASE_EVENT | ( | EVENT, | |
BUTTON | |||
) | (SoMouseButtonEvent::isButtonReleaseEvent(EVENT,XV_MAP_BUTTON(SoMouseButtonEvent::BUTTON))) |
Definition at line 33 of file XVMouseButtons.h.
#define XV_RIGHT_MOUSEBUTTON 3 |
Definition at line 24 of file XVMouseButtons.h.