extensions/xnat/src/utils/IO/classes/RTStructReader.js
/**
   * _extractOneROIContour - extracts one ROIContour from the dataset.
   *
   * @param  {type} ROIContourDataSet The dataset of the ROIContour.
   * @returns {null}
   */
extracts one ROIContour from the dataset.
@param  {type} ROIContourDataSet The dataset of the ROIContour.
@returns {null}
extracts one ROIContour from the dataset . @param { type } ROIContourDataSet The dataset of the ROIContour . @returns { null }
_extractOneROIContour(ROIContourDataSet) {
    const ROINumber = ROIContourDataSet.string(
      RTStructTag['ReferencedROINumber']
    );
    const ROIContourUid = this._createNewROIContourAndGetUid(ROINumber);
    const contourSequence =
      ROIContourDataSet.elements[RTStructTag['ContourSequence']];
    const polygon = contourSequence.items;
    for (let i = 0; i < polygon.length; i++) {
      this._extractOnePolygon(polygon[i].dataSet, ROIContourUid, ROINumber);
    }
  }
_extractOneROIContour ( ROIContourDataSet ) { const ROINumber = ROIContourDataSet . string ( RTStructTag [ 'ReferencedROINumber' ] ) ; const ROIContourUid = this . _createNewROIContourAndGetUid ( ROINumber ) ; const contourSequence = ROIContourDataSet . elements [ RTStructTag [ 'ContourSequence' ] ] ; const polygon = contourSequence . items ; for ( let i = 0 ; i < polygon . length ; i ++ ) { this . _extractOnePolygon ( polygon [ i ] . dataSet , ROIContourUid , ROINumber ) ; } }
_extractOneROIContour - extracts one ROIContour from the dataset.
_extractOneROIContour - extracts one ROIContour from the dataset .