Пример #1
0
        public static QueryablePropertyInfo GetProperty(DicomTagPath path)
        {
            if (!_dictionary.ContainsKey(path))
            {
                return(null);
            }

            return(_dictionary[path]);
        }
Пример #2
0
            private static DicomAttribute AddAttributeToResult(DicomTagPath atrributePath, DicomAttributeCollection result)
            {
                int i = 0;

                while (i < atrributePath.TagsInPath.Count - 1)
                {
                    DicomAttributeSQ sequence = (DicomAttributeSQ)result[atrributePath.TagsInPath[i++]];
                    if (sequence.IsEmpty)
                    {
                        sequence.AddSequenceItem(new DicomSequenceItem());
                    }

                    result = ((DicomSequenceItem[])sequence.Values)[0];
                }

                return(result[atrributePath.TagsInPath[i]]);
            }
Пример #3
0
            private static void AddValueToResult(DicomTagPath atrributePath, string value, DicomAttributeCollection result)
            {
                DicomAttribute attribute = AddAttributeToResult(atrributePath, result);

                attribute.SetStringValue(value);
            }
Пример #4
0
 public QueryablePropertyAttribute(params uint[] tags)
 {
     Path = new DicomTagPath(tags);
 }