AGXDynamics  2.35.0.3
GuiEvent.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXSDK_GUIEVENT_H
18 #define AGXSDK_GUIEVENT_H
19 
20 #include <agxSDK/GuiEventAdapter.h>
21 #include <agx/agxPhysics_export.h>
22 
23 namespace agxSDK
24 {
25 
28  {
29  public:
30 
31 
33  float x, float y );
34 
36  GuiEventAdapter::MouseButtonMask mouseButtonMask,
37  float x, float y );
38 
40  int key, int unmodifiedKey,
41  unsigned int modKeyMask,
42  float x, float y);
43 
44  unsigned int getModKeyMask() const { return m_modKeyMask; }
45  int getKey( ) const { return m_key; }
46  int getUnmodifiedKey() const { return m_unmodifiedKey; }
47  GuiEventAdapter::EventType getEventType() const { return m_eventType; }
48  GuiEventAdapter::MouseButtonMask getMouseButtonMask() const { return m_mouseButtonMask; }
49 
50  float getX() const { return m_x; }
51  float getY() const { return m_y; }
52 
53  private:
54 
55  unsigned int m_modKeyMask;
56  int m_key;
57  int m_unmodifiedKey;
58 
59  GuiEventAdapter::EventType m_eventType;
60  GuiEventAdapter::MouseButtonMask m_mouseButtonMask;
61 
62  float m_x, m_y;
63  // float m_time;
64  };
65 
66 }
67 #endif
agxPhysics_export.h
GuiEventAdapter.h
agxSDK::GuiEvent::getKey
int getKey() const
Definition: GuiEvent.h:45
agxSDK::GuiEvent::getMouseButtonMask
GuiEventAdapter::MouseButtonMask getMouseButtonMask() const
Definition: GuiEvent.h:48
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxSDK::GuiEvent
Class for storing an Event which will be executed later inside Simulation.
Definition: GuiEvent.h:27
agxSDK::GuiEvent::getX
float getX() const
Definition: GuiEvent.h:50
agxSDK::GuiEvent::getEventType
GuiEventAdapter::EventType getEventType() const
Definition: GuiEvent.h:47
agxSDK::GuiEvent::getModKeyMask
unsigned int getModKeyMask() const
Definition: GuiEvent.h:44
agxSDK::GuiEvent::getY
float getY() const
Definition: GuiEvent.h:51
agxSDK::GuiEvent::getUnmodifiedKey
int getUnmodifiedKey() const
Definition: GuiEvent.h:46
agxSDK::GuiEventAdapter::EventType
EventType
Definition: agxSDK/GuiEventAdapter.h:43
agxSDK
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30
agxSDK::GuiEventAdapter::MouseButtonMask
MouseButtonMask
Definition: agxSDK/GuiEventAdapter.h:34