Class BaseTransformableNode

  • All Implemented Interfaces:
    pro.streem.ar.sceneform.common.TransformProvider, pro.streem.ar.sceneform.Node.OnTapListener
    Direct Known Subclasses:
    TransformableNode

    public abstract class BaseTransformableNode
    extends pro.streem.ar.sceneform.Node
    implements pro.streem.ar.sceneform.Node.OnTapListener
    Base class for nodes that can be transformed using gestures from TransformationSystem.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class pro.streem.ar.sceneform.Node

        pro.streem.ar.sceneform.Node.LifecycleListener, pro.streem.ar.sceneform.Node.OnTapListener, pro.streem.ar.sceneform.Node.OnTouchListener, pro.streem.ar.sceneform.Node.TransformChangedListener
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addTransformationController​(BaseTransformationController<?> transformationController)  
      TransformationSystem getTransformationSystem()  
      boolean isSelected()
      Returns true if this node is currently selected by the TransformationSystem.
      boolean isTransforming()
      Returns true if any of the transformation controllers are actively transforming this node.
      void onTap​(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)  
      protected void removeTransformationController​(BaseTransformationController<?> transformationController)  
      boolean select()
      Sets this as the selected node in the TransformationSystem if there is no currently selected node or if the currently selected node is not actively being transformed.
      • Methods inherited from class pro.streem.ar.sceneform.Node

        addLifecycleListener, addTransformChangedListener, callOnHierarchy, canAddChild, findInHierarchy, getBack, getCollisionShape, getDown, getForward, getLeft, getLight, getLocalPosition, getLocalRotation, getLocalScale, getName, getParent, getRenderable, getRenderableInstance, getRight, getScene, getUp, getWorldModelMatrix, getWorldPosition, getWorldRotation, getWorldScale, isActive, isDescendantOf, isEnabled, isTopLevel, localToWorldDirection, localToWorldPoint, onActivate, onAddChild, onDeactivate, onRemoveChild, onTouchEvent, onTransformChange, onUpdate, removeLifecycleListener, removeTransformChangedListener, setCollisionShape, setEnabled, setLight, setLocalPosition, setLocalRotation, setLocalScale, setLookDirection, setLookDirection, setName, setOnTapListener, setOnTouchListener, setParent, setRenderable, setWorldPosition, setWorldRotation, setWorldScale, toString, worldToLocalDirection, worldToLocalPoint
      • Methods inherited from class pro.streem.ar.sceneform.NodeParent

        addChild, findByName, getChildren, removeChild
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BaseTransformableNode

        public BaseTransformableNode​(TransformationSystem transformationSystem)
    • Method Detail

      • isTransforming

        public boolean isTransforming()
        Returns true if any of the transformation controllers are actively transforming this node.
      • isSelected

        public boolean isSelected()
        Returns true if this node is currently selected by the TransformationSystem.
      • select

        public boolean select()
        Sets this as the selected node in the TransformationSystem if there is no currently selected node or if the currently selected node is not actively being transformed.
        Returns:
        true if the node was successfully selected
        See Also:
        isTransforming()
      • onTap

        public void onTap​(pro.streem.ar.sceneform.HitTestResult hitTestResult,
                          android.view.MotionEvent motionEvent)
        Specified by:
        onTap in interface pro.streem.ar.sceneform.Node.OnTapListener
      • removeTransformationController

        protected void removeTransformationController​(BaseTransformationController<?> transformationController)