SceneImpl class

For now, this class just holds the entities that have been loaded (though not necessarily visible in the Filament Scene).

Inheritance

Constructors

SceneImpl(ThermionViewer controller)

Properties

controller ThermionViewer
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onLoad Stream<ThermionEntity>
A Stream containing every ThermionEntity added to the scene (i.e. via loadGlb, loadGltf or addLight). This is provided for convenience so you can set listeners in front-end widgets that can respond to entity loads without manually passing around the ThermionEntity returned from those methods.
no setteroverride
onUnload Stream<ThermionEntity>
A Stream containing every ThermionEntity removed from the scene (i.e. via removeEntity, clearEntities, removeLight or clearLights).
no setteroverride
onUpdated Stream<bool>
A Stream updated whenever an entity is added/removed from the scene.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected ThermionEntity?
The last entity clicked/tapped in the viewport (internally, the result of calling pick);
getter/setter pairoverride

Methods

clearEntities() → void
clearLights() → void
dispose() Future
listEntities() Iterable<ThermionEntity>
Lists all entities currently loaded (not necessarily active in the scene). Does not account for instances.
override
listLights() Iterable<ThermionEntity>
Lists all entities currently loaded (not necessarily active in the scene).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerEntity(ThermionEntity entity) → void
override
registerLight(ThermionEntity entity) → void
registerSelected(ThermionEntity entity) → void
select(ThermionEntity entity) → void
Attach the gizmo to the specified entity.
override
toString() String
A string representation of this object.
inherited
unregisterEntity(ThermionEntity entity) → void
unregisterLight(ThermionEntity entity) → void
unregisterSelected() → void

Operators

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