addROI (roi, styleOptions) {
    console.info(`add ROI ${roi.uid}`)
    const geometry = scoord3d2Geometry(roi.scoord3d, this[_pyramidMetadata])
    const featureOptions = { geometry }

    const feature = new Feature(featureOptions)
    _addROIPropertiesToFeature(feature, roi.properties, true)
    feature.setId(roi.uid)

    _wireMeasurementsAndQualitativeEvaluationsEvents(
      this[_map],
      feature,
      this[_pyramidMetadata]
    )

    this[_features].push(feature)

    _setFeatureStyle(feature, styleOptions)
    const isVisible = Object.keys(styleOptions).length !== 0
    this[_annotationManager].setMarkupVisibility(roi.uid, isVisible)
  }
/**
   * Adds a regions of interest.
   *
   * @param {ROI} item - Regions of interest
   * @param {object} styleOptions - Style options
   * @param {object} styleOptions.stroke - Style options for the outline of the geometry
   * @param {number[]} styleOptions.stroke.color - RGBA color of the outline
   * @param {number} styleOptions.stroke.width - Width of the outline
   * @param {object} styleOptions.fill - Style options for body the geometry
   * @param {number[]} styleOptions.fill.color - RGBA color of the body
   * @param {object} styleOptions.image - Style options for image
   *
   */
Adds a regions of interest.
Adds a regions of interest .
addROI (roi, styleOptions) {
    console.info(`add ROI ${roi.uid}`)
    const geometry = scoord3d2Geometry(roi.scoord3d, this[_pyramidMetadata])
    const featureOptions = { geometry }
    const feature = new Feature(featureOptions)
    _addROIPropertiesToFeature(feature, roi.properties, true)
    feature.setId(roi.uid)
    _wireMeasurementsAndQualitativeEvaluationsEvents(
      this[_map],
      feature,
      this[_pyramidMetadata]
    )
    this[_features].push(feature)
    _setFeatureStyle(feature, styleOptions)
    const isVisible = Object.keys(styleOptions).length !== 0
    this[_annotationManager].setMarkupVisibility(roi.uid, isVisible)
  }
addROI ( roi , styleOptions ) { console . info ( ` ${ roi . uid } ` ) const geometry = scoord3d2Geometry ( roi . scoord3d , this [ _pyramidMetadata ] ) const featureOptions = { geometry } const feature = new Feature ( featureOptions ) _addROIPropertiesToFeature ( feature , roi . properties , true ) feature . setId ( roi . uid ) _wireMeasurementsAndQualitativeEvaluationsEvents ( this [ _map ] , feature , this [ _pyramidMetadata ] ) this [ _features ] . push ( feature ) _setFeatureStyle ( feature , styleOptions ) const isVisible = Object . keys ( styleOptions ) . length !== 0 this [ _annotationManager ] . setMarkupVisibility ( roi . uid , isVisible ) }
Adds a regions of interest.
Adds a regions of interest .