public class SoGestureEvent extends SoEvent
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:
SoTouchManager
).
See also:
SoEvent
, SoRotateGestureEvent
, SoScaleGestureEvent
, SoTapGestureEvent, SoGestureRecognizer
Modifier and Type | Class and Description |
---|---|
static class |
SoGestureEvent.GestureStates
The different states a gesture event can have.
|
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
BEGIN
Deprecated.
Use
SoGestureEvent.GestureStates.BEGIN instead. |
static int |
DELTA
Deprecated.
Use
SoGestureEvent.GestureStates.DELTA instead. |
static int |
END
Deprecated.
Use
SoGestureEvent.GestureStates.END instead. |
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoGestureEvent()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SoGestureEvent.GestureStates |
getGestureState()
Gets the gesture event state (Begin,Delta,End).
|
getNormalizedPosition, getPosition, getPosition, getPositionFloat, getPositionFloat, getTime, setAltDown, setButton1Down, setCtrlDown, setPosition, setPosition, setShiftDown, setTime, wasAltDown, wasButton1Down, wasCtrlDown, wasShiftDown
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int BEGIN
SoGestureEvent.GestureStates.BEGIN
instead.@Deprecated public static final int DELTA
SoGestureEvent.GestureStates.DELTA
instead.@Deprecated public static final int END
SoGestureEvent.GestureStates.END
instead.public SoGestureEvent.GestureStates getGestureState()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com