Package pro.streem.ar.sceneform.ux
Class RotationController
- java.lang.Object
-
- pro.streem.ar.sceneform.ux.BaseTransformationController<TwistGesture>
-
- pro.streem.ar.sceneform.ux.RotationController
-
- All Implemented Interfaces:
pro.streem.ar.sceneform.Node.LifecycleListener,BaseGesture.OnGestureEventListener<TwistGesture>,BaseGestureRecognizer.OnGestureStartedListener<TwistGesture>
public class RotationController extends BaseTransformationController<TwistGesture>
Manipulates the rotation of aBaseTransformableNodeusing aTwistGestureRecognizer.
-
-
Constructor Summary
Constructors Constructor Description RotationController(BaseTransformableNode transformableNode, TwistGestureRecognizer gestureRecognizer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanStartTransformation(TwistGesture gesture)floatgetRotationRateDegrees()voidonContinueTransformation(TwistGesture gesture)voidonEndTransformation(TwistGesture gesture)voidsetRotationRateDegrees(float rotationRateDegrees)-
Methods inherited from class pro.streem.ar.sceneform.ux.BaseTransformationController
getActiveGesture, getTransformableNode, isEnabled, isTransforming, onActivated, onDeactivated, onFinished, onGestureStarted, onUpdated, onUpdated, setEnabled
-
-
-
-
Constructor Detail
-
RotationController
public RotationController(BaseTransformableNode transformableNode, TwistGestureRecognizer gestureRecognizer)
-
-
Method Detail
-
setRotationRateDegrees
public void setRotationRateDegrees(float rotationRateDegrees)
-
getRotationRateDegrees
public float getRotationRateDegrees()
-
canStartTransformation
public boolean canStartTransformation(TwistGesture gesture)
- Specified by:
canStartTransformationin classBaseTransformationController<TwistGesture>
-
onContinueTransformation
public void onContinueTransformation(TwistGesture gesture)
- Specified by:
onContinueTransformationin classBaseTransformationController<TwistGesture>
-
onEndTransformation
public void onEndTransformation(TwistGesture gesture)
- Specified by:
onEndTransformationin classBaseTransformationController<TwistGesture>
-
-