DV3DSceneDocument class final
A scene, as a document.
Constructors
-
DV3DSceneDocument({required String id, DVSceneUnits units = DVSceneUnits.meters, DVSceneUpAxis upAxis = DVSceneUpAxis.y, DVSceneHandedness handedness = DVSceneHandedness.right, String? environment = studioEnvironment, DVImage? poster, Map<
String, DVSceneAsset> assets = const <String, DVSceneAsset>{}, List<DVSceneNodeData> nodes = const <DVSceneNodeData>[], Map<String, Object?> extra = const <String, Object?>{}}) - DV3DSceneDocument.fromJson(Object? json)
-
factory
Properties
-
assets
→ Map<
String, DVSceneAsset> -
Sorted by key.
final
- environment → String?
-
studioEnvironment, an asset key of kind environment, or null for none.
final
-
extra
→ Map<
String, Object?> -
final
- handedness → DVSceneHandedness
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
-
nodes
→ List<
DVSceneNodeData> -
final
- poster → DVImage?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- units → DVSceneUnits
-
final
- upAxis → DVSceneUpAxis
-
final
Methods
-
encode(
) → String -
find(
String nodeId) → DVSceneNodeData? -
nodeIds(
) → List< String> - Every node id, depth first in document order.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
-
walk(
) → Iterable< DVSceneNodeData> - Every node, depth first in document order.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode(
String source) → DV3DSceneDocument -
isBuiltInEnvironment(
String? environment) → bool -
Whether
environmentnames something a document need not declare.
Constants
- format → const int
- The document format this runtime reads and writes.
- passthroughEnvironment → const String
-
The real world, through a headset's cameras, lit from an environment
probe where one is available. Presented flat, the studio environment is
used instead and
DV-XR-001says so. - studioEnvironment → const String
- The procedural image-based-lighting environment every scene can use without an asset.