Skip to main content

Function: addImageSlicesToViewports()

addImageSlicesToViewports(renderingEngine, stackInputs, viewportIds): Promise<void>

For each provided viewport it adds a volume to the viewport using the provided renderingEngine

Parameters

renderingEngine: RenderingEngine

The rendering engine to use to get viewports from

stackInputs: IStackInput[]

viewportIds: string[]

Array of viewport IDs to add the volume to

Returns

Promise<void>

A promise that resolves when all volumes have been added

Defined in

packages/core/src/RenderingEngine/helpers/addImageSlicesToViewports.ts:19