extensions/xnat/src/components/XNATContourMenu/LockedCollectionsListItem.js
/**
   * onShowHideClick - Toggles the visibility of the collections ROI Contours.
   *
   * @returns {null}
   */
Toggles the visibility of the collections ROI Contours.
@returns {null}
Toggles the visibility of the collections ROI Contours . @returns { null }
onShowHideClick() {
    const { collection, SeriesInstanceUID } = this.props;
    const { visible } = this.state;
    const structureSet = modules.freehand3D.getters.structureSet(
      SeriesInstanceUID,
      collection.metadata.uid
    );
    structureSet.visible = !visible;
    this.setState({ visible: !visible });
    cornerstone.getEnabledElements().forEach(enabledElement => {
      cornerstone.updateImage(enabledElement.element);
    });
  }
onShowHideClick ( ) { const { collection , SeriesInstanceUID } = this . props ; const { visible } = this . state ; const structureSet = modules . freehand3D . getters . structureSet ( SeriesInstanceUID , collection . metadata . uid ) ; structureSet . visible = ! visible ; this . setState ( { visible : ! visible } ) ; cornerstone . getEnabledElements ( ) . forEach ( enabledElement => { cornerstone . updateImage ( enabledElement . element ) ; } ) ; }
onShowHideClick - Toggles the visibility of the collections ROI Contours.
onShowHideClick - Toggles the visibility of the collections ROI Contours .