SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
Virtual Eventhandler class. More...
#include <SLEventHandler.h>
Public Member Functions | |
SLEventHandler () | |
virtual | ~SLEventHandler () |
virtual SLbool | onMouseDown (const SLMouseButton button, const SLint x, const SLint y, const SLKey mod) |
virtual SLbool | onMouseUp (const SLMouseButton button, const SLint x, const SLint y, const SLKey mod) |
virtual SLbool | onMouseMove (const SLMouseButton button, const SLint x, const SLint y, const SLKey mod) |
virtual SLbool | onDoubleClick (const SLMouseButton button, const SLint x, const SLint y, const SLKey mod) |
virtual SLbool | onMouseWheel (const SLint delta, const SLKey mod) |
virtual SLbool | onTouch2Down (const SLint x1, const SLint y1, const SLint x2, const SLint y2) |
virtual SLbool | onTouch2Move (const SLint x1, const SLint y1, const SLint x2, const SLint y2) |
virtual SLbool | onTouch2Up (const SLint x1, const SLint y1, const SLint x2, const SLint y2) |
virtual SLbool | onTouch3Down (const SLint x1, const SLint y1) |
virtual SLbool | onTouch3Move (const SLint x1, const SLint y1) |
virtual SLbool | onTouch3Up (const SLint x1, const SLint y1) |
virtual SLbool | onKeyPress (const SLKey key, const SLKey mod) |
virtual SLbool | onKeyRelease (const SLKey key, const SLKey mod) |
virtual SLbool | onRotationPYR (const SLfloat pitchRAD, const SLfloat yawRAD, const SLfloat rollRAD) |
void | mouseRotationFactor (SLfloat rf) |
SLfloat | mouseRotationFactor () |
Protected Attributes | |
SLfloat | _mouseRotationFactor |
Mouse rotation sensibility. More... | |
SLfloat | _keyboardDeltaPos |
Delta dist. for keyboard translation. More... | |
Virtual Eventhandler class.
SLEventHandler provides virtual methods for basic mouse and keyboard events. The SLNode class is derived from the SLEventhandler class and therefore all nodes can act as a eventhandler. For the moment only the camera class handles the events and implements this way the trackball camera. The scene instance has a pointer to the active eventhandler and forwards the events that it gets from the user interface. See also: SLSceneView and SLCamera classes.
Definition at line 27 of file SLEventHandler.h.
|
inline |
Definition at line 30 of file SLEventHandler.h.
|
inlinevirtual |
Definition at line 37 of file SLEventHandler.h.
|
inline |
Definition at line 149 of file SLEventHandler.h.
Definition at line 146 of file SLEventHandler.h.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in SLTransformNode, and SLCamera.
Definition at line 40 of file SLEventHandler.h.
|
inlinevirtual |
Reimplemented in SLTransformNode, and SLCamera.
Definition at line 61 of file SLEventHandler.h.
|
inlinevirtual |
Reimplemented in SLTransformNode, and SLCamera.
Definition at line 50 of file SLEventHandler.h.
|
inlinevirtual |
Definition at line 138 of file SLEventHandler.h.
|
inlinevirtual |
Reimplemented in SLCamera.
Definition at line 88 of file SLEventHandler.h.
|
inlinevirtual |
Reimplemented in SLCamera.
Definition at line 95 of file SLEventHandler.h.
|
inlinevirtual |
Reimplemented in SLCamera.
Definition at line 102 of file SLEventHandler.h.
Definition at line 109 of file SLEventHandler.h.
Definition at line 114 of file SLEventHandler.h.
Definition at line 119 of file SLEventHandler.h.
|
protected |
Delta dist. for keyboard translation.
Definition at line 153 of file SLEventHandler.h.
|
protected |
Mouse rotation sensibility.
Definition at line 152 of file SLEventHandler.h.