Exemplo n.º 1
0
        /// <summary>
        /// Creates the PlaneOrientationVolumeSequence in the underlying collection. Type 1.
        /// </summary>
        public PlaneOrientationVolumeSequenceItem CreatePlaneOrientationVolumeSequence()
        {
            var dicomAttribute = DicomAttributeProvider[DicomTags.PlaneOrientationVolumeSequence];

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