Interface DVHSequence.Holder

  • All Superinterfaces:
    org.dcm4che.typeddicom.AttributesWrapper
    All Known Subinterfaces:
    RTDVHModule
    All Known Implementing Classes:
    RTDoseIOD, RTDVHModule.SimpleWrapper
    Enclosing class:
    DVHSequence

    public static interface DVHSequence.Holder
    extends org.dcm4che.typeddicom.AttributesWrapper
    A class implementing this interface can hold attributes which contain the DICOM tag "DVH Sequence" (see DVHSequence)
    • Method Detail

      • wrap

        static DVHSequence.Holder wrap​(org.dcm4che3.data.Attributes attributes)
        Parameters:
        attributes - an attributes object containing the DVH Sequence (see DVHSequence)
        Returns:
        a wrapper object implementing the DVHSequence.Holder interface.
      • newDVHSequence

        default DVHSequence newDVHSequence​(int initialCapacity)
        Adds a new DVH Sequence. (see DVHSequence)
        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 (see DVHSequence) if it does not already exist. (see Attributes.ensureSequence(int, int)
        Parameters:
        initialCapacity - the initial capacity (see ArrayList(int)) if a new DVH Sequence is created.
        Returns:
        either the already existing DVH Sequence (see DVHSequence) or a new one with capacity initialCapacity.
      • ensureDVHSequence

        default DVHSequence ensureDVHSequence()
        Adds a new DVH Sequence (see DVHSequence) with initial capacity 1 (see ensureDVHSequence(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 (see DVHSequence