Interface ContourImageSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
ContourImageSequence.SimpleHolder,ContourSequence.Item,RTReferencedSeriesSequence.Item
- Enclosing class:
- ContourImageSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Contour Image Sequence" (see
ContourImageSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ContourImageSequenceAdds a new Contour Image Sequence (seeContourImageSequence) with initial capacity 1 (seeensureContourImageSequence(int)) if it does not already exist.default ContourImageSequenceensureContourImageSequence(int initialCapacity) Adds a new Contour Image Sequence (seeContourImageSequence) if it does not already exist.default ContourImageSequencedefault ContourImageSequencenewContourImageSequence(int initialCapacity) Adds a new Contour Image Sequence.default voidRemoves the Contour Image Sequence (seeContourImageSequencestatic ContourImageSequence.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 Contour Image Sequence (seeContourImageSequence)- Returns:
- A wrapper object implementing the
ContourImageSequence.Holderinterface.
-
builder
- Returns:
- a
ContourImageSequence.Holder.Builderto create Contour Image Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theContourImageSequence.Holder.Builder.- Returns:
- a
ContourImageSequence.Holder.Builderto create Contour Image Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getContourImageSequence
- Returns:
- the Contour Image Sequence (see
ContourImageSequence)
-
newContourImageSequence
Adds a new Contour Image Sequence. (seeContourImageSequence)- Parameters:
initialCapacity- the initial capacity for the new Contour Image Sequence
-
ensureContourImageSequence
Adds a new Contour Image Sequence (seeContourImageSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Contour Image Sequence is created.- Returns:
- Either the already existing Contour Image Sequence (see
ContourImageSequence) or a new one with capacityinitialCapacity.
-
ensureContourImageSequence
Adds a new Contour Image Sequence (seeContourImageSequence) with initial capacity 1 (seeensureContourImageSequence(int)) if it does not already exist.- Returns:
- Either the already existing Contour Image Sequence (see
ContourImageSequence) or a new one with capacity 1.
-
containsContourImageSequence
default boolean containsContourImageSequence()- Returns:
- Whether it contains the Contour Image Sequence (see
ContourImageSequence)
-
removeContourImageSequence
default void removeContourImageSequence()Removes the Contour Image Sequence (seeContourImageSequence
-