public class SoScaleGestureEvent extends SoGestureEvent
SoScaleGestureEvent represents a pinch gesture in the Open Inventor event model. Touch events are analyzed by a SoScaleGestureRecognizer. When a scale gesture is recognized, the recognizer generates this event. The gesture begins with a BEGIN state event. DELTA state events are generated until the end of the gesture which generates an END state event. See SoGestureEvent.getGestureState().
Note:
SoTouchManager).
See also:
SoEvent, SoGestureEvent, SoDoubleTapGestureEvent, SoLongTapGestureEvent, SoRotateGestureEvent, SoScaleGestureRecognizer
SoGestureEvent.GestureStatesInventor.ConstructorCommandBEGIN, DELTA, ENDVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoScaleGestureEvent()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getDeltaScaleFactor()
Gets the ratio between the current fingers distance and the previous distance.
|
float |
getScaleFactor()
Gets the ratio between the current fingers distance and the first distance evaluated after the second down event.
|
getGestureStategetNormalizedPosition, getPosition, getPosition, getPositionFloat, getPositionFloat, getTime, setAltDown, setButton1Down, setCtrlDown, setPosition, setPosition, setShiftDown, setTime, wasAltDown, wasButton1Down, wasCtrlDown, wasShiftDowndispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic float getDeltaScaleFactor()
public float getScaleFactor()
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com