DVMesh class
A procedural shape.
- Inheritance
-
- Object
- DVSceneNode
- DVMesh
- Mixed-in types
Constructors
- DVMesh.box(DVVec3 size)
-
A box with full extents
size.factory - DVMesh.plane(double width, double depth)
-
factory
- DVMesh.sphere(double radius)
-
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,cameraorlight.no setteroverride - primitive → DVScenePrimitive
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
anchor(
DVAnchor anchor) → DVMesh -
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 andDV-XR-002says so.inherited -
id(
String id) → DVMesh -
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
-
material(
DVSceneAsset material) → DVMesh -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onGrab(
VoidCallback handler) → DVMesh -
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) → DVMesh -
Called when a grab on this node is released, in a spatial session.
inherited
-
onTap(
VoidCallback handler) → DVMesh -
Called when this node, or a child with no handler of its own, is the
nearest thing under a tap.
inherited
-
position(
Object value) → DVMesh -
A DVVec3 or a signal of one, in metres.
inherited
-
rotation(
Object value) → DVMesh -
A DVQuat or a signal of one.
inherited
-
rotationY(
Object radians) → DVMesh -
Radians about the up axis, or a signal of them, applied after
rotation.
inherited
-
scale(
Object value) → DVMesh -
A uniform number, a DVVec3, or a signal of either.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
visible(
Object value) → DVMesh -
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