Interface DetectorGeometrySequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
DetectorGeometrySequence.SimpleHolder
- Enclosing class:
- DetectorGeometrySequence
A class implementing this interface can hold attributes which contain the DICOM tag "Detector Geometry Sequence" (see
DetectorGeometrySequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault DetectorGeometrySequenceAdds a new Detector Geometry Sequence (seeDetectorGeometrySequence) with initial capacity 1 (seeensureDetectorGeometrySequence(int)) if it does not already exist.default DetectorGeometrySequenceensureDetectorGeometrySequence(int initialCapacity) Adds a new Detector Geometry Sequence (seeDetectorGeometrySequence) if it does not already exist.default DetectorGeometrySequencedefault DetectorGeometrySequencenewDetectorGeometrySequence(int initialCapacity) Adds a new Detector Geometry Sequence.default voidRemoves the Detector Geometry Sequence (seeDetectorGeometrySequencewrap(org.dcm4che3.data.Attributes attributes) Methods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, isEmpty
-
Method Details
-
wrap
- Parameters:
attributes- An attributes object containing the Detector Geometry Sequence (seeDetectorGeometrySequence)- Returns:
- A wrapper object implementing the
DetectorGeometrySequence.Holderinterface.
-
builder
- Returns:
- a
DetectorGeometrySequence.Holder.Builderto create Detector Geometry Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theDetectorGeometrySequence.Holder.Builder.- Returns:
- a
DetectorGeometrySequence.Holder.Builderto create Detector Geometry Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getDetectorGeometrySequence
- Returns:
- the Detector Geometry Sequence (see
DetectorGeometrySequence)
-
newDetectorGeometrySequence
Adds a new Detector Geometry Sequence. (seeDetectorGeometrySequence)- Parameters:
initialCapacity- the initial capacity for the new Detector Geometry Sequence
-
ensureDetectorGeometrySequence
Adds a new Detector Geometry Sequence (seeDetectorGeometrySequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Detector Geometry Sequence is created.- Returns:
- Either the already existing Detector Geometry Sequence (see
DetectorGeometrySequence) or a new one with capacityinitialCapacity.
-
ensureDetectorGeometrySequence
Adds a new Detector Geometry Sequence (seeDetectorGeometrySequence) with initial capacity 1 (seeensureDetectorGeometrySequence(int)) if it does not already exist.- Returns:
- Either the already existing Detector Geometry Sequence (see
DetectorGeometrySequence) or a new one with capacity 1.
-
containsDetectorGeometrySequence
default boolean containsDetectorGeometrySequence()- Returns:
- Whether it contains the Detector Geometry Sequence (see
DetectorGeometrySequence)
-
removeDetectorGeometrySequence
default void removeDetectorGeometrySequence()Removes the Detector Geometry Sequence (seeDetectorGeometrySequence
-