public class DicomHeader
extends java.lang.Object
Constructor and Description |
---|
DicomHeader() |
Modifier and Type | Method and Description |
---|---|
void |
addInfo(int tagId,
DicomElement info)
Add DICOM header entry
|
static void |
addTransferSyntax(DicomTransferSyntax syntax)
Adds a possible transfer syntax, previously unknown, allowing for decoding of
new DICOM information
|
DicomDateTime |
getDateTime(int tagId)
Determines the data/time value of a given header element (if represents valid date/time)
|
double |
getDecimalValue(int tagId,
double defaultValue)
Determines the decimal value of a given header element (if represents valid decimal number)
|
DicomElement |
getElement(int tagId)
Query DICOM header information
|
int |
getIntValue(int tagId,
int defaultValue)
Determines the integer value of a given header element (if represents valid integer)
|
double[] |
getMultiDecimalValue(int tagId)
Determines the decimal array value of a given header element (if represents valid decimal array)
|
int[] |
getMultiIntValue(int tagId)
Determines the integer array value of a given header element (if represents valid integer array)
|
java.lang.String[] |
getMultiStringValue(int tagId)
Determines the string values of a given header element
|
DicomElement[] |
getSequence(int tagId) |
java.lang.String |
getStringValue(int tagId)
Determines the string representation of a given header element
|
DicomTransferSyntax |
getTransferSyntax() |
static DicomTransferSyntax |
getTransferSyntax(java.lang.String uid)
Determines the appropriate transfer syntax based on the syntax's uid
|
VectorNd |
getVectorValue(int tagId)
Determines the vector value of a given header element (if represents valid vector)
|
DicomElement |
removeInfo(int tagId)
Remove DICOM header information
|
java.lang.String |
toString() |
public void addInfo(int tagId, DicomElement info)
tagId
- integer tag identifying header elementinfo
- header information to addpublic DicomElement removeInfo(int tagId)
tagId
- integer tag identifying header elementpublic DicomElement getElement(int tagId)
tagId
- integer tag identifying header elementpublic java.lang.String toString()
toString
in class java.lang.Object
public DicomTransferSyntax getTransferSyntax()
public java.lang.String getStringValue(int tagId)
tagId
- integer tag identifier for the header elementpublic int getIntValue(int tagId, int defaultValue)
tagId
- DICOM tag identifierdefaultValue
- default integer value to return if the tag is not present in the headerpublic double getDecimalValue(int tagId, double defaultValue)
tagId
- DICOM tag identifierdefaultValue
- default decimal value to return if the tag is not present in the headerpublic VectorNd getVectorValue(int tagId)
tagId
- DICOM tag identifierpublic DicomElement[] getSequence(int tagId)
public java.lang.String[] getMultiStringValue(int tagId)
tagId
- DICOM tag identifierpublic int[] getMultiIntValue(int tagId)
tagId
- DICOM tag identifierpublic double[] getMultiDecimalValue(int tagId)
tagId
- DICOM tag identifierpublic DicomDateTime getDateTime(int tagId)
tagId
- DICOM tag identifierpublic static void addTransferSyntax(DicomTransferSyntax syntax)
syntax
- transfer syntax to add, containing necessary decoding informationpublic static DicomTransferSyntax getTransferSyntax(java.lang.String uid)
uid
- the identifying uid for the transfer syntax