AGX Dynamics  2.37.2.0
agxSDK::GuiEventAdapter Class Reference

Base class for inserting mouse and keyboard event into agxSDK::Simulation. More...

#include <GuiEventAdapter.h>

+ Inheritance diagram for agxSDK::GuiEventAdapter:

Public Types

enum  EventType {
  NONE = 0, PUSH = 1, RELEASE = 2, DOUBLECLICK = 4,
  DRAG = 8, MOVE = 16, KEYDOWN = 32, KEYUP = 64,
  FRAME = 128, RESIZE = 256, SCROLL = 512, UPDATE = 1024,
  CLOSE_WINDOW = 8192, QUIT_APPLICATION = 16384, USER = 32768
}
 
enum  MouseButtonMask { NO_MOUSE_BUTTON = 0, LEFT_MOUSE_BUTTON = 1, MIDDLE_MOUSE_BUTTON = 2, RIGHT_MOUSE_BUTTON = 4 }
 

Public Member Functions

 GuiEventAdapter (Simulation *)
 Constructor. More...
 
virtual ~GuiEventAdapter ()
 
Simulation * getSimulation ()
 
void setSimulation (Simulation *)
 
bool triggerEvent (const GuiEvent &event)
 Execute the event. More...
 
void updateGuiEvents ()
 Update all added/removed GuiEvents. More...
 

Detailed Description

Base class for inserting mouse and keyboard event into agxSDK::Simulation.

Definition at line 29 of file agxSDK/GuiEventAdapter.h.

Member Enumeration Documentation

◆ EventType

Enumerator
NONE 
PUSH 
RELEASE 
DOUBLECLICK 
DRAG 
MOVE 
KEYDOWN 
KEYUP 
FRAME 
RESIZE 
SCROLL 
UPDATE 
CLOSE_WINDOW 
QUIT_APPLICATION 
USER 

Definition at line 43 of file agxSDK/GuiEventAdapter.h.

◆ MouseButtonMask

Enumerator
NO_MOUSE_BUTTON 
LEFT_MOUSE_BUTTON 
MIDDLE_MOUSE_BUTTON 
RIGHT_MOUSE_BUTTON 

Definition at line 34 of file agxSDK/GuiEventAdapter.h.

Constructor & Destructor Documentation

◆ GuiEventAdapter()

agxSDK::GuiEventAdapter::GuiEventAdapter ( Simulation *  )

Constructor.

◆ ~GuiEventAdapter()

virtual agxSDK::GuiEventAdapter::~GuiEventAdapter ( )
virtual

Reimplemented in agxOSG::GuiEventAdapter.

Member Function Documentation

◆ getSimulation()

Simulation* agxSDK::GuiEventAdapter::getSimulation ( )

◆ setSimulation()

void agxSDK::GuiEventAdapter::setSimulation ( Simulation *  )

◆ triggerEvent()

bool agxSDK::GuiEventAdapter::triggerEvent ( const GuiEvent &  event)

Execute the event.

Returns
true if the event is handled by a listener. Otherwise false

◆ updateGuiEvents()

void agxSDK::GuiEventAdapter::updateGuiEvents ( )

Update all added/removed GuiEvents.


The documentation for this class was generated from the following file: