Most visited

Recently visited

Node.NodeBuilder

public static class Node.NodeBuilder
extends Object

java.lang.Object
   ↳ com.viro.core.Node.NodeBuilder<R extends com.viro.core.Node, B extends com.viro.core.Node.NodeBuilder<R, B>>


NodeBuilder for creating Node objects.

Summary

Public constructors

Node.NodeBuilder()

Constructor for NodeBuilder.

Public methods

R build()

Returns the Built Node.

NodeBuilder camera(Camera camera)

Refer to setCamera(Camera).

NodeBuilder children(ArrayList<Node> children)

Refer to addChildNode(Node).

NodeBuilder clickListener(ClickListener clickListener)

Refer to setClickListener(ClickListener).

NodeBuilder dragListener(DragListener dragListener)

Refer to setDragListener(DragListener).

NodeBuilder dragType(Node.DragType dragType)

Refer to setDragType(DragType).

NodeBuilder fuseListener(FuseListener fuseListener)

Refer to setFuseListener(FuseListener).

NodeBuilder geometry(Geometry geometry)

Refer to setGeometry(Geometry).

NodeBuilder gesturePinchListener(GesturePinchListener gesturePinchListener)

Refer to setGesturePinchListener(GesturePinchListener).

NodeBuilder gestureRotateListener(GestureRotateListener gestureRotateListener)

Refer to setGestureRotateListener(GestureRotateListener).

NodeBuilder highAccuracyGaze(boolean highAccuracyGaze)

Refer to setHighAccuracyGaze(boolean).

NodeBuilder hoverListener(HoverListener hoverListener)

Refer to setHoverListener(HoverListener).

NodeBuilder ignoreEventHandling(boolean ignoreEventHandling)

Refer to setIgnoreEventHandling(boolean).

NodeBuilder lightReceivingBitMask(int lightReceivingBitMask)

Refer to setLightReceivingBitMask(int).

NodeBuilder lights(ArrayList<Light> lights)

Refer to addLight(Light).

NodeBuilder opacity(float opacity)

Refer to setOpacity(float).

NodeBuilder particleEmitter(ParticleEmitter particleEmitter)

Refer to setParticleEmitter(ParticleEmitter).

NodeBuilder physicsBody(PhysicsBody.RigidBodyType rigidBodyType, float mass, PhysicsShape shape)

Refer to initPhysicsBody(PhysicsBody.RigidBodyType, float, PhysicsShape).

NodeBuilder position(Vector position)

Refer to setPosition(Vector).

NodeBuilder rotationPivot(Vector rotationpivot)

Refer to setRotationPivot(Vector).

NodeBuilder scale(Vector scale)

Refer to setScale(Vector).

NodeBuilder scalePivot(Vector scalePivot)

Refer to setScalePivot(Vector).

NodeBuilder shadowCastingBitMask(int shadowCastingBitMask)

Refer to setShadowCastingBitMask(int).

NodeBuilder sounds(ArrayList<SpatialSound> sounds)

Refer to addSound(SpatialSound).

NodeBuilder tag(String tag)

Refer to setTag(String).

NodeBuilder touchpadScrollListener(TouchpadScrollListener touchpadScrollListener)

Refer to setTouchpadScrollListener(TouchpadScrollListener).

NodeBuilder touchpadSwipeListener(TouchpadSwipeListener touchpadSwipeListener)

Refer to setTouchpadSwipeListener(TouchpadSwipeListener).

NodeBuilder touchpadTouchListener(TouchpadTouchListener touchpadTouchListener)

Refer to setTouchpadTouchListener(TouchpadTouchListener).

NodeBuilder transformBehaviors(EnumSet<Node.TransformBehavior> transformBehaviors)

Refer to setTransformBehaviors(EnumSet).

NodeBuilder visible(boolean visible)

Refer to setVisible(boolean).

Public constructors

Node.NodeBuilder

Node.NodeBuilder ()

Constructor for NodeBuilder.

Public methods

build

R build ()

Returns the Built Node.

Returns
R The built Node.

camera

NodeBuilder camera (Camera camera)

Refer to setCamera(Camera).

Parameters
camera Camera

Returns
NodeBuilder This builder.

children

NodeBuilder children (ArrayList<Node> children)

Refer to addChildNode(Node).

Parameters
children ArrayList

Returns
NodeBuilder This builder.

clickListener

NodeBuilder clickListener (ClickListener clickListener)

Refer to setClickListener(ClickListener).

Parameters
clickListener ClickListener

Returns
NodeBuilder This builder.

dragListener

NodeBuilder dragListener (DragListener dragListener)

Refer to setDragListener(DragListener).

Parameters
dragListener DragListener

Returns
NodeBuilder This builder.

dragType

NodeBuilder dragType (Node.DragType dragType)

Refer to setDragType(DragType).

Parameters
dragType Node.DragType

Returns
NodeBuilder This builder.

fuseListener

NodeBuilder fuseListener (FuseListener fuseListener)

Refer to setFuseListener(FuseListener).

Parameters
fuseListener FuseListener

Returns
NodeBuilder This builder.

geometry

NodeBuilder geometry (Geometry geometry)

Refer to setGeometry(Geometry).

Parameters
geometry Geometry

Returns
NodeBuilder This builder.

gesturePinchListener

NodeBuilder gesturePinchListener (GesturePinchListener gesturePinchListener)

Refer to setGesturePinchListener(GesturePinchListener).

Parameters
gesturePinchListener GesturePinchListener

Returns
NodeBuilder This builder.

gestureRotateListener

NodeBuilder gestureRotateListener (GestureRotateListener gestureRotateListener)

Refer to setGestureRotateListener(GestureRotateListener).

Parameters
gestureRotateListener GestureRotateListener

Returns
NodeBuilder This builder.

highAccuracyGaze

NodeBuilder highAccuracyGaze (boolean highAccuracyGaze)

Refer to setHighAccuracyGaze(boolean).

Parameters
highAccuracyGaze boolean

Returns
NodeBuilder This builder.

hoverListener

NodeBuilder hoverListener (HoverListener hoverListener)

Refer to setHoverListener(HoverListener).

Parameters
hoverListener HoverListener

Returns
NodeBuilder This builder.

ignoreEventHandling

NodeBuilder ignoreEventHandling (boolean ignoreEventHandling)

Refer to setIgnoreEventHandling(boolean).

Parameters
ignoreEventHandling boolean

Returns
NodeBuilder This builder.

lightReceivingBitMask

NodeBuilder lightReceivingBitMask (int lightReceivingBitMask)

Refer to setLightReceivingBitMask(int).

Parameters
lightReceivingBitMask int

Returns
NodeBuilder This builder.

lights

NodeBuilder lights (ArrayList<Light> lights)

Refer to addLight(Light).

Parameters
lights ArrayList

Returns
NodeBuilder This builder.

opacity

NodeBuilder opacity (float opacity)

Refer to setOpacity(float).

Parameters
opacity float

Returns
NodeBuilder This builder.

particleEmitter

NodeBuilder particleEmitter (ParticleEmitter particleEmitter)

Refer to setParticleEmitter(ParticleEmitter).

Parameters
particleEmitter ParticleEmitter

Returns
NodeBuilder This builder.

physicsBody

NodeBuilder physicsBody (PhysicsBody.RigidBodyType rigidBodyType, 
                float mass, 
                PhysicsShape shape)

Refer to initPhysicsBody(PhysicsBody.RigidBodyType, float, PhysicsShape).

Parameters
rigidBodyType PhysicsBody.RigidBodyType

mass float

shape PhysicsShape

Returns
NodeBuilder This builder.

position

NodeBuilder position (Vector position)

Refer to setPosition(Vector).

Parameters
position Vector

Returns
NodeBuilder This builder.

rotationPivot

NodeBuilder rotationPivot (Vector rotationpivot)

Refer to setRotationPivot(Vector).

Parameters
rotationpivot Vector

Returns
NodeBuilder This builder.

scale

NodeBuilder scale (Vector scale)

Refer to setScale(Vector).

Parameters
scale Vector

Returns
NodeBuilder This builder.

scalePivot

NodeBuilder scalePivot (Vector scalePivot)

Refer to setScalePivot(Vector).

Parameters
scalePivot Vector

Returns
NodeBuilder This builder.

shadowCastingBitMask

NodeBuilder shadowCastingBitMask (int shadowCastingBitMask)

Refer to setShadowCastingBitMask(int).

Parameters
shadowCastingBitMask int

Returns
NodeBuilder This builder.

sounds

NodeBuilder sounds (ArrayList<SpatialSound> sounds)

Refer to addSound(SpatialSound).

Parameters
sounds ArrayList

Returns
NodeBuilder This builder.

tag

NodeBuilder tag (String tag)

Refer to setTag(String).

Parameters
tag String

Returns
NodeBuilder This builder.

touchpadScrollListener

NodeBuilder touchpadScrollListener (TouchpadScrollListener touchpadScrollListener)

Refer to setTouchpadScrollListener(TouchpadScrollListener).

Parameters
touchpadScrollListener TouchpadScrollListener

Returns
NodeBuilder This builder.

touchpadSwipeListener

NodeBuilder touchpadSwipeListener (TouchpadSwipeListener touchpadSwipeListener)

Refer to setTouchpadSwipeListener(TouchpadSwipeListener).

Parameters
touchpadSwipeListener TouchpadSwipeListener

Returns
NodeBuilder This builder.

touchpadTouchListener

NodeBuilder touchpadTouchListener (TouchpadTouchListener touchpadTouchListener)

Refer to setTouchpadTouchListener(TouchpadTouchListener).

Parameters
touchpadTouchListener TouchpadTouchListener

Returns
NodeBuilder This builder.

transformBehaviors

NodeBuilder transformBehaviors (EnumSet<Node.TransformBehavior> transformBehaviors)

Refer to setTransformBehaviors(EnumSet).

Parameters
transformBehaviors EnumSet

Returns
NodeBuilder This builder.

visible

NodeBuilder visible (boolean visible)

Refer to setVisible(boolean).

Parameters
visible boolean

Returns
NodeBuilder This builder.

Hooray!