public bool OnFragmentItem(IByteBuffer item) { var tag = String.Format("{0}Fragment", Indent); Form.appendToInfo(String.Join(" ", tag, String.Empty, item.Size.ToString(), String.Empty) + "\r\n"); return(true); }
public bool OnElement(DicomElement element) { var tag = String.Format("{0}{1} {2}", Indent, element.Tag.ToString().ToUpper(), element.Tag.DictionaryEntry.Name); string value = "<large value not displayed>"; if (element.Length <= 2048) { value = String.Join("\\", element.Get <string[]>()); } if (element.ValueRepresentation == DicomVR.UI && element.Count > 0) { var uid = element.Get <DicomUID>(0); var name = uid.Name; if (name != "Unknown") { value = String.Format("{0} ({1})", value, name); } } Form.appendToInfo(String.Join( " ", tag, element.ValueRepresentation.Code, element.Length.ToString(), value) + "\r\n"); return(true); }
public bool OnBeginFragment(DicomFragmentSequence fragment) { var tag = String.Format("{0}{1} {2}", Indent, fragment.Tag.ToString().ToUpper(), fragment.Tag.DictionaryEntry.Name); Form.appendToInfo(String.Join(" ", tag, fragment.ValueRepresentation.Code, String.Empty, String.Empty) + "\r\n"); Level++; return(true); }
public bool OnBeginSequenceItem(DicomDataset dataset) { var tag = String.Format("{0}Sequence Item:", Indent); Form.appendToInfo(String.Join(" ", tag, String.Empty, String.Empty, String.Empty) + "\r\n"); Level++; return(true); }
public bool OnBeginSequence(DicomSequence sequence) { var tag = String.Format("{0}{1} {2}", Indent, sequence.Tag.ToString().ToUpper(), sequence.Tag.DictionaryEntry.Name); Form.appendToInfo(String.Join(" ", tag, "SQ", String.Empty, String.Empty) + "\r\n"); Level++; return(true); }