Skip to main content

Function: addContourRepresentationToViewport()

addContourRepresentationToViewport(viewportId, contourInputArray): void

Adds one or more contour segmentations to a specific viewport.

Parameters​

• viewportId: string

The identifier of the viewport to add the contour segmentations to.

• contourInputArray: RepresentationPublicInput[]

An array of contour segmentation inputs to be added.

Returns​

void

A promise that resolves to an array of segmentation representation UIDs.

Defined in​

tools/src/stateManagement/segmentation/addSegmentationRepresentationsToViewport.ts:24