ProcessingSink

Trait ProcessingSink 

Source
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§

Source

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.

Source

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.

Source

fn on_bootstrap(&mut self, _bootstrap: &QuickMetadataBootstrap)

The lightweight spatial bootstrap, when Features::quick_metadata_bootstrap is on.

Source

fn on_frame(&mut self, _frame: &FrameEvent)

The frame this pass bakes vertices in.

Source

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.

Source

fn on_color_update(&mut self, _updates: &[(u32, [f32; 4])])

Colours resolved after the first batch, when styles were deferred.

Source

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.

Source

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.

Implementations on Foreign Types§

Source§

impl ProcessingSink for ()

Implementors§

Source§

impl<F> ProcessingSink for OnBatch<F>
where F: FnMut(&[MeshData], usize, usize),