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