/// <summary> /// Creates the PlanePositionSequence in the underlying collection. Type 1. /// </summary> public PlanePositionSequenceItem CreatePlanePositionSequence() { var dicomAttribute = DicomAttributeProvider[DicomTags.PlanePositionSequence]; if (dicomAttribute.IsNull || dicomAttribute.IsEmpty) { var dicomSequenceItem = new DicomSequenceItem(); dicomAttribute.Values = new[] { dicomSequenceItem }; var sequenceType = new PlanePositionSequenceItem(dicomSequenceItem); return(sequenceType); } return(new PlanePositionSequenceItem(((DicomSequenceItem[])dicomAttribute.Values)[0])); }
/// <summary> /// Creates the PlanePositionSequence in the underlying collection. Type 1. /// </summary> public PlanePositionSequenceItem CreatePlanePositionSequence() { var dicomAttribute = DicomAttributeProvider[DicomTags.PlanePositionSequence]; if (dicomAttribute.IsNull || dicomAttribute.IsEmpty) { var dicomSequenceItem = new DicomSequenceItem(); dicomAttribute.Values = new[] {dicomSequenceItem}; var sequenceType = new PlanePositionSequenceItem(dicomSequenceItem); return sequenceType; } return new PlanePositionSequenceItem(((DicomSequenceItem[]) dicomAttribute.Values)[0]); }