Package pro.streem.ar.sceneform.ux
Class TwistGesture
- java.lang.Object
-
- pro.streem.ar.sceneform.ux.BaseGesture<TwistGesture>
-
- pro.streem.ar.sceneform.ux.TwistGesture
-
public class TwistGesture extends BaseGesture<TwistGesture>
Gesture for when the user performs a two-finger twist motion on the touch screen.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTwistGesture.OnGestureEventListenerInterface definition for callbacks to be invoked by aTwistGesture.
-
Field Summary
-
Fields inherited from class pro.streem.ar.sceneform.ux.BaseGesture
gesturePointersUtility, targetNode
-
-
Constructor Summary
Constructors Constructor Description TwistGesture(GesturePointersUtility gesturePointersUtility, android.view.MotionEvent motionEvent, int pointerId2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanStart(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)floatgetDeltaRotationDegrees()protected TwistGesturegetSelf()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
cancel, complete, getTargetNode, hasFinished, hasStarted, inchesToPixels, justStarted, onTouch, pixelsToInches, setGestureEventListener, wasCancelled
-
-
-
-
Constructor Detail
-
TwistGesture
public TwistGesture(GesturePointersUtility gesturePointersUtility, android.view.MotionEvent motionEvent, int pointerId2)
-
-
Method Detail
-
getDeltaRotationDegrees
public float getDeltaRotationDegrees()
-
canStart
protected boolean canStart(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)- Specified by:
canStartin classBaseGesture<TwistGesture>
-
onStart
protected void onStart(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)- Specified by:
onStartin classBaseGesture<TwistGesture>
-
updateGesture
protected boolean updateGesture(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)- Specified by:
updateGesturein classBaseGesture<TwistGesture>
-
onCancel
protected void onCancel()
- Specified by:
onCancelin classBaseGesture<TwistGesture>
-
onFinish
protected void onFinish()
- Specified by:
onFinishin classBaseGesture<TwistGesture>
-
getSelf
protected TwistGesture getSelf()
- Specified by:
getSelfin classBaseGesture<TwistGesture>
-
-