コード例 #1
0
        /// <summary>
        /// Creates the PetDetectorMotionDetailsSequence in the underlying collection. Type 1.
        /// </summary>
        public PetDetectorMotionDetailsSequenceItem CreatePetDetectorMotionDetailsSequence()
        {
            var dicomAttribute = DicomAttributeProvider[DicomTags.PetDetectorMotionDetailsSequence];

            if (dicomAttribute.IsNull || dicomAttribute.IsEmpty)
            {
                var dicomSequenceItem = new DicomSequenceItem();
                dicomAttribute.Values = new[] { dicomSequenceItem };
                var sequenceType = new PetDetectorMotionDetailsSequenceItem(dicomSequenceItem);
                return(sequenceType);
            }
            return(new PetDetectorMotionDetailsSequenceItem(((DicomSequenceItem[])dicomAttribute.Values)[0]));
        }
コード例 #2
0
		/// <summary>
		/// Creates the PetDetectorMotionDetailsSequence in the underlying collection. Type 1.
		/// </summary>
		public PetDetectorMotionDetailsSequenceItem CreatePetDetectorMotionDetailsSequence()
		{
			var dicomAttribute = DicomAttributeProvider[DicomTags.PetDetectorMotionDetailsSequence];
			if (dicomAttribute.IsNull || dicomAttribute.IsEmpty)
			{
				var dicomSequenceItem = new DicomSequenceItem();
				dicomAttribute.Values = new[] {dicomSequenceItem};
				var sequenceType = new PetDetectorMotionDetailsSequenceItem(dicomSequenceItem);
				return sequenceType;
			}
			return new PetDetectorMotionDetailsSequenceItem(((DicomSequenceItem[]) dicomAttribute.Values)[0]);
		}