Пример #1
0
		/// <summary>
		/// Copy constructor
		/// </summary>
		/// <param name="source"></param>
		private SopInstanceNode(SopInstanceNode source)
		{
			_instanceUid = StudyBuilder.NewUid();
			_dicomFile = new DicomFile("", source._dicomFile.MetaInfo.Copy(true, true, true), source._dicomFile.DataSet.Copy(true, true, true));
		}
Пример #2
0
		/// <summary>
		/// Convenience method to insert SOP instance-level data nodes into the study builder tree under this series.
		/// </summary>
		/// <param name="sopInstances">An array of <see cref="SopInstanceNode"/>s to insert into the study builder tree.</param>
		public void InsertSopInstances(SopInstanceNode[] sopInstances)
		{
			foreach (SopInstanceNode node in sopInstances)
			{
				this.Images.Add(node);
			}
		}
Пример #3
0
		/// <summary>
		/// Convenience method to insert SOP instance-level data nodes into the study builder tree under this patient, creating <see cref="StudyNode">study</see> and <see cref="SeriesNode">series</see> nodes as necessary.
		/// </summary>
		/// <param name="sopInstances">An array of <see cref="SopInstanceNode"/>s to insert into the study builder tree.</param>
		public void InsertSopInstance(SopInstanceNode[] sopInstances)
		{
			StudyNode study = new StudyNode();
			this.Studies.Add(study);
			SeriesNode series = new SeriesNode();
			study.Series.Add(series);
			foreach (SopInstanceNode node in sopInstances)
			{
				series.Images.Add(node);
			}
		}