Class SoGestureEvent
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.events.SoEvent
-
- com.openinventor.inventor.gestures.events.SoGestureEvent
-
- Direct Known Subclasses:
SoDoubleTapGestureEvent
,SoLongTapGestureEvent
,SoRotateGestureEvent
,SoScaleGestureEvent
public class SoGestureEvent extends SoEvent
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) anSoEventCallback
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:
- In order to get touch events for the gesture recognizer(s) to recognize, the application must explicitly register a touch screen device (
SoWinTouchScreen
,SoQtTouchScreen
, etc). - In order to get gesture events, the application must explicitly register gesture recognizers with the touch screen device's touch manager (
SoTouchManager
).
SoEvent
,SoRotateGestureEvent
,SoScaleGestureEvent
, SoTapGestureEvent,SoGestureRecognizer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoGestureEvent.GestureStates
The different states a gesture event can have.-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoGestureEvent()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoGestureEvent.GestureStates
getGestureState()
Gets the gesture event state (Begin,Delta,End).-
Methods inherited from class com.openinventor.inventor.events.SoEvent
getNormalizedPosition, getPosition, getPosition, getPositionFloat, getPositionFloat, getTime, setAltDown, setButton1Down, setCtrlDown, setPosition, setPosition, setShiftDown, setTime, wasAltDown, wasButton1Down, wasCtrlDown, wasShiftDown
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
getGestureState
public SoGestureEvent.GestureStates getGestureState()
Gets the gesture event state (Begin,Delta,End). .
-
-