org.dcm4che3.data.Attributes.getPrivateCreator()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中org.dcm4che3.data.Attributes.getPrivateCreator()方法的一些代码示例,展示了Attributes.getPrivateCreator()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attributes.getPrivateCreator()方法的具体详情如下:
包路径:org.dcm4che3.data.Attributes
类名称:Attributes
方法名:getPrivateCreator

Attributes.getPrivateCreator介绍

暂无

代码示例

代码示例来源:origin: org.dcm4che.tool/dcm4che-tool-qidors

protected static String keyWordOf(final QidoRS main,
    ElementDictionary dict, int tag, Attributes attrs) {
  String keyword;
  if(attrs.getPrivateCreator(tag) != null)  {
    keyword = ElementDictionary.keywordOf(tag, attrs.getPrivateCreator(tag));
  }
  else {
    keyword = dict.keywordOf(tag);
  }
  return keyword;
}

代码示例来源:origin: dcm4che/dcm4che

private boolean isBulkData(Attributes attrs) {
  return bulkDataDescriptor.isBulkData(itemPointers,
      attrs.getPrivateCreator(tag), tag, vr, length);
}

代码示例来源:origin: usnistgov/iheos-toolkit2

public void addKey(int tag, String... ss) {
  log = Utility.getLog();
  log.debug("MoveSCU::addKey tag=" + Integer.toHexString(tag));
  for (String s: ss) {
    log.debug(" Value=" + s);
  }
  VR vr = ElementDictionary.vrOf(tag, keys.getPrivateCreator(tag));
  keys.setString(tag, vr, ss);
}

代码示例来源:origin: dcm4che/dcm4che

public void addKey(int tag, String... ss) {
  VR vr = ElementDictionary.vrOf(tag, keys.getPrivateCreator(tag));
  keys.setString(tag, vr, ss);
}

代码示例来源:origin: dcm4che/dcm4che

public void addKey(int tag, String... ss) {
  VR vr = ElementDictionary.vrOf(tag, keys.getPrivateCreator(tag));
  keys.setString(tag, vr, ss);
}

代码示例来源:origin: org.dcm4che.tool/dcm4che-tool-getscu

public void addKey(int tag, String... ss) {
  VR vr = ElementDictionary.vrOf(tag, keys.getPrivateCreator(tag));
  keys.setString(tag, vr, ss);
}

代码示例来源:origin: dcm4che/dcm4che

@Override
public void readValue(DicomInputStream dis, Attributes attrs) throws IOException {
  int tag = dis.tag();
  if (dis.level() == 0 && tag == Tag.PixelData) {
    imageDescriptor = new ImageDescriptor(attrs);
    initDicomOutputStream();
    processPixelData();
    postPixelData = new Attributes(dis.bigEndian());
  } else {
    dis.readValue(dis, attrs);
    if (postPixelData != null && dis.level() == 0)
      postPixelData.addSelected(attrs, attrs.getPrivateCreator(tag), tag);
  }
}

代码示例来源:origin: dcm4che/dcm4che

private void writeAttribute(int tag, VR vr, Object value,
    SpecificCharacterSet cs, Attributes attrs) throws SAXException {
  if (TagUtils.isGroupLength(tag) || TagUtils.isPrivateCreator(tag))
    return;
  String privateCreator = attrs.getPrivateCreator(tag);
  addAttributes(tag, vr, privateCreator);
  startElement("DicomAttribute");
  if (value instanceof Value)
    writeAttribute((Value) value, attrs.bigEndian());
  else if (!vr.isInlineBinary()) {
    writeValues(vr, value, attrs.bigEndian(),
        attrs.getSpecificCharacterSet(vr));
  } else if (value instanceof byte[]) {
    writeInlineBinary(attrs.bigEndian()
        ? vr.toggleEndian((byte[]) value, true)
        : (byte[]) value);
  } else
    throw new IllegalArgumentException("vr: " + vr + ", value class: "
        + value.getClass());
  endElement("DicomAttribute");
}

代码示例来源:origin: dcm4che/dcm4che

if (vr == VR.UN) {
  vr = ElementDictionary.vrOf(tag,
      attrs.getPrivateCreator(tag));
  if (vr == VR.UN && length == -1)

代码示例来源:origin: dcm4che/dcm4che

private void readFragments(Attributes attrs, int fragsTag, VR vr)
    throws IOException {
  Fragments frags = new Fragments(vr, attrs.bigEndian(), 10);
  String privateCreator = attrs.getPrivateCreator(fragsTag);
  for (int i = 0; readItemHeader(); ++i) {
    addItemPointer(fragsTag, privateCreator, i);
    handler.readValue(this, frags);
    removeItemPointer();
  }
  if (frags.isEmpty())
    attrs.setNull(fragsTag, vr);
  else {
    frags.trimToSize();
    attrs.setValue(fragsTag, vr, frags);
  }
}

代码示例来源:origin: dcm4che/dcm4che

private void readSequence(int len, Attributes attrs, int sqtag)
    throws IOException {
  if (len == 0) {
    attrs.setNull(sqtag, VR.SQ);
    return;
  }
  Sequence seq = attrs.newSequence(sqtag, 10);
  String privateCreator = attrs.getPrivateCreator(sqtag);
  boolean undefLen = len == -1;
  long endPos = pos + (len & 0xffffffffL);
  boolean explicitVR0 = explicitVR;
  boolean bigEndian0 = bigEndian;
  if (encodedVR == 0x554e // UN
      && !probeExplicitVR()) {
    explicitVR = false;
    bigEndian = false;
  }
  for (int i = 0; (undefLen || pos < endPos) && readItemHeader(); ++i) {
    addItemPointer(sqtag, privateCreator, i);
    handler.readValue(this, seq);
    removeItemPointer();
  }
  explicitVR = explicitVR0;
  bigEndian = bigEndian0;
  if (seq.isEmpty())
    attrs.setNull(sqtag, VR.SQ);
  else
    seq.trimToSize();
}

代码示例来源:origin: dcm4che/dcm4che

public static void addAttributes(Attributes attrs, int[] tags, String... ss) {
  Attributes item = attrs;
  for (int i = 0; i < tags.length-1; i++) {
    int tag = tags[i];
    Sequence sq = item.getSequence(tag);
    if (sq == null)
      sq = item.newSequence(tag, 1);
    if (sq.isEmpty())
      sq.add(new Attributes());
    item = sq.get(0);
  }
  int tag = tags[tags.length-1];
  VR vr = ElementDictionary.vrOf(tag,
      item.getPrivateCreator(tag));
  if (ss.length == 0)
    if (vr == VR.SQ)
      item.newSequence(tag, 1).add(new Attributes(0));
    else
      item.setNull(tag, vr);
  else
    item.setString(tag, vr, ss);
}

代码示例来源:origin: org.dcm4che.tool/dcm4che-tool-common

public static void addAttributes(Attributes attrs, int[] tags, String... ss) {
  Attributes item = attrs;
  for (int i = 0; i < tags.length-1; i++) {
    int tag = tags[i];
    Sequence sq = item.getSequence(tag);
    if (sq == null)
      sq = item.newSequence(tag, 1);
    if (sq.isEmpty())
      sq.add(new Attributes());
    item = sq.get(0);
  }
  int tag = tags[tags.length-1];
  VR vr = ElementDictionary.vrOf(tag,
      item.getPrivateCreator(tag));
  if (ss.length == 0)
    if (vr == VR.SQ)
      item.newSequence(tag, 1).add(new Attributes(0));
    else
      item.setNull(tag, vr);
  else
    item.setString(tag, vr, ss);
}

代码示例来源:origin: dcm4che/dcm4che

dis.skipFully(len);
} else try {
  String privateCreator = attrs.getPrivateCreator(tag);
  addAttributes(tag, vr, privateCreator);
  startElement("DicomAttribute");

代码示例来源:origin: org.dcm4che.tool/dcm4che-tool-qidors

for (int tag : main.returnAttrs.tags()) {
  if (!TagUtils.isPrivateCreator(tag)) {
    url = addParam(url, "includefield", ElementDictionary.keywordOf(tag, main.returnAttrs.getPrivateCreator(tag)));

相关文章

微信公众号

最新文章

更多