コード例 #1
0
        public DElement(int groupNumber, int elementNumber, DVR vr, string value)
        {
            IsRef = false;

            DicomVR  dicomVR  = DHelper.ConvertToDicomVR(vr);
            DicomTag dicomTag = new DicomTag((ushort)groupNumber, (ushort)elementNumber);

            _element = CreateEmptyElement(dicomTag, dicomVR);
            Value    = value;
        }
コード例 #2
0
        public DElement(int tag, DVR vr, DValueType type)
        {
            IsRef = false;

            DicomVR  dicomVR  = DHelper.ConvertToDicomVR(vr);
            DicomTag dicomTag = DHelper.Int2DicomTag(tag);

            _element = CreateEmptyElement(dicomTag, dicomVR);

            Type = type;
        }
コード例 #3
0
        internal static DicomVR GetPrivateTagVR(uint tag)
        {
            if (PrivateTagList == null || PrivateTagList.Count < 1 || tag < 1)
            {
                return(DicomVR.UN);
            }

            foreach (PrivateTag t in PrivateTagList)
            {
                if (t.IntTag == tag)
                {
                    return(DHelper.ConvertToDicomVR(t.VR));
                }
            }

            return(DicomVR.UN);
        }
コード例 #4
0
 private void setVR(DVR vr)
 {
     try
     {
         DicomVR dicomVR = DHelper.ConvertToDicomVR(vr);
         if (_element != null)
         {
             DicomTag tag = _element.Tag;
             //string val = Value;
             _element = CreateEmptyElement(tag, dicomVR);
             //Value = val;
         }
     }
     catch (Exception ex)
     {
         LogMgt.Logger.Write(ex.ToString());
     }
 }