Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 /// <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);
 }