Exemple #1
0
        /// <summary>
        /// Creates the FrameVoiLutSequence in the underlying collection. Type 1.
        /// </summary>
        public FrameVoiLutSequenceItem CreateFrameVoiLutSequence()
        {
            var dicomAttribute = DicomAttributeProvider[DicomTags.FrameVoiLutSequence];

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