ng-cornerstone
Version:
[](https://github.com/prettier/prettier) [](http://commitizen.git
16 lines (15 loc) • 911 B
TypeScript
/**
* Similar to {@link addVolumesToViewports} it adds volumes to viewports; however,
* this method will Set the volumes on the viewports which means that the previous
* volumes will be removed.
*
* @param renderingEngine - The rendering engine to use to get viewports from
* @param volumeInputs - Array of volume inputs including volumeId. Other properties
* such as visibility, callback, blendMode, slabThickness are optional
* @param viewportIds - Array of viewport IDs to add the volume to
* @param immediateRender - If true, the volumes will be rendered immediately
* @returns A promise that resolves when all volumes have been added
*/
import { Types } from '@cornerstonejs/core';
declare function setStacksForViewports(renderingEngine: Types.IRenderingEngine, viewportIds: Array<string>, imageIds: Array<string>, currentImageIdIndex?: number): Promise<void>;
export { setStacksForViewports };