Class SoLongTapGestureEvent
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.events.SoEvent
-
- com.openinventor.inventor.gestures.events.SoGestureEvent
-
- com.openinventor.inventor.gestures.events.SoLongTapGestureEvent
-
public class SoLongTapGestureEvent extends SoGestureEvent
Class for long tap gesture events.SoLongTapGestureEvent
represents a long tap (touch-and-hold) gesture event in the Open Inventor event model. Touch events are analyzed by aSoLongTapGestureRecognizer
. When a long tap gesture is recognized, the recognizer generates this event. It's a gesture with only END state (only one event is generated, at the end of the gesture). The finger has to stay within a limitation area and the gesture must be completed within a time limit (seeSoLongTapGestureRecognizer
).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
,SoGestureEvent
,SoRotateGestureEvent
,SoScaleGestureEvent
,SoDoubleTapGestureEvent
;SoLongTapGestureRecognizer
- In order to get touch events for the gesture recognizer(s) to recognize, the application must explicitly register a touch screen device (
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.gestures.events.SoGestureEvent
SoGestureEvent.GestureStates
-
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 SoLongTapGestureEvent()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SbTime
getDuration()
Returns duration of long tap.void
setDuration(SbTime time)
Sets duration of long tap (in seconds)-
Methods inherited from class com.openinventor.inventor.gestures.events.SoGestureEvent
getGestureState
-
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
-
-