Interface DVHSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Subinterfaces:
RTDVHModule
- All Known Implementing Classes:
DVHSequence.SimpleHolder,RTDoseIOD
- Enclosing class:
- DVHSequence
public static interface DVHSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "DVH Sequence" (seeDVHSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDVHSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static DVHSequence.Holder.Builderbuilder()static DVHSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsDVHSequence()default DVHSequenceensureDVHSequence()Adds 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 DVHSequencegetDVHSequence()default DVHSequencenewDVHSequence(int initialCapacity)Adds a new DVH Sequence.default voidremoveDVHSequence()Removes the DVH Sequence (seeDVHSequencestatic DVHSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static DVHSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the DVH Sequence (seeDVHSequence)- Returns:
- a wrapper object implementing the
DVHSequence.Holderinterface.
-
builder
static DVHSequence.Holder.Builder builder()
- Returns:
- a
DVHSequence.Holder.Builderto create DVH Sequence Items with a fluent API.
-
builder
static DVHSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- 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
default DVHSequence getDVHSequence()
- Returns:
- the DVH Sequence (see
DVHSequence)
-
newDVHSequence
default DVHSequence newDVHSequence(int initialCapacity)
Adds a new DVH Sequence. (seeDVHSequence)- Parameters:
initialCapacity- the initial capacity for the new DVH Sequence- Returns:
- the newly created DVHSequence.
-
ensureDVHSequence
default DVHSequence ensureDVHSequence(int initialCapacity)
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
default DVHSequence 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
-
-