private static void readTagsInModalityView(TagView[] views) { for (TagView tagView : views) { if (tagView != null) { for (TagW tag : tagView.getTag()) { if (tag != null) { if (!DicomMediaIO.tagManager.contains(tag, Level.PATIENT) && !DicomMediaIO.tagManager.contains(tag, Level.STUDY) && !DicomMediaIO.tagManager.contains(tag, Level.SERIES)) { DicomMediaIO.tagManager.addTag(tag, Level.INSTANCE); } } } } } }
public void addMultiFrameTags(TagW tag, Condition condition) { if (tag != null) { multiFrameTags.add(new Rule(tag, condition)); DicomMediaIO.tagManager.addTag(tag, Level.FRAME); } }
public static void writeMetaData(MediaSeriesGroup group, Attributes header) { if (group == null || header == null) { return; } // Patient Group if (TagD.getUID(Level.PATIENT).equals(group.getTagID())) { DicomMediaIO.tagManager.readTags(Level.PATIENT, header, group); } // Study Group else if (TagD.getUID(Level.STUDY).equals(group.getTagID())) { DicomMediaIO.tagManager.readTags(Level.STUDY, header, group); } // Series Group else if (TagD.getUID(Level.SERIES).equals(group.getTagID())) { DicomMediaIO.tagManager.readTags(Level.SERIES, header, group); // Build patient age if not present group.setTagNoNull(TagD.get(Tag.PatientAge), getPatientAgeInPeriod(header, Tag.PatientAge, true)); } }
public void addSingleFrameTags(TagW tag, Condition condition) { if (tag != null) { singleFrameTags.add(new Rule(tag, condition)); DicomMediaIO.tagManager.addTag(tag, Level.INSTANCE); } }
tagManager.readTags(Level.INSTANCE, header, this);
public DicomData(String title, TagView[] infos, Level level) { if (infos == null) { throw new IllegalArgumentException(); } this.title = title; this.infos = infos; this.level = level; for (TagView tagView : infos) { for (TagW tag : tagView.getTag()) { DicomMediaIO.tagManager.addTag(tag, level); } } }
public void addTag(int tagID, Level level) { addTag(TagD.get(tagID), level); }