Package pro.streem.ar.sceneform.ux
Class DragGesture
- java.lang.Object
-
- pro.streem.ar.sceneform.ux.BaseGesture<DragGesture>
-
- pro.streem.ar.sceneform.ux.DragGesture
-
public class DragGesture extends BaseGesture<DragGesture>
Gesture for when the user performs a drag motion on the touch screen.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDragGesture.OnGestureEventListenerInterface definition for callbacks to be invoked by aDragGesture.
-
Field Summary
-
Fields inherited from class pro.streem.ar.sceneform.ux.BaseGesture
gesturePointersUtility, targetNode
-
-
Constructor Summary
Constructors Constructor Description DragGesture(GesturePointersUtility gesturePointersUtility, pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)
-
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)pro.streem.ar.sceneform.math.Vector3getDelta()pro.streem.ar.sceneform.math.Vector3getPosition()protected DragGesturegetSelf()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
-
DragGesture
public DragGesture(GesturePointersUtility gesturePointersUtility, pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)
-
-
Method Detail
-
getPosition
public pro.streem.ar.sceneform.math.Vector3 getPosition()
-
getDelta
public pro.streem.ar.sceneform.math.Vector3 getDelta()
-
canStart
protected boolean canStart(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)- Specified by:
canStartin classBaseGesture<DragGesture>
-
onStart
protected void onStart(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)- Specified by:
onStartin classBaseGesture<DragGesture>
-
updateGesture
protected boolean updateGesture(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)- Specified by:
updateGesturein classBaseGesture<DragGesture>
-
onCancel
protected void onCancel()
- Specified by:
onCancelin classBaseGesture<DragGesture>
-
onFinish
protected void onFinish()
- Specified by:
onFinishin classBaseGesture<DragGesture>
-
getSelf
protected DragGesture getSelf()
- Specified by:
getSelfin classBaseGesture<DragGesture>
-
-