Skip to main content

Crate spatialrust_viz

Crate spatialrust_viz 

Source
Expand description

Backend-independent visualization contracts.

This crate describes borrowed geometry, cameras, visual styles, layers, and explicit transfer receipts. It does not open windows, allocate GPU resources, or copy geometry between devices.

Structs§

Camera
Validated look-at camera.
DeviceIdentity
Stable identity of an explicit rendering or compute device.
LayerId
Stable, non-empty layer identifier.
LineListView
Borrowed pairs of line endpoints stored as interleaved XYZ values.
LinearRgba
Linear RGBA color with components in the inclusive range 0.0..=1.0.
PointCloudView
Borrowed point-cloud geometry.
PointStyle
Point rendering style.
PositionColumns3
Borrowed structure-of-arrays XYZ position columns.
Rgb8Columns
Borrowed structure-of-arrays RGB color columns.
ScalarColumn
Named borrowed scalar values used for point coloring.
TransferEvent
One named explicit data transfer.
TransferReceipt
Ordered ledger of explicit visual-data transfers.
TriangleMeshView
Borrowed indexed triangle mesh.
VisualLayer
One named visual primitive and its presentation state.
VisualScene
Ordered collection of uniquely identified visual layers.

Enums§

ColorMap
Built-in scalar color maps with stable names.
PointColor
Color source for point primitives.
Projection
Projection used to render a visual scene.
TransferDirection
Direction of an explicit host/device transfer.
VisualPrimitive
Backend-independent borrowed visual geometry.
VisualResidency
Residency of visual data before or after an explicit transfer.
VisualStyle
Style applied to a visual primitive.
VizError
Errors returned when visualization input violates a public contract.

Functions§

point_cloud_positions
Creates a zero-copy point view from a core position capability.

Type Aliases§

VizResult
Result type used by visualization contracts.