|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjdcm.DicomElement
public final class DicomElement
This class encapsulates a DICOM data element. A DICOM Data Element represents a specifically identified piece of information that has an group and element number, a Value Representation (VR) and a Value Multiplicity(VM).
DicomSequence| Constructor Summary | |
|---|---|
DicomElement(int group,
int element,
java.lang.String vr,
byte[] value)
Constructs a Dicom Element with a group, element numbers, Value Representation (VR) and a array byte byte[] value. |
|
DicomElement(int group,
int element,
java.lang.String vr,
DicomSequence sequence)
Constructs a Dicom Element with a group, element numbers, Value Representation (VR) and a sequence. |
|
DicomElement(int group,
int element,
java.lang.String vr,
double value)
Constructs a Dicom Element with a group, element numbers, Value Representation (VR) and a double value. |
|
DicomElement(int group,
int element,
java.lang.String vr,
double[] value)
Constructs a Dicom Element with a group, element numbers, Value Representation (VR) and a multiple double value. |
|
DicomElement(int group,
int element,
java.lang.String vr,
int value)
Constructs a Dicom Element with a group, element numbers, Value Representation (VR) and a single int value. |
|
DicomElement(int group,
int element,
java.lang.String vr,
int[] value)
Constructs a Dicom Element with a group, element numbers, Value Representation (VR) and a mutiple int values. |
|
DicomElement(int group,
int element,
java.lang.String vr,
java.lang.String value)
Constructs a Dicom Element with a group, element numbers, Value Representation (VR) and a String value. |
|
DicomElement(int group,
int element,
java.lang.String vr,
java.lang.String[] value)
Constructs a Dicom Element with a group, element numbers, Value Representation (VR) and a multiple String value. |
|
| Method Summary | |
|---|---|
int |
getElement()
Retrieve the element number of the dicom element |
int |
getGroup()
Retrieves the group number of the dicom element |
DicomSequence |
getSequence()
Retrieve the sequence for SQ OW and OB dicom elements |
byte[] |
getValue()
Retrieve the array byte value of the dicom element |
double |
getValueAsDouble()
Retrieve the first value of the dicom element as an double. |
double |
getValueAsDouble(int index)
Retrieve the index value of the dicom element as an double. |
int |
getValueAsInt()
Retrieve the first value of the dicom element as an int. |
int |
getValueAsInt(int index)
Retrieve the index value of the dicom element as an int. |
java.lang.String |
getValueAsString()
Return value as String |
java.lang.String |
getValueAsString(int index)
Retrieve the index value of the dicom element as an String. |
int |
getVM()
Retrieve the value multiplicity of the dicom element. |
java.lang.String |
getVR()
Retrieves the data element's Value Representation |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DicomElement(int group,
int element,
java.lang.String vr,
int value)
group - element - vr - SL,UL,IS,US,SSvalue -
public DicomElement(int group,
int element,
java.lang.String vr,
int[] value)
int values.
group - element - vr - SL,UL,IS,US,SSvalue -
public DicomElement(int group,
int element,
java.lang.String vr,
byte[] value)
byte[] value.
group - element - vr - OB,OW,ATvalue -
public DicomElement(int group,
int element,
java.lang.String vr,
java.lang.String value)
String value.
group - element - vr - AE,AS,CS,DS,IS,LO,LT,PN,SH,SS,ST,UI,UN,UT,DT,DA,TM,ATvalue -
public DicomElement(int group,
int element,
java.lang.String vr,
java.lang.String[] value)
String value.
group - element - vr - AE,AS,CS,DS,IS,LO,LT,PN,SH,SS,ST,UI,UN,UT,DT,DA,TM,ATvalue -
public DicomElement(int group,
int element,
java.lang.String vr,
double value)
double value.
group - element - vr - FL,FD,OFvalue -
public DicomElement(int group,
int element,
java.lang.String vr,
double[] value)
double value.
group - element - vr - FL,FD,OFvalue -
public DicomElement(int group,
int element,
java.lang.String vr,
DicomSequence sequence)
group - element - vr - SQ OB OWsequence - | Method Detail |
|---|
public int getValueAsInt()
int.
The getValueAsInt() method for class DicomElement
has the same effect as:
getValueAsInt(0)
public int getValueAsInt(int index)
int.
index -
public double getValueAsDouble()
double.
The getValueAsDouble() method for class DicomElement
has the same effect as:
getValueAsDouble(0)
public double getValueAsDouble(int index)
double.
index -
public java.lang.String getValueAsString()
public java.lang.String getValueAsString(int index)
String.
index -
public int getVM()
public DicomSequence getSequence()
public byte[] getValue()
public int getGroup()
public int getElement()
public java.lang.String getVR()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||