Skip to main content

Function: getVolumeViewportsContainingSameVolumes()

getVolumeViewportsContainingSameVolumes(targetViewport, renderingEngineId?): IVolumeViewport[]

Returns the viewports containing the same volume actors (all actors) the same as the target viewport. If renderingEngineId is provided, it will only return viewports that are associated with the renderingEngineId; otherwise, it will return search in all rendering engines.

This method is useful for finding viewports that are associated with the same volume (e.g., for tools that share state between viewports).

Parameters

targetViewport: VolumeViewport

renderingEngineId?: string

Returns

IVolumeViewport[]

array of viewports that have the same volume actor as the target viewport

Defined in

packages/core/src/utilities/getVolumeViewportsContainingSameVolumes.ts:19