SplatRenderer class abstract interface

Backend-independent renderer contract for Gaussian splat output.

Implementers

Properties

camera Camera?
Currently active camera.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
highQualitySH bool
When true, evaluate spherical harmonics per-splat every frame (highest quality). When false, use the cheaper resolve-pass approximation that evaluates SH once per splat with a single global view direction.
getter/setter pair
ndcYSign double
NDC Y-axis sign this backend's render target expects.
no setter
onNeedsRender VoidCallback?
Callback invoked when another frame should be scheduled.
getter/setter pair
renderStats RenderStats
Latest frame statistics.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildOutput(BuildContext context, {required Size logicalSize}) Widget
Builds the widget that displays the last rendered frame.
disableBackground() → void
Removes the renderer-managed background, if any.
dispose() → void
Releases backend resources.
enableBackgroundFromAsset(String assetPath) Future<void>
Enables a renderer-managed background from an asset.
frame() Future<void>
Renders one frame.
initialize({bool debug}) Future<void>
Initializes backend resources that are independent of viewport size.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resize(Camera nextCamera) Future<bool>
Resizes the render target and applies nextCamera.
setBackgroundRotation(double yawDegrees, double pitchDegrees) → void
Updates renderer-managed background orientation.
setSplatData(Uint8List data) Future<void>
Uploads raw processed splat data.
setup({required int width, required int height, bool enableProfiling}) Future<void>
Creates render targets and shaders for a physical-pixel viewport.
toString() String
A string representation of this object.
inherited

Operators

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