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:
SoWinTouchScreen
, SoQtTouchScreen
, etc).
SoTouchManager
).
See also:
SoGestureRecognizer
, SoLongTapGestureRecognizer
, SoRotateGestureRecognizer
, SoScaleGestureRecognizer
, SoDoubleTapGestureEvent
Inventor.ConstructorCommand
VERBOSE_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.
|
recognize
dispose, getNativeResourceHandle
public void setMaximumDurationBetweenTap(SbTime t)
public SbTime getMaximumTapDuration()
public void setSpatialRestriction(int c)
public SbTime getMaximumDurationBetweenTap()
public int getSpatialRestriction()
public void setMaximumTapDuration(SbTime time)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com