Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
MFCEventToSoEvent.h
1/*=======================================================================
2** VSG_COPYRIGHT_TAG
3**=======================================================================*/
4
5#ifndef MFCEventToSoEvent_h
6#define MFCEventToSoEvent_h
7
8#include <Inventor/ViewerComponents/MFC/StdAfx.h>
9
10#include <Inventor/ViewerComponents/SoEventBuilder.h>
11#include <Inventor/Events/SoMouseButtonEvent.h>
12
13class RenderArea;
14
18class MFCVIEWERCOMPONENTS_API MFCEventToSoEvent
19{
20
21public:
22
27
32
37
41 static SoLocation2Event* getMouseMoveEvent( CPoint loc, RenderArea* renderArea );
42
47
52
57
61 static SoKeyboardEvent* getKeyPressEvent( WPARAM param, RenderArea* );
62
67
68private:
69 static bool initClass();
70 static bool s_init;
71
72 static SoKeyboardEvent::Key getIvKey( WPARAM param );
73 static SoEventBuilder m_ivEvent;
74
75 static SoKeyboardEvent::Key keyMap[256];
76 static int keyMapInitFlag;
77
78 static bool m_ctrlModifier;
79 static bool m_altModifier;
80 static bool m_shiftModifier;
81};
82
83#endif // MFCEventToSoEvent
static SoLocation2Event * getMouseMoveEvent(CPoint loc, RenderArea *renderArea)
Transform a MFC mouse move event to a SoLocation2Event.
static SoKeyboardEvent * getKeyReleaseEvent(WPARAM param, RenderArea *)
Transform a MFC key release event to a SoKeyboardEvent.
static SoLocation2Event * getMouseEnterEvent(RenderArea *)
Transform a MFC mouse enter in the window event to a SoLocation2Event.
static SoKeyboardEvent * getKeyPressEvent(WPARAM param, RenderArea *)
Transform a MFC key press event to a SoKeyboardEvent.
static SoMouseWheelEvent * getMouseWheelEvent(short zDelta, RenderArea *)
Transform a MFC mouse wheel event to a SoMouseWheelEvent.
static SoMouseButtonEvent * getMouseDoubleClickEvent(CPoint loc, SoMouseButtonEvent::Button button, RenderArea *renderArea)
Transform a MFC mouse double click event to a SoMouseButtonEvent.
static SoMouseButtonEvent * getMousePressEvent(CPoint loc, SoMouseButtonEvent::Button button, RenderArea *renderArea)
Transform a MFC mouse press event to a SoMouseButtonEvent.
static SoLocation2Event * getMouseLeaveEvent(RenderArea *)
Transform a MFC mouse leave the window event to a SoLocation2Event.
static SoMouseButtonEvent * getMouseReleaseEvent(CPoint loc, SoMouseButtonEvent::Button button, RenderArea *renderArea)
Transform a MFC mouse release event to a SoMouseButtonEvent.
Class to render an OpenInventor scene in a Qt OpenGL window.
Definition RenderArea.h:46
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Utility class th...
Keyboard key press and release events.
Key
The keyboard keys.
2D location events.
Mouse button press and release events.
Mouse wheel events.