pub trait ProcessingSink {
// Provided methods
fn product_geometry_audit(&self) -> Option<ProductGeometryAudit> { ... }
fn on_omitted_type_records(&mut self, _records: &[u32]) { ... }
fn on_bootstrap(&mut self, _bootstrap: &QuickMetadataBootstrap) { ... }
fn on_frame(&mut self, _frame: &FrameEvent) { ... }
fn on_batch(
&mut self,
_meshes: &[MeshData],
_processed: usize,
_total: usize,
) { ... }
fn on_color_update(&mut self, _updates: &[(u32, [f32; 4])]) { ... }
fn on_finishes(&mut self, _finishes: &[Option<SpecularMaterial>]) { ... }
fn on_instance_finishes(&mut self, _finishes: &[Option<SpecularMaterial>]) { ... }
}Expand description
Events of one process pass. See the module docs.
Provided Methods§
Sourcefn product_geometry_audit(&self) -> Option<ProductGeometryAudit>
fn product_geometry_audit(&self) -> Option<ProductGeometryAudit>
Opt in to per-job refusal receipts without changing the mesh pipeline. The returned handle belongs to this request; ordinary sinks allocate none.
Sourcefn on_omitted_type_records(&mut self, _records: &[u32])
fn on_omitted_type_records(&mut self, _records: &[u32])
F2 (#8341): distinct type records, ascending, whose planned type
geometry was omitted because the full decoder rejects the record. A
plain decode failure, never an input-admission refusal, so it is in
neither ProcessingStats::refused_* counter. Its length is the native
PipelineDiagnosticsReport::omitted_type_records.
Sourcefn on_bootstrap(&mut self, _bootstrap: &QuickMetadataBootstrap)
fn on_bootstrap(&mut self, _bootstrap: &QuickMetadataBootstrap)
The lightweight spatial bootstrap, when Features::quick_metadata_bootstrap is on.
Sourcefn on_frame(&mut self, _frame: &FrameEvent)
fn on_frame(&mut self, _frame: &FrameEvent)
The frame this pass bakes vertices in.
Sourcefn on_batch(&mut self, _meshes: &[MeshData], _processed: usize, _total: usize)
fn on_batch(&mut self, _meshes: &[MeshData], _processed: usize, _total: usize)
A chunk of meshes, with the jobs done so far and the job total.
Sourcefn on_color_update(&mut self, _updates: &[(u32, [f32; 4])])
fn on_color_update(&mut self, _updates: &[(u32, [f32; 4])])
Colours resolved after the first batch, when styles were deferred.
Sourcefn on_finishes(&mut self, _finishes: &[Option<SpecularMaterial>])
fn on_finishes(&mut self, _finishes: &[Option<SpecularMaterial>])
The IFC-authored finish of each mesh of the on_batch that follows,
when Features::finishes is on: finishes[i] belongs to its
meshes[i], None where nothing authored one. The join is
ModelFinishes’s, over the pass’s own
scan and index.
Sourcefn on_instance_finishes(&mut self, _finishes: &[Option<SpecularMaterial>])
fn on_instance_finishes(&mut self, _finishes: &[Option<SpecularMaterial>])
With Features::finishes on, called once after the mesh batches when
the result contains instances. Each entry belongs to the instance at
the same index in ProcessingResult::instances, with None when
its style authors no finish.