Package gov.nih.mipav.model.file
Class FileDicomSQItem
java.lang.Object
gov.nih.mipav.model.file.FileDicomTagTable
gov.nih.mipav.model.file.FileDicomSQItem
- All Implemented Interfaces:
Serializable,Cloneable
A table containing dicom tags. Common tags are not stored here and instead
should be stored in the reference tag table. The reference tag table may refer
to another table within a dicom sequence.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether the sequence should be written using an unknown lengthFields inherited from class gov.nih.mipav.model.file.FileDicomTagTable
childTagTables, isReferenceTagTable, parentFileInfo, referenceTagTable, tagTable, vr_type -
Constructor Summary
ConstructorsConstructorDescriptionFileDicomSQItem(FileInfoDicom parent, FileDicomTagTable firstSliceTags, FileInfoDicom.VRtype vr_type) FileDicomSQItem(FileInfoDicom parent, FileInfoDicom.VRtype vr_type) -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the sequence should be written using an unknown length, can be set as a preference by user.Return the tag values store in this sequence tag.final intgetWritableLength(boolean includeTagInfo) Gets the length as read in by the header (possibly undefined).voidsetWriteAsUnknownLength(boolean writeAsUnknownLength) Whether the sequence should be written using an unknown length, this includes adding a sequence delimitation item to the sequence.Methods inherited from class gov.nih.mipav.model.file.FileDicomTagTable
attachChildTagTables, clone, containsTag, containsTag, containsUniqueTag, containsUniqueTag, finalize, get, get, getDataLength, getNumberOfElements, getReferenceTagTable, getSeqTagList, getTagList, getTagListCopy, getTagListUnique, getValue, getValue, getValue, getValue, getVr_type, importTags, isReferenceTagTable, isTagSameAsReferenceTag, put, putPrivateTagValue, removeTag, removeTag, reset, setLength, setLength, setValue, setValue, setValue, setValue, setValue, setVr_type, sortTagsList, sortTagsList, toString
-
Field Details
-
writeAsUnknownLength
private boolean writeAsUnknownLengthWhether the sequence should be written using an unknown length
-
-
Constructor Details
-
FileDicomSQItem
-
FileDicomSQItem
public FileDicomSQItem(FileInfoDicom parent, FileDicomTagTable firstSliceTags, FileInfoDicom.VRtype vr_type)
-
-
Method Details
-
doWriteAsUnknownLength
public boolean doWriteAsUnknownLength()Whether the sequence should be written using an unknown length, can be set as a preference by user. -
setWriteAsUnknownLength
public void setWriteAsUnknownLength(boolean writeAsUnknownLength) Whether the sequence should be written using an unknown length, this includes adding a sequence delimitation item to the sequence. -
getWritableLength
public final int getWritableLength(boolean includeTagInfo) Gets the length as read in by the header (possibly undefined).- Returns:
- The length of the sequence as read in by the header
-
getSequenceValues
Return the tag values store in this sequence tag. Does not return tags from the reference tag table.- Returns:
- A list of dicom tags contained in this sequence tag.
-