Package pro.streem.ar.sceneform.ux
Class BaseTransformableNode
- java.lang.Object
-
- pro.streem.ar.sceneform.NodeParent
-
- pro.streem.ar.sceneform.Node
-
- pro.streem.ar.sceneform.ux.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.OnTapListenerBase class for nodes that can be transformed using gestures fromTransformationSystem.
-
-
Constructor Summary
Constructors Constructor Description BaseTransformableNode(TransformationSystem transformationSystem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddTransformationController(BaseTransformationController<?> transformationController)TransformationSystemgetTransformationSystem()booleanisSelected()Returns true if this node is currently selected by the TransformationSystem.booleanisTransforming()Returns true if any of the transformation controllers are actively transforming this node.voidonTap(pro.streem.ar.sceneform.HitTestResult hitTestResult, android.view.MotionEvent motionEvent)protected voidremoveTransformationController(BaseTransformationController<?> transformationController)booleanselect()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
-
-
-
-
Constructor Detail
-
BaseTransformableNode
public BaseTransformableNode(TransformationSystem transformationSystem)
-
-
Method Detail
-
getTransformationSystem
public TransformationSystem getTransformationSystem()
-
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:
onTapin interfacepro.streem.ar.sceneform.Node.OnTapListener
-
addTransformationController
protected void addTransformationController(BaseTransformationController<?> transformationController)
-
removeTransformationController
protected void removeTransformationController(BaseTransformationController<?> transformationController)
-
-