Interface SegmentSequence.Holder

All Superinterfaces:
AttributesWrapper
All Known Subinterfaces:
SegmentationImageModule, SurfaceSegmentationModule
All Known Implementing Classes:
SegmentationIOD, SurfaceSegmentationIOD
Enclosing class:
SegmentSequence

public static interface SegmentSequence.Holder extends AttributesWrapper
A class implementing this interface can hold attributes which contain the DICOM tag "Segment Sequence" (see SegmentSequence)
  • Method Details

    • wrap

      static SegmentSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
      Parameters:
      attributes - An attributes object containing the Segment Sequence (see SegmentSequence)
      Returns:
      A wrapper object implementing the SegmentSequence.Holder interface.
    • getSegmentSequence

      default SegmentSequence getSegmentSequence()
      Returns:
      the Segment Sequence (see SegmentSequence)
    • newSegmentSequence

      default SegmentSequence newSegmentSequence(int initialCapacity)
      Adds a new Segment Sequence. (see SegmentSequence)
      Parameters:
      initialCapacity - the initial capacity for the new Segment Sequence
    • ensureSegmentSequence

      default SegmentSequence ensureSegmentSequence(int initialCapacity)
      Adds a new Segment Sequence (see SegmentSequence) if it does not already exist. (see Attributes.ensureSequence(int, int)
      Parameters:
      initialCapacity - The initial capacity (see ArrayList(int)) if a new Segment Sequence is created.
      Returns:
      Either the already existing Segment Sequence (see SegmentSequence) or a new one with capacity initialCapacity.
    • ensureSegmentSequence

      default SegmentSequence ensureSegmentSequence()
      Adds a new Segment Sequence (see SegmentSequence) with initial capacity 1 (see ensureSegmentSequence(int)) if it does not already exist.
      Returns:
      Either the already existing Segment Sequence (see SegmentSequence) or a new one with capacity 1.
    • containsSegmentSequence

      default boolean containsSegmentSequence()
      Returns:
      Whether it contains the Segment Sequence (see SegmentSequence)
    • removeSegmentSequence

      default void removeSegmentSequence()
      Removes the Segment Sequence (see SegmentSequence