Package pro.streem.ar.sceneform.ux
Class PinchGesture
- java.lang.Object
-
- pro.streem.ar.sceneform.ux.BaseGesture<PinchGesture>
-
- pro.streem.ar.sceneform.ux.PinchGesture
-
public class PinchGesture extends BaseGesture<PinchGesture>
Gesture for when the user performs a two-finger pinch motion on the touch screen.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePinchGesture.OnGestureEventListenerInterface definition for callbacks to be invoked by aPinchGesture.
-
Field Summary
-
Fields inherited from class pro.streem.ar.sceneform.ux.BaseGesture
gesturePointersUtility, targetNode
-
-
Constructor Summary
Constructors Constructor Description PinchGesture(GesturePointersUtility gesturePointersUtility, android.view.MotionEvent motionEvent, int pointerId2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Cancels the gesture in progress.protected booleancanStart(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)floatgapDeltaInches()floatgapInches()floatgetGap()floatgetGapDelta()protected PinchGesturegetSelf()protected voidonCancel()protected voidonFinish()protected voidonStart(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)protected booleanupdateGesture(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)-
Methods inherited from class pro.streem.ar.sceneform.ux.BaseGesture
complete, getTargetNode, hasFinished, hasStarted, inchesToPixels, justStarted, onTouch, pixelsToInches, setGestureEventListener, wasCancelled
-
-
-
-
Constructor Detail
-
PinchGesture
public PinchGesture(GesturePointersUtility gesturePointersUtility, android.view.MotionEvent motionEvent, int pointerId2)
-
-
Method Detail
-
getGap
public float getGap()
-
gapInches
public float gapInches()
-
getGapDelta
public float getGapDelta()
-
gapDeltaInches
public float gapDeltaInches()
-
cancel
public void cancel()
Cancels the gesture in progress.- Overrides:
cancelin classBaseGesture<PinchGesture>
-
canStart
protected boolean canStart(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)- Specified by:
canStartin classBaseGesture<PinchGesture>
-
onStart
protected void onStart(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)- Specified by:
onStartin classBaseGesture<PinchGesture>
-
updateGesture
protected boolean updateGesture(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)- Specified by:
updateGesturein classBaseGesture<PinchGesture>
-
onCancel
protected void onCancel()
- Specified by:
onCancelin classBaseGesture<PinchGesture>
-
onFinish
protected void onFinish()
- Specified by:
onFinishin classBaseGesture<PinchGesture>
-
getSelf
protected PinchGesture getSelf()
- Specified by:
getSelfin classBaseGesture<PinchGesture>
-
-