public bool HasOverlayActivationLayer(int index) { if (index < 0 || index >= 16) { return(false); } DicomElement attrib; if (!base.DicomElementProvider.TryGetAttribute(OverlayPlaneModuleIod.ComputeTagOffset(index) + DicomTags.OverlayActivationLayer, out attrib)) { return(false); } else { return(true); } }
/// <summary> /// Initializes a new instance of the <see cref="OverlayPlane"/> class. /// </summary> /// <param name="index">The zero-based index of this overlay.</param> /// <param name="dicomElementProvider">The underlying collection.</param> internal OverlayPlane(int index, IDicomElementProvider dicomElementProvider) : base(dicomElementProvider) { _index = index; _tagOffset = OverlayPlaneModuleIod.ComputeTagOffset(_index); }