extensions/xnat/src/components/XNATSegmentationPanel.js
/**
   * onSegmentChange - Callback that changes the active segment being drawn.
   *
   * @param  {Number} segmentIndex The index of the segment to set active.
   * @returns {null}
   */
Callback that changes the active segment being drawn.
@param  {Number} segmentIndex The index of the segment to set active.
@returns {null}
Callback that changes the active segment being drawn . @param { Number } segmentIndex The index of the segment to set active . @returns { null }
onSegmentChange(segmentIndex) {
    const { labelmap3D } = this.state;
    labelmap3D.activeSegmentIndex = segmentIndex;
    this.setState({ activeSegmentIndex: segmentIndex });
    refreshViewports();
  }
onSegmentChange ( segmentIndex ) { const { labelmap3D } = this . state ; labelmap3D . activeSegmentIndex = segmentIndex ; this . setState ( { activeSegmentIndex : segmentIndex } ) ; refreshViewports ( ) ; }
onSegmentChange - Callback that changes the active segment being drawn.
onSegmentChange - Callback that changes the active segment being drawn .