public class SoDoubleTapGestureRecognizer extends SoGestureRecognizer
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:
SoTouchManager).
See also:
SoGestureRecognizer, SoLongTapGestureRecognizer, SoRotateGestureRecognizer, SoScaleGestureRecognizer, SoDoubleTapGestureEvent
Inventor.ConstructorCommandVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoDoubleTapGestureRecognizer()
Constructor.
|
| Modifier and Type | Method and 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.
|
recognizedispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic SbTime getMaximumTapDuration()
public void setSpatialRestriction(int c)
public int getSpatialRestriction()
public SbTime getMaximumDurationBetweenTap()
public void setMaximumDurationBetweenTap(SbTime t)
public void setMaximumTapDuration(SbTime time)
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com