DVLight class

A light.

Inheritance
Mixed-in types

Constructors

DVLight.directional({required DVVec3 direction, int color = 0xFFFFFF, double intensity = 1})
factory
DVLight.point({int color = 0xFFFFFF, double intensity = 1, double? range})
factory
DVLight.spot({required DVVec3 direction, int color = 0xFFFFFF, double intensity = 1, double? range, double innerConeDegrees = 0, double outerConeDegrees = 45})
factory

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 setteroverride
light → DVSceneLight
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

anchor(DVAnchor anchor) → DVLight
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.
inherited
id(String id) → DVLight
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.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onGrab(VoidCallback handler) → DVLight
Called when a hand or controller grabs this node, or a child with no handler of its own, in a spatial session.
inherited
onRelease(VoidCallback handler) → DVLight
Called when a grab on this node is released, in a spatial session.
inherited
onTap(VoidCallback handler) → DVLight
Called when this node, or a child with no handler of its own, is the nearest thing under a tap.
inherited
position(Object value) → DVLight
A DVVec3 or a signal of one, in metres.
inherited
rotation(Object value) → DVLight
A DVQuat or a signal of one.
inherited
rotationY(Object radians) → DVLight
Radians about the up axis, or a signal of them, applied after rotation.
inherited
scale(Object value) → DVLight
A uniform number, a DVVec3, or a signal of either.
inherited
shadows([bool cast = true]) → DVLight
This light casts shadows.
toString() → String
A string representation of this object.
inherited
visible(Object value) → DVLight
A bool or a signal of one. A hidden node is neither drawn nor tapped, and neither are its children.
inherited

Operators

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