Class SoDoubleTapGestureRecognizer
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.gestures.recognizers.SoGestureRecognizer
com.openinventor.inventor.gestures.recognizers.SoDoubleTapGestureRecognizer
Double tap gesture recognizer.
SoDoubleTapGestureRecognizer
analyses touch events and recognizes a one finger double-tap gesture. It returns an SoDoubleTapGestureEvent
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 (
invalid reference
SoWinTouchScreen
invalid reference
SoQtTouchScreen
- In order to get gesture events, the application must explicitly register gesture recognizers with the touch screen device's touch manager (
SoTouchManager
).
- See Also:
-
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 -
Method Summary
Modifier and TypeMethodDescriptionGets the maximum time that can elapse between the two taps of a double tap.Gets tap maximum duration (1.0 seconds by default).int
Gets the radius of limitation circle in which the finger has to stay throughout the gesture (60 pixels by default).void
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
-
Constructor Details
-
SoDoubleTapGestureRecognizer
public SoDoubleTapGestureRecognizer()Constructor.
-
-
Method Details
-
setMaximumDurationBetweenTap
Sets the maximum time that can elapse between the two taps of a double tap. (0.5 seconds by default) -
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
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
Sets tap maximum duration (1.0 seconds by default).
-