AGX Dynamics  2.35.0.1
agxOSG::GuiEventAdapter Class Reference

Class for inserting mouse and keyboard event from OSG into agxSDK::Simulation. More...

#include <GuiEventAdapter.h>

+ Inheritance diagram for agxOSG::GuiEventAdapter:

Public Member Functions

 GuiEventAdapter (agxSDK::Simulation *simulation)
 
virtual ~GuiEventAdapter ()
 
- Public Member Functions inherited from agxSDK::GuiEventAdapter
 GuiEventAdapter (Simulation *)
 Constructor. More...
 
Simulation * getSimulation ()
 
void setSimulation (Simulation *)
 
bool triggerEvent (const GuiEvent &event)
 Execute the event. More...
 
void updateGuiEvents ()
 Update all added/removed GuiEvents. More...
 

Protected Member Functions

virtual bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &)
 
bool handleKeyboard (osgGA::GUIEventAdapter::EventType eventType, const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &)
 
bool handleMouse (osgGA::GUIEventAdapter::EventType eventType, const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &)
 
bool handleMouseMove (osgGA::GUIEventAdapter::EventType eventType, const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &)
 
bool handleUpdate (osgGA::GUIEventAdapter::EventType eventType, const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &)
 

Additional Inherited Members

- Public Types inherited from agxSDK::GuiEventAdapter
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 }
 

Detailed Description

Class for inserting mouse and keyboard event from OSG into agxSDK::Simulation.

Definition at line 39 of file agxOSG/GuiEventAdapter.h.

Constructor & Destructor Documentation

◆ GuiEventAdapter()

agxOSG::GuiEventAdapter::GuiEventAdapter ( agxSDK::Simulation *  simulation)

◆ ~GuiEventAdapter()

virtual agxOSG::GuiEventAdapter::~GuiEventAdapter ( )
virtual

Reimplemented from agxSDK::GuiEventAdapter.

Member Function Documentation

◆ handle()

virtual bool agxOSG::GuiEventAdapter::handle ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &   
)
protectedvirtual

◆ handleKeyboard()

bool agxOSG::GuiEventAdapter::handleKeyboard ( osgGA::GUIEventAdapter::EventType  eventType,
const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &   
)
protected

◆ handleMouse()

bool agxOSG::GuiEventAdapter::handleMouse ( osgGA::GUIEventAdapter::EventType  eventType,
const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &   
)
protected

◆ handleMouseMove()

bool agxOSG::GuiEventAdapter::handleMouseMove ( osgGA::GUIEventAdapter::EventType  eventType,
const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &   
)
protected

◆ handleUpdate()

bool agxOSG::GuiEventAdapter::handleUpdate ( osgGA::GUIEventAdapter::EventType  eventType,
const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &   
)
protected

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