Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoEventBuilder.h
1#ifndef SO_EVENT_BUILDER
2#define SO_EVENT_BUILDER
3
4#include <Inventor/events/SoMouseButtonEvent.h>
5#include <Inventor/events/SoKeyboardEvent.h>
6#include <Inventor/SbPImpl.h>
7
10class SoTouchManager;
11
12SO_PIMPL_BASE_PUBLIC_DECLARATION(SoEventBuilder);
13
28{
29
30 SO_PIMPL_BASE_PUBLIC_HEADER(SoEventBuilder);
31
32public:
33
36
39
50 SoMouseButtonEvent* getMouseReleaseEvent(int x, int y, SoMouseButtonEvent::Button buttonId, bool isAltDown, bool isCtrlDown, bool isShiftDown);
51
62 SoMouseButtonEvent* getMousePressEvent(int x, int y, SoMouseButtonEvent::Button buttonId, bool isAltDown, bool isCtrlDown, bool isShiftDown);
63
74 SoMouseButtonEvent* getMouseDoubleClickEvent(int x, int y, SoMouseButtonEvent::Button buttonId, bool isAltDown, bool isCtrlDown, bool isShiftDown);
75
85 SoMouseWheelEvent* getMouseWheelEvent(int delta, bool isAltDown, bool isCtrlDown, bool isShiftDown);
86
96 SoLocation2Event* getMouseMoveEvent(int x, int y, bool isAltDown, bool isCtrlDown, bool isShiftDown);
97
108 SoLocation2Event* getMouseEnterEvent(int x, int y, bool isAltDown, bool isCtrlDown, bool isShiftDown);
109
120 SoLocation2Event* getMouseLeaveEvent(int x, int y, bool isAltDown, bool isCtrlDown, bool isShiftDown);
121
130 SoKeyboardEvent* getKeyReleaseEvent(SoKeyboardEvent::Key key, bool isAltDown, bool isCtrlDown, bool isShiftDown);
131
132
141 SoKeyboardEvent* getKeyPressEvent(SoKeyboardEvent::Key key, bool isAltDown, bool isCtrlDown, bool isShiftDown);
142
151 const std::vector<const SoEvent*>& getTouchDownEvent(int x, int y, unsigned long fingerId);
152
161 const std::vector<const SoEvent*>& getTouchUpEvent(int x, int y, unsigned long fingerId);
162
171 const std::vector<const SoEvent*>& getTouchMoveEvent(int x, int y, unsigned long fingerId);
172
177
178};
179
180#endif // SO_EVENT_BUILDER
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Utility class th...
SoEventBuilder()
Constructor.
SoLocation2Event * getMouseEnterEvent(int x, int y, bool isAltDown, bool isCtrlDown, bool isShiftDown)
Return an SoLocation2Event corresponding to given parameters.
SoLocation2Event * getMouseMoveEvent(int x, int y, bool isAltDown, bool isCtrlDown, bool isShiftDown)
Return an SoLocation2Event corresponding to given parameters.
SoMouseButtonEvent * getMousePressEvent(int x, int y, SoMouseButtonEvent::Button buttonId, bool isAltDown, bool isCtrlDown, bool isShiftDown)
Return an SoMouseButtonEvent corresponding to given parameters.
SoMouseButtonEvent * getMouseDoubleClickEvent(int x, int y, SoMouseButtonEvent::Button buttonId, bool isAltDown, bool isCtrlDown, bool isShiftDown)
Return an SoMouseButtonEvent corresponding to given parameters.
SoLocation2Event * getMouseLeaveEvent(int x, int y, bool isAltDown, bool isCtrlDown, bool isShiftDown)
Return an SoLocation2Event corresponding to given parameters.
SoMouseButtonEvent * getMouseReleaseEvent(int x, int y, SoMouseButtonEvent::Button buttonId, bool isAltDown, bool isCtrlDown, bool isShiftDown)
Return an SoMouseButtonEvent corresponding to given parameters.
SoKeyboardEvent * getKeyPressEvent(SoKeyboardEvent::Key key, bool isAltDown, bool isCtrlDown, bool isShiftDown)
Return an SoKeyboardEvent corresponding to given parameters.
const std::vector< const SoEvent * > & getTouchDownEvent(int x, int y, unsigned long fingerId)
Return a list of SoEvent corresponding to given parameters.
SoTouchManager & getTouchManager() const
Get the touch manager instance used by this event builder to build touch events.
SoMouseWheelEvent * getMouseWheelEvent(int delta, bool isAltDown, bool isCtrlDown, bool isShiftDown)
Return an SoMouseWheelEvent corresponding to given parameters.
const std::vector< const SoEvent * > & getTouchUpEvent(int x, int y, unsigned long fingerId)
Return a list of SoEvent corresponding to given parameters.
~SoEventBuilder()
Destructor.
const std::vector< const SoEvent * > & getTouchMoveEvent(int x, int y, unsigned long fingerId)
Return a list of SoEvent corresponding to given parameters.
SoKeyboardEvent * getKeyReleaseEvent(SoKeyboardEvent::Key key, bool isAltDown, bool isCtrlDown, bool isShiftDown)
Return an SoKeyboardEvent corresponding to given parameters.
Keyboard key press and release events.
Key
The keyboard keys.
2D location events.
Mouse button press and release events.
Mouse wheel events.
Class for managing events from touch screen input devices.