Skip to main content

Function: setSegmentationRepresentationVisibility()

setSegmentationRepresentationVisibility(viewportId, specifier, visibility): void

Sets the visibility of a segmentation representation for a given viewport.

Parameters

viewportId: string

The ID of the viewport that the segmentation representation belongs to.

specifier

The specifier for the segmentation representation.

specifier.segmentationId: string

The ID of the segmentation.

specifier.type?: SegmentationRepresentations

The type of the segmentation representation.

visibility: boolean

The visibility state to set for the segmentation representation.

Returns

void

void

Remarks

This function sets the visibility of a specific segmentation representation for a given viewport. if the type is not specified, the visibility of all representations of the segmentation will be set.

Defined in

tools/src/stateManagement/segmentation/config/segmentationVisibility.ts:25