Function: getTargetVolumeAndSpacingInNormalDir()
getTargetVolumeAndSpacingInNormalDir(
viewport
,camera
,targetId
?,useSlabThickness
?):object
Given a volume viewport and camera, find the target volume. The imageVolume is retrieved from cache for the specified targetId or in case it is not provided, it chooses the volumeId on the viewport (there might be more than one in case of fusion) that has the finest resolution in the direction of view (normal).
Parameters
• viewport: VolumeViewport
volume viewport
• camera: ICamera
current camera
• targetId?: string
If a targetId is forced to be used.
• useSlabThickness?: boolean
= false
If true, the number of steps will be calculated based on the slab thickness instead of the spacing in the normal direction
Returns
object
An object containing the imageVolume and spacingInNormalDirection.
actorUID
actorUID:
string
imageVolume
imageVolume:
IImageVolume
spacingInNormalDirection
spacingInNormalDirection:
number
Defined in
packages/core/src/utilities/getTargetVolumeAndSpacingInNormalDir.ts:37