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