DVSceneCamera class
The camera a viewport draws from.
DVSceneCamera rather than the specification's DVCamera, which is
already the device camera at DV.Platform.camera; a scene camera that
could also takePhoto() would be a lie in the other direction.
- Inheritance
-
- Object
- DVSceneNode
- DVSceneCamera
- Mixed-in types
Constructors
- DVSceneCamera.orbit({DVVec3 target = DVVec3.zero, required double distance, double yawDegrees = 0, double pitchDegrees = 0, bool controls = false, double fovYDegrees = 45, double near = 0.1, double far = 1000})
-
Orbits
targetatdistance, startingyawDegreesround andpitchDegreesup; withcontrols, drag turns and pinch zooms it.factory - DVSceneCamera.perspective({double fovYDegrees = 45, double near = 0.1, double far = 1000})
-
Looks down its own -Z from wherever position and rotation put it.
factory
Properties
- camera → DVSceneCameraData
-
final
-
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 - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
anchor(
DVAnchor anchor) → DVSceneCamera -
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) → DVSceneCamera -
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) → DVSceneCamera -
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) → DVSceneCamera -
Called when a grab on this node is released, in a spatial session.
inherited
-
onTap(
VoidCallback handler) → DVSceneCamera -
Called when this node, or a child with no handler of its own, is the
nearest thing under a tap.
inherited
-
position(
Object value) → DVSceneCamera -
A DVVec3 or a signal of one, in metres.
inherited
-
rotation(
Object value) → DVSceneCamera -
A DVQuat or a signal of one.
inherited
-
rotationY(
Object radians) → DVSceneCamera -
Radians about the up axis, or a signal of them, applied after
rotation.
inherited
-
scale(
Object value) → DVSceneCamera -
A uniform number, a DVVec3, or a signal of either.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
visible(
Object value) → DVSceneCamera -
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