Interface RTROIObservationsSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
RTROIObservationsModule
- All Known Implementing Classes:
RTROIObservationsSequence.SimpleHolder,RTStructureSetIOD
- Enclosing class:
- RTROIObservationsSequence
A class implementing this interface can hold attributes which contain the DICOM tag "RT ROI Observations Sequence" (see
RTROIObservationsSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault RTROIObservationsSequenceAdds a new RT ROI Observations Sequence (seeRTROIObservationsSequence) with initial capacity 1 (seeensureRTROIObservationsSequence(int)) if it does not already exist.default RTROIObservationsSequenceensureRTROIObservationsSequence(int initialCapacity) Adds a new RT ROI Observations Sequence (seeRTROIObservationsSequence) if it does not already exist.default RTROIObservationsSequencedefault RTROIObservationsSequencenewRTROIObservationsSequence(int initialCapacity) Adds a new RT ROI Observations Sequence.default voidRemoves the RT ROI Observations Sequence (seeRTROIObservationsSequencewrap(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 ROI Observations Sequence (seeRTROIObservationsSequence)- Returns:
- A wrapper object implementing the
RTROIObservationsSequence.Holderinterface.
-
builder
- Returns:
- a
RTROIObservationsSequence.Holder.Builderto create RT ROI Observations Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theRTROIObservationsSequence.Holder.Builder.- Returns:
- a
RTROIObservationsSequence.Holder.Builderto create RT ROI Observations Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getRTROIObservationsSequence
- Returns:
- the RT ROI Observations Sequence (see
RTROIObservationsSequence)
-
newRTROIObservationsSequence
Adds a new RT ROI Observations Sequence. (seeRTROIObservationsSequence)- Parameters:
initialCapacity- the initial capacity for the new RT ROI Observations Sequence
-
ensureRTROIObservationsSequence
Adds a new RT ROI Observations Sequence (seeRTROIObservationsSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new RT ROI Observations Sequence is created.- Returns:
- Either the already existing RT ROI Observations Sequence (see
RTROIObservationsSequence) or a new one with capacityinitialCapacity.
-
ensureRTROIObservationsSequence
Adds a new RT ROI Observations Sequence (seeRTROIObservationsSequence) with initial capacity 1 (seeensureRTROIObservationsSequence(int)) if it does not already exist.- Returns:
- Either the already existing RT ROI Observations Sequence (see
RTROIObservationsSequence) or a new one with capacity 1.
-
containsRTROIObservationsSequence
default boolean containsRTROIObservationsSequence()- Returns:
- Whether it contains the RT ROI Observations Sequence (see
RTROIObservationsSequence)
-
removeRTROIObservationsSequence
default void removeRTROIObservationsSequence()Removes the RT ROI Observations Sequence (seeRTROIObservationsSequence
-