DVSceneRuntime class final

A scene document, loaded and bound to a renderer.

Constructors

DVSceneRuntime({required DV3DSceneDocument document, required DVSceneRenderer? renderer, required DVSceneAssetLoader loader, bool enabled = true, bool presentsInSpace = false})

Properties

degradation → DV3DDegradation
no setter
document → DV3DSceneDocument
no setter
failedAssets → List<String>
Asset keys that did not load, sorted.
no setter
graph → DVSceneGraph
no setter
hashCode → int
The hash code for this object.
no setterinherited
isRendering → bool
Whether a frame can be drawn.
no setter
liveResources → int
no setter
presentsInSpace → bool
Whether an XR session presents this scene in space, placing its anchors and lighting its passthrough environment. False is a viewport: anchored nodes stay at the origin (DV-XR-002) and passthrough is drawn with the studio environment (DV-XR-001), each reported once.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Releases every resource once and disposes the renderer. Idempotent.
frame(DVSceneView view, double width, double height) → DVSceneFrame
Draws the scene from view into a width x height viewport.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pickAt(DVSceneView view, double x, double y, double width, double height, {bool where(String id)?}) → DVScenePick?
The node under pixel (x, y), for a tap.
start() → Future<DV3DDegradation>
Starts the renderer and loads the scene's assets.
toString() → String
A string representation of this object.
inherited
update(DV3DSceneDocument next) → Future<DV3DDegradation>
Moves to next, keeping the resources for assets it still uses.

Operators

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

Static Methods

debugResetReports() → void
Forgets which degradations were reported this boot. For tests.