Beispiel #1
0
        public static QueryablePropertyInfo GetProperty(DicomTagPath path)
        {
            if (!_dictionary.ContainsKey(path))
            {
                return(null);
            }

            return(_dictionary[path]);
        }
            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]]);
            }
            private static void AddValueToResult(DicomTagPath atrributePath, string value, DicomAttributeCollection result)
            {
                DicomAttribute attribute = AddAttributeToResult(atrributePath, result);

                attribute.SetStringValue(value);
            }
Beispiel #4
0
 public QueryablePropertyAttribute(params uint[] tags)
 {
     Path = new DicomTagPath(tags);
 }