Base class for gesture events. More...
#include <Inventor/gestures/events/SoGestureEvent.h>
Public Types | |
enum | GestureState { BEGIN, DELTA, END } |
Public Member Functions | |
virtual SoType | getTypeId () const |
SoGestureEvent () | |
virtual | ~SoGestureEvent () |
GestureState | getGestureState () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Base class for gesture events.
SoGestureEvent represents a series of touch events beginning with begin state and finishing with end state. It is the base class for gesture events in the Open Inventor model. Gesture events can be handled using (for example) an SoEventCallback node.
All touch events are analyzed by recognizers. When a gesture is recognized, the recognizer generates the corresponding event. This class stores the begin/delta/end state of the gesture when the event occurred.
Note:
SoEvent, SoRotateGestureEvent, SoScaleGestureEvent, SoTapGestureEvent, SoGestureRecognizer
SoGestureEvent::SoGestureEvent | ( | ) |
Constructor.
virtual SoGestureEvent::~SoGestureEvent | ( | ) | [virtual] |
Destructor.
static SoType SoGestureEvent::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoEvent.
Reimplemented in SoDoubleTapGestureEvent, SoLongTapGestureEvent, SoRotateGestureEvent, and SoScaleGestureEvent.
GestureState SoGestureEvent::getGestureState | ( | ) | const |
Gets the gesture event state (Begin,Delta,End).
Use enum GestureState.
virtual SoType SoGestureEvent::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoEvent.
Reimplemented in SoDoubleTapGestureEvent, SoLongTapGestureEvent, SoRotateGestureEvent, and SoScaleGestureEvent.