extensions/xnat/src/utils/IO/classes/RoiExtractor.js
/**
   * _appendPolygon - Adds the polygon to the list of polygons on the ROIContour.
   *
   * @param  {object} data          The toolData of the polygon.
   * @param  {string} imageId       The imageId of the instance.
   * @param  {number} ROIContourIndex The index of the ROIContour.
   * @returns {null}
   */
Adds the polygon to the list of polygons on the ROIContour.
@param  {object} data          The toolData of the polygon.
@param  {string} imageId       The imageId of the instance.
@param  {number} ROIContourIndex The index of the ROIContour.
@returns {null}
Adds the polygon to the list of polygons on the ROIContour . @param { object } data The toolData of the polygon . @param { string } imageId The imageId of the instance . @param { number } ROIContourIndex The index of the ROIContour . @returns { null }
_appendPolygon(data, imageId, ROIContourIndex) {
    const ROIContourName = data.referencedROIContour.name;
    const sopInstanceUid = this._getSOPInstanceUidFromImageId(imageId);
    const frameNumber = this._getFrameNumber(imageId);
    const polygon = new Polygon(
      data.handles.points,
      sopInstanceUid,
      this._seriesInstanceUid,
      'DEFAULT',
      data.ROIContourUid,
      data.uid,
      frameNumber
    );
    this._ROIContours[ROIContourIndex].push(polygon);
  }
_appendPolygon ( data , imageId , ROIContourIndex ) { const ROIContourName = data . referencedROIContour . name ; const sopInstanceUid = this . _getSOPInstanceUidFromImageId ( imageId ) ; const frameNumber = this . _getFrameNumber ( imageId ) ; const polygon = new Polygon ( data . handles . points , sopInstanceUid , this . _seriesInstanceUid , 'DEFAULT' , data . ROIContourUid , data . uid , frameNumber ) ; this . _ROIContours [ ROIContourIndex ] . push ( polygon ) ; }
_appendPolygon - Adds the polygon to the list of polygons on the ROIContour.
_appendPolygon - Adds the polygon to the list of polygons on the ROIContour .