MeVisLab Toolbox Reference
XVMouseButtons.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef XVMOUSE_BUTTONS_H
14 #define XVMOUSE_BUTTONS_H
15 
17 
23 #define XV_LEFT_MOUSEBUTTON 1
24 #define XV_MIDDLE_MOUSEBUTTON 2
25 #define XV_RIGHT_MOUSEBUTTON 3
26 
28 #define XV_MAP_BUTTON(a) (a)
29 
30 // some replacements for the OpenInventorMacros defined in SoMouseButtonEvent.h:
31 #define XV_MOUSE_PRESS_EVENT(EVENT,BUTTON) \
32  (SoMouseButtonEvent::isButtonPressEvent(EVENT,XV_MAP_BUTTON(SoMouseButtonEvent::BUTTON)))
33 
34 #define XV_MOUSE_RELEASE_EVENT(EVENT,BUTTON) \
35  (SoMouseButtonEvent::isButtonReleaseEvent(EVENT,XV_MAP_BUTTON(SoMouseButtonEvent::BUTTON)))
36 
37 #endif
38