Interface DVHSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
RTDVHModule
- All Known Implementing Classes:
DVHSequence.SimpleHolder,RTDoseIOD
- Enclosing class:
- DVHSequence
A class implementing this interface can hold attributes which contain the DICOM tag "DVH Sequence" (see
DVHSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DVHSequence.Holder.Builderbuilder()static DVHSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes) default booleandefault DVHSequenceAdds a new DVH Sequence (seeDVHSequence) with initial capacity 1 (seeensureDVHSequence(int)) if it does not already exist.default DVHSequenceensureDVHSequence(int initialCapacity) Adds a new DVH Sequence (seeDVHSequence) if it does not already exist.default DVHSequencedefault DVHSequencenewDVHSequence(int initialCapacity) Adds a new DVH Sequence.default voidRemoves the DVH Sequence (seeDVHSequencestatic DVHSequence.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 DVH Sequence (seeDVHSequence)- Returns:
- A wrapper object implementing the
DVHSequence.Holderinterface.
-
builder
- Returns:
- a
DVHSequence.Holder.Builderto create DVH Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theDVHSequence.Holder.Builder.- Returns:
- a
DVHSequence.Holder.Builderto create DVH Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getDVHSequence
- Returns:
- the DVH Sequence (see
DVHSequence)
-
newDVHSequence
Adds a new DVH Sequence. (seeDVHSequence)- Parameters:
initialCapacity- the initial capacity for the new DVH Sequence
-
ensureDVHSequence
Adds a new DVH Sequence (seeDVHSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new DVH Sequence is created.- Returns:
- Either the already existing DVH Sequence (see
DVHSequence) or a new one with capacityinitialCapacity.
-
ensureDVHSequence
Adds a new DVH Sequence (seeDVHSequence) with initial capacity 1 (seeensureDVHSequence(int)) if it does not already exist.- Returns:
- Either the already existing DVH Sequence (see
DVHSequence) or a new one with capacity 1.
-
containsDVHSequence
default boolean containsDVHSequence()- Returns:
- Whether it contains the DVH Sequence (see
DVHSequence)
-
removeDVHSequence
default void removeDVHSequence()Removes the DVH Sequence (seeDVHSequence
-