Function: setActiveSegmentIndex()
setActiveSegmentIndex(
segmentationId,segmentIndex):void
Set the active segment index for a segmentation Id. It fires a global state modified event. Also it invalidates the brush cursor for all toolGroups that has the segmentationId as active segment (since the brush cursor color should change as well)
Parameters
• segmentationId: string
The id of the segmentation that the segment belongs to.
• segmentIndex: number
The index of the segment to be activated.
Returns
void
Triggers
SEGMENTATION_MODIFIED