Class SoDoubleTapGestureRecognizer
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.gestures.recognizers.SoGestureRecognizer
-
- com.openinventor.inventor.gestures.recognizers.SoDoubleTapGestureRecognizer
-
public class SoDoubleTapGestureRecognizer extends SoGestureRecognizer
Double tap gesture recognizer.SoDoubleTapGestureRecognizer
analyses touch events and recognizes a one finger double-tap gesture. It returns anSoDoubleTapGestureEvent
with this gesture is recognized. The finger has to stay in a limitation area from the down event to the end one and must be completed within a maximum elapsed time. This recognizer only generates an END event.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
).
- 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.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoDoubleTapGestureRecognizer()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SbTime
getMaximumDurationBetweenTap()
Gets the maximum time that can elapse between the two taps of a double tap.SbTime
getMaximumTapDuration()
Gets tap maximum duration (1.0 seconds by default).int
getSpatialRestriction()
Gets the radius of limitation circle in which the finger has to stay throughout the gesture (60 pixels by default).void
setMaximumDurationBetweenTap(SbTime t)
Sets the maximum time that can elapse between the two taps of a double tap.void
setMaximumTapDuration(SbTime time)
Sets tap maximum duration (1.0 seconds by default).void
setSpatialRestriction(int c)
Sets the radius of limitation circle in which the finger has to stay throughout the gesture.-
Methods inherited from class com.openinventor.inventor.gestures.recognizers.SoGestureRecognizer
recognize
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
setMaximumDurationBetweenTap
public void setMaximumDurationBetweenTap(SbTime t)
Sets the maximum time that can elapse between the two taps of a double tap. (0.5 seconds by default)
-
getMaximumTapDuration
public SbTime getMaximumTapDuration()
Gets tap maximum duration (1.0 seconds by default).
-
setSpatialRestriction
public void setSpatialRestriction(int c)
Sets the radius of limitation circle in which the finger has to stay throughout the gesture. (60 pixels by default)
-
getMaximumDurationBetweenTap
public SbTime getMaximumDurationBetweenTap()
Gets the maximum time that can elapse between the two taps of a double tap. (0.5 seconds by default)
-
getSpatialRestriction
public int getSpatialRestriction()
Gets the radius of limitation circle in which the finger has to stay throughout the gesture (60 pixels by default).
-
setMaximumTapDuration
public void setMaximumTapDuration(SbTime time)
Sets tap maximum duration (1.0 seconds by default).
-
-