예제 #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);
 }