MeVisLab Toolbox Reference
XVMouseButtons.h File Reference

Go to the source code of this file.

Macros

#define XV_LEFT_MOUSEBUTTON   1
 Mouse button macros, definitions, mappings and events.
 
#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
 
#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)))
 

Macro Definition Documentation

◆ XV_LEFT_MOUSEBUTTON

#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()) If you have problems on how to use these defines, ask flori.nosp@m.an@m.nosp@m.evis..nosp@m.de!

Definition at line 23 of file XVMouseButtons.h.

◆ XV_MAP_BUTTON

#define XV_MAP_BUTTON ( a)    (a)

for TGS inventor and our own SoQt implementation everything is OK

Definition at line 28 of file XVMouseButtons.h.

◆ XV_MIDDLE_MOUSEBUTTON

#define XV_MIDDLE_MOUSEBUTTON   2

Definition at line 24 of file XVMouseButtons.h.

◆ XV_MOUSE_PRESS_EVENT

◆ XV_MOUSE_RELEASE_EVENT

◆ XV_RIGHT_MOUSEBUTTON

#define XV_RIGHT_MOUSEBUTTON   3

Definition at line 25 of file XVMouseButtons.h.