extensions/xnat/src/components/XNATContourPanel.js
/**
   * _lockedCollections - Returns a list of locked ROI Contour Collections.
   *
   * @returns {object} An array of locked ROI Contour Collections.
   */
Returns a list of locked ROI Contour Collections.
@returns {object} An array of locked ROI Contour Collections.
Returns a list of locked ROI Contour Collections . @returns { object } An array of locked ROI Contour Collections .
static _lockedCollections(SeriesInstanceUID) {
    const freehand3DStore = modules.freehand3D;
    let series = freehand3DStore.getters.series(SeriesInstanceUID);
    if (!series) {
      freehand3DStore.setters.series(SeriesInstanceUID);
      series = freehand3DStore.getters.series(SeriesInstanceUID);
    }
    const structureSetCollection = series.structureSetCollection;
    const lockedCollections = [];
    for (let i = 0; i < structureSetCollection.length; i++) {
      const structureSet = structureSetCollection[i];
      if (structureSet.uid === 'DEFAULT') {
        continue;
      }
      const ROIContourCollection = structureSet.ROIContourCollection;
      const ROIContourArray = [];
      for (let j = 0; j < ROIContourCollection.length; j++) {
        if (ROIContourCollection[j]) {
          ROIContourArray.push({
            index: j,
            metadata: ROIContourCollection[j],
          });
        }
      }
      lockedCollections.push({
        metadata: structureSet,
        ROIContourArray,
      });
    }
    return lockedCollections;
  }
static _lockedCollections ( SeriesInstanceUID ) { const freehand3DStore = modules . freehand3D ; let series = freehand3DStore . getters . series ( SeriesInstanceUID ) ; if ( ! series ) { freehand3DStore . setters . series ( SeriesInstanceUID ) ; series = freehand3DStore . getters . series ( SeriesInstanceUID ) ; } const structureSetCollection = series . structureSetCollection ; const lockedCollections = [ ] ; for ( let i = 0 ; i < structureSetCollection . length ; i ++ ) { const structureSet = structureSetCollection [ i ] ; if ( structureSet . uid === 'DEFAULT' ) { continue ; } const ROIContourCollection = structureSet . ROIContourCollection ; const ROIContourArray = [ ] ; for ( let j = 0 ; j < ROIContourCollection . length ; j ++ ) { if ( ROIContourCollection [ j ] ) { ROIContourArray . push ( { index : j , metadata : ROIContourCollection [ j ] , } ) ; } } lockedCollections . push ( { metadata : structureSet , ROIContourArray , } ) ; } return lockedCollections ; }
_lockedCollections - Returns a list of locked ROI Contour Collections.
_lockedCollections - Returns a list of locked ROI Contour Collections .