Exemple #1
0
        public DicomFieldAttribute(uint tag)
        {
            _tag = DicomTagDictionary.GetDicomTag(tag);
            if (_tag == null)
            {
                _tag = new DicomTag(tag, "Unknown Tag", "UnknownTag", DicomVr.UNvr, false, 1, uint.MaxValue, false);
            }

            _default     = DicomFieldDefault.None;
            _defltOnZL   = false;
            _createEmpty = false;
        }
Exemple #2
0
 /// <summary>
 /// Contructor from a <see cref="DicomCompressedPixelData"/> instance.
 /// </summary>
 /// <param name="compressedPixelData"></param>
 public DicomUncompressedPixelData(DicomCompressedPixelData compressedPixelData)
     : base(compressedPixelData)
 {
     if (BitsAllocated > 8)
     {
         _pd = new DicomAttributeOW(DicomTags.PixelData);
     }
     else
     {
         var pdTag = DicomTagDictionary.GetDicomTag(DicomTags.PixelData);
         var obTag = new DicomTag(DicomTags.PixelData, pdTag.Name, pdTag.VariableName, DicomVr.OBvr, pdTag.MultiVR, pdTag.VMLow, pdTag.VMHigh, pdTag.Retired);
         _pd = new DicomAttributeOB(obTag);
     }
     InitializeFrameData(this, _pd);
 }
Exemple #3
0
 /// <summary>
 /// Internal constructor when a uint representation of the tag is used to identify the tag being added.
 /// </summary>
 /// <param name="tag">The DICOM tag associated with the attribute being created.</param>
 internal DicomAttribute(uint tag)
 {
     Tag = DicomTagDictionary.GetDicomTag(tag);
 }