Interface RTSegmentAnnotationSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
RTSegmentAnnotationModule
- All Known Implementing Classes:
RTSegmentAnnotationIOD,RTSegmentAnnotationSequence.SimpleHolder
- Enclosing class:
- RTSegmentAnnotationSequence
A class implementing this interface can hold attributes which contain the DICOM tag "RT Segment Annotation Sequence" (see
RTSegmentAnnotationSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault RTSegmentAnnotationSequenceAdds a new RT Segment Annotation Sequence (seeRTSegmentAnnotationSequence) with initial capacity 1 (seeensureRTSegmentAnnotationSequence(int)) if it does not already exist.default RTSegmentAnnotationSequenceensureRTSegmentAnnotationSequence(int initialCapacity) Adds a new RT Segment Annotation Sequence (seeRTSegmentAnnotationSequence) if it does not already exist.default RTSegmentAnnotationSequencedefault RTSegmentAnnotationSequencenewRTSegmentAnnotationSequence(int initialCapacity) Adds a new RT Segment Annotation Sequence.default voidRemoves the RT Segment Annotation Sequence (seeRTSegmentAnnotationSequencewrap(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 RT Segment Annotation Sequence (seeRTSegmentAnnotationSequence)- Returns:
- A wrapper object implementing the
RTSegmentAnnotationSequence.Holderinterface.
-
builder
- Returns:
- a
RTSegmentAnnotationSequence.Holder.Builderto create RT Segment Annotation Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theRTSegmentAnnotationSequence.Holder.Builder.- Returns:
- a
RTSegmentAnnotationSequence.Holder.Builderto create RT Segment Annotation Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getRTSegmentAnnotationSequence
- Returns:
- the RT Segment Annotation Sequence (see
RTSegmentAnnotationSequence)
-
newRTSegmentAnnotationSequence
Adds a new RT Segment Annotation Sequence. (seeRTSegmentAnnotationSequence)- Parameters:
initialCapacity- the initial capacity for the new RT Segment Annotation Sequence
-
ensureRTSegmentAnnotationSequence
Adds a new RT Segment Annotation Sequence (seeRTSegmentAnnotationSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new RT Segment Annotation Sequence is created.- Returns:
- Either the already existing RT Segment Annotation Sequence (see
RTSegmentAnnotationSequence) or a new one with capacityinitialCapacity.
-
ensureRTSegmentAnnotationSequence
Adds a new RT Segment Annotation Sequence (seeRTSegmentAnnotationSequence) with initial capacity 1 (seeensureRTSegmentAnnotationSequence(int)) if it does not already exist.- Returns:
- Either the already existing RT Segment Annotation Sequence (see
RTSegmentAnnotationSequence) or a new one with capacity 1.
-
containsRTSegmentAnnotationSequence
default boolean containsRTSegmentAnnotationSequence()- Returns:
- Whether it contains the RT Segment Annotation Sequence (see
RTSegmentAnnotationSequence)
-
removeRTSegmentAnnotationSequence
default void removeRTSegmentAnnotationSequence()Removes the RT Segment Annotation Sequence (seeRTSegmentAnnotationSequence
-