Interface CollimatorShapeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- Enclosing class:
- CollimatorShapeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Collimator Shape Sequence" (see
CollimatorShapeSequence)-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault CollimatorShapeSequenceAdds a new Collimator Shape Sequence (seeCollimatorShapeSequence) with initial capacity 1 (seeensureCollimatorShapeSequence(int)) if it does not already exist.default CollimatorShapeSequenceensureCollimatorShapeSequence(int initialCapacity) Adds a new Collimator Shape Sequence (seeCollimatorShapeSequence) if it does not already exist.default CollimatorShapeSequencedefault CollimatorShapeSequencenewCollimatorShapeSequence(int initialCapacity) Adds a new Collimator Shape Sequence.default voidRemoves the Collimator Shape Sequence (seeCollimatorShapeSequencewrap(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 Collimator Shape Sequence (seeCollimatorShapeSequence)- Returns:
- A wrapper object implementing the
CollimatorShapeSequence.Holderinterface.
-
getCollimatorShapeSequence
- Returns:
- the Collimator Shape Sequence (see
CollimatorShapeSequence)
-
newCollimatorShapeSequence
Adds a new Collimator Shape Sequence. (seeCollimatorShapeSequence)- Parameters:
initialCapacity- the initial capacity for the new Collimator Shape Sequence
-
ensureCollimatorShapeSequence
Adds a new Collimator Shape Sequence (seeCollimatorShapeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Collimator Shape Sequence is created.- Returns:
- Either the already existing Collimator Shape Sequence (see
CollimatorShapeSequence) or a new one with capacityinitialCapacity.
-
ensureCollimatorShapeSequence
Adds a new Collimator Shape Sequence (seeCollimatorShapeSequence) with initial capacity 1 (seeensureCollimatorShapeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Collimator Shape Sequence (see
CollimatorShapeSequence) or a new one with capacity 1.
-
containsCollimatorShapeSequence
default boolean containsCollimatorShapeSequence()- Returns:
- Whether it contains the Collimator Shape Sequence (see
CollimatorShapeSequence)
-
removeCollimatorShapeSequence
default void removeCollimatorShapeSequence()Removes the Collimator Shape Sequence (seeCollimatorShapeSequence
-