Z3DPointCloud class

A zero-allocation 3D LiDAR / depth-camera point cloud & metric rangefinder widget.

Projects up to 16,384 3D points (X, Y, Z) into 4 depth-sorted color/size buckets, batch-renders each depth band via Canvas.drawRawPoints, and overlays a live zero-allocation crosshair distance readout in meters via ZeroNumberPainter.

Inheritance
Implemented types

Constructors

Z3DPointCloud({Key? key, required ZeroPointCloudController controller, Size size = const Size(320.0, 220.0), Color nearColor = const Color(0xFF00F5D4), Color farColor = const Color(0xFF3B82F6), Color backgroundColor = const Color(0xFF070B14), double yaw = 0.0, double pitch = 0.2, bool showDistanceHud = true})
Creates a const Z3DPointCloud widget.
const

Properties

backgroundColor → Color
Viewport background color.
final
controller → ZeroPointCloudController
Backing 3D point cloud and depth sensor controller.
final
farColor → Color
Color for far-range 3D points.
final
hashCode → int
The hash code for this object.
no setterinherited
isZeroAllocation → bool
Whether this widget guarantees zero heap allocations during runtime updates.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
nearColor → Color
Color for near-range 3D points.
final
pitch → double
Vertical pitch orbit angle in radians.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showDistanceHud → bool
Whether to render the center crosshair & metric distance readout.
final
size → Size
Preferred viewport size when unconstrained.
final
yaw → double
Horizontal yaw orbit angle in radians.
final

Methods

createElement() → LeafRenderObjectElement
RenderObjectWidgets always inflate to a RenderObjectElement subclass.
inherited
createRenderObject(BuildContext context) → RenderZ3DPointCloud
Creates an instance of the RenderObject class that this RenderObjectWidget represents, using the configuration described by this RenderObjectWidget.
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didUnmountRenderObject(covariant RenderObject renderObject) → void
This method is called when a RenderObject that was previously associated with this widget is removed from the render tree. The provided RenderObject will be of the same type as the one created by this widget's createRenderObject method.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited
updateRenderObject(BuildContext context, covariant RenderZ3DPointCloud renderObject) → void
Copies the configuration described by this RenderObjectWidget to the given RenderObject, which will be of the same type as returned by this object's createRenderObject.

Operators

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