Interface SegmentSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Subinterfaces:
SegmentationImageModule,SurfaceSegmentationModule
- All Known Implementing Classes:
SegmentationImageModule.SimpleWrapper,SegmentationIOD,SurfaceSegmentationIOD,SurfaceSegmentationModule.SimpleWrapper
- Enclosing class:
- SegmentSequence
public static interface SegmentSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Segment Sequence" (seeSegmentSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSegmentSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static SegmentSequence.Holder.Builderbuilder()static SegmentSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsSegmentSequence()default SegmentSequenceensureSegmentSequence()Adds 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 SegmentSequencegetSegmentSequence()default SegmentSequencenewSegmentSequence(int initialCapacity)Adds a new Segment Sequence.default voidremoveSegmentSequence()Removes the Segment Sequence (seeSegmentSequencestatic SegmentSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static SegmentSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Segment Sequence (seeSegmentSequence)- Returns:
- a wrapper object implementing the
SegmentSequence.Holderinterface.
-
builder
static SegmentSequence.Holder.Builder builder()
- Returns:
- a
SegmentSequence.Holder.Builderto create Segment Sequence Items with a fluent API.
-
builder
static SegmentSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- 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
default SegmentSequence getSegmentSequence()
- Returns:
- the Segment Sequence (see
SegmentSequence)
-
newSegmentSequence
default SegmentSequence newSegmentSequence(int initialCapacity)
Adds a new Segment Sequence. (seeSegmentSequence)- Parameters:
initialCapacity- the initial capacity for the new Segment Sequence- Returns:
- the newly created SegmentSequence.
-
ensureSegmentSequence
default SegmentSequence ensureSegmentSequence(int initialCapacity)
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
default SegmentSequence 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
-
-