DVSceneNodeModifiers<Self extends DVSceneNode> mixin

The modifiers every scene node takes.

Superclass constraints

Properties

children → List<DVSceneNode>
Child nodes, placed in this node's space.
finalinherited
explicitId → String?
The id this node was given with .id(...), if any.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
kindName → String
The name derived ids use for this kind: node, model3d, mesh, camera or light.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

anchor(DVAnchor anchor) → Self
Pins this node to something in the real world. Where the target cannot honour anchor -- every target that is not presenting the scene in space -- the node stays at the scene origin and DV-XR-002 says so.
id(String id) → Self
A stable id: what taps, sync bindings, Studio and a renderer's resource cache key on. Nodes without one get an id from their position in the scene, which is stable as long as the nodes before them are.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onGrab(VoidCallback handler) → Self
Called when a hand or controller grabs this node, or a child with no handler of its own, in a spatial session.
onRelease(VoidCallback handler) → Self
Called when a grab on this node is released, in a spatial session.
onTap(VoidCallback handler) → Self
Called when this node, or a child with no handler of its own, is the nearest thing under a tap.
position(Object value) → Self
A DVVec3 or a signal of one, in metres.
rotation(Object value) → Self
A DVQuat or a signal of one.
rotationY(Object radians) → Self
Radians about the up axis, or a signal of them, applied after rotation.
scale(Object value) → Self
A uniform number, a DVVec3, or a signal of either.
toString() → String
A string representation of this object.
inherited
visible(Object value) → Self
A bool or a signal of one. A hidden node is neither drawn nor tapped, and neither are its children.

Operators

operator ==(Object other) → bool
The equality operator.
inherited