public class SoLongTapGestureRecognizer extends SoGestureRecognizer
SoLongTapGestureRecognizer
analyses touch events and recognizes a one finger long-tap (touch-and-hold) gesture. It returns an SoLongTapGestureEvent
with the long tap duration if this gesture is recognized. The finger has to stay in a limitation area from the down event to the up event and must stay down for a minimum period of time. This recognizer only generates an END event.
Note:
SoTouchManager
).
See also:
SoGestureRecognizer
, SoRotateGestureRecognizer
, SoScaleGestureRecognizer
, SoDoubleTapGestureRecognizer
, SoLongTapGestureEvent
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoLongTapGestureRecognizer()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SbTime |
getMinimumLongTapDuration()
Gets the minimum duration of a long tap.
|
int |
getSpatialRestriction()
Gets the radius of the limitation circle in which the finger has to stay throughout the gesture.
|
void |
setMinimumLongTapDuration(SbTime t)
Sets the minimum duration of a long tap.
|
void |
setSpatialRestriction(int c)
Sets the radius of the limitation circle in which the finger has to stay throughout the gesture.
|
recognize
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SbTime getMinimumLongTapDuration()
public int getSpatialRestriction()
public void setSpatialRestriction(int c)
public void setMinimumLongTapDuration(SbTime t)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com