Interface SegmentSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
SegmentationImageModule,SurfaceSegmentationModule
- All Known Implementing Classes:
SegmentationIOD,SegmentSequence.SimpleHolder,SurfaceSegmentationIOD
- Enclosing class:
- SegmentSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Segment Sequence" (see
SegmentSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault SegmentSequenceAdds a new Segment Sequence (seeSegmentSequence) with initial capacity 1 (seeensureSegmentSequence(int)) if it does not already exist.default SegmentSequenceensureSegmentSequence(int initialCapacity) Adds a new Segment Sequence (seeSegmentSequence) if it does not already exist.default SegmentSequencedefault SegmentSequencenewSegmentSequence(int initialCapacity) Adds a new Segment Sequence.default voidRemoves the Segment Sequence (seeSegmentSequencestatic SegmentSequence.Holderwrap(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 Segment Sequence (seeSegmentSequence)- Returns:
- A wrapper object implementing the
SegmentSequence.Holderinterface.
-
builder
- Returns:
- a
SegmentSequence.Holder.Builderto create Segment Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theSegmentSequence.Holder.Builder.- Returns:
- a
SegmentSequence.Holder.Builderto create Segment Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getSegmentSequence
- Returns:
- the Segment Sequence (see
SegmentSequence)
-
newSegmentSequence
Adds a new Segment Sequence. (seeSegmentSequence)- Parameters:
initialCapacity- the initial capacity for the new Segment Sequence
-
ensureSegmentSequence
Adds a new Segment Sequence (seeSegmentSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Segment Sequence is created.- Returns:
- Either the already existing Segment Sequence (see
SegmentSequence) or a new one with capacityinitialCapacity.
-
ensureSegmentSequence
Adds a new Segment Sequence (seeSegmentSequence) with initial capacity 1 (seeensureSegmentSequence(int)) if it does not already exist.- Returns:
- Either the already existing Segment Sequence (see
SegmentSequence) or a new one with capacity 1.
-
containsSegmentSequence
default boolean containsSegmentSequence()- Returns:
- Whether it contains the Segment Sequence (see
SegmentSequence)
-
removeSegmentSequence
default void removeSegmentSequence()Removes the Segment Sequence (seeSegmentSequence
-