AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
agxSDK/GuiEventAdapter.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_GUIEVENTADAPTER_H
18#define AGXSDK_GUIEVENTADAPTER_H
19
20
22
23namespace agxSDK
24{
25 class GuiEvent;
26 class Simulation;
27
30 {
31
32 public:
33
35 NO_MOUSE_BUTTON = 0,
36 LEFT_MOUSE_BUTTON = 1,
37 MIDDLE_MOUSE_BUTTON = 2,
38 RIGHT_MOUSE_BUTTON = 4
39 };
40
41
42
43 enum EventType {
44 NONE = 0,
45 PUSH = 1,
46 RELEASE = 2,
47 DOUBLECLICK = 4,
48 DRAG = 8,
49 MOVE = 16,
50 KEYDOWN = 32,
51 KEYUP = 64,
52 FRAME = 128,
53 RESIZE = 256,
54 SCROLL = 512,
55 UPDATE = 1024,
56
57 CLOSE_WINDOW = 8192,
58 QUIT_APPLICATION = 16384,
59 USER = 32768
60 };
61
62 public:
63
67
70
75 bool triggerEvent( const GuiEvent& event );
76
81
82 protected:
83
84
85 private:
86 class GuiEventAdapterImplementation* m_implementation;
87 };
88}
89
90#endif
#define AGXPHYSICS_EXPORT
Base class for inserting mouse and keyboard event into agxSDK::Simulation.
Simulation * getSimulation()
void setSimulation(Simulation *)
GuiEventAdapter(Simulation *)
Constructor.
bool triggerEvent(const GuiEvent &event)
Execute the event.
void updateGuiEvents()
Update all added/removed GuiEvents.
Class for storing an Event which will be executed later inside Simulation.
Definition GuiEvent.h:28
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition Simulation.h:126
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition Constraint.h:31