AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 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 (agxSDK::Simulation *simulation)
 
virtual ~GuiEventAdapter ()
 
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 &)
 

Detailed Description

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

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

Member Enumeration Documentation

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.

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

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

Reimplemented from agxSDK::GuiEventAdapter.

Member Function Documentation

Simulation* agxSDK::GuiEventAdapter::getSimulation ( )
inherited
virtual bool agxOSG::GuiEventAdapter::handle ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &   
)
protectedvirtual
bool agxOSG::GuiEventAdapter::handleKeyboard ( osgGA::GUIEventAdapter::EventType  eventType,
const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &   
)
protected
bool agxOSG::GuiEventAdapter::handleMouse ( osgGA::GUIEventAdapter::EventType  eventType,
const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &   
)
protected
bool agxOSG::GuiEventAdapter::handleMouseMove ( osgGA::GUIEventAdapter::EventType  eventType,
const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &   
)
protected
bool agxOSG::GuiEventAdapter::handleUpdate ( osgGA::GUIEventAdapter::EventType  eventType,
const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &   
)
protected
void agxSDK::GuiEventAdapter::setSimulation ( Simulation *  )
inherited
bool agxSDK::GuiEventAdapter::triggerEvent ( const GuiEvent &  event)
inherited

Execute the event.

Returns
true if the event is handled by a listener. Otherwise false
void agxSDK::GuiEventAdapter::updateGuiEvents ( )
inherited

Update all added/removed GuiEvents.


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