Skip to main content

Function: addSegmentationListener()

addSegmentationListener(segmentationId, representationType, updateFunction): void

Subscribes to segmentation update events for a given segmentation and calls the given updateFunction for the given representation.

Parameters​

• segmentationId: string

ID of the segmentation.

• representationType: string

Representation type (e.g., Labelmap, Surface, etc.).

• updateFunction

Function to handle segmentation updates.

Returns​

void

Defined in​

tools/src/stateManagement/segmentation/segmentationEventManager.ts:43