Skip to main content

Function: createVolumeActor()

createVolumeActor(props, element, viewportId, suppressEvents): Promise<VolumeActor>

Given a volumeId, it creates a vtk volume actor and returns it. If callback is provided, it will be called with the volume actor and the volumeId. If blendMode is provided, it will be set on the volume actor.

Parameters

props: createVolumeActorInterface

createVolumeActorInterface

element: HTMLDivElement

viewportId: string

suppressEvents: boolean = false

Returns

Promise<VolumeActor>

A promise that resolves to a VolumeActor.

Defined in

packages/core/src/RenderingEngine/helpers/createVolumeActor.ts:33