/// <summary> /// Copy constructor /// </summary> /// <param name="source"></param> /// <param name="copyDescendants"></param> private SeriesNode(SeriesNode source, bool copyDescendants) { _images = new SopInstanceNodeCollection(this); _instanceUid = StudyBuilder.NewUid(); _description = source._description; _dateTime = source._dateTime; if(copyDescendants) { foreach (SopInstanceNode sop in source._images) { _images.Add(sop.Copy()); } } }
/// <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); } }
/// <summary> /// Convenience method to insert series-level data nodes into the study builder tree under this patient, creating a <see cref="StudyNode">study</see> node if necessary. /// </summary> /// <param name="series">An array of <see cref="SeriesNode"/>s to insert into the study builder tree.</param> public void InsertSeries(SeriesNode[] series) { StudyNode study = new StudyNode(); this.Studies.Add(study); foreach (SeriesNode node in series) { study.Series.Add(node); } }
/// <summary> /// Convenience method to insert series-level data nodes into the study builder tree under this study. /// </summary> /// <param name="series">An array of <see cref="SeriesNode"/>s to insert into the study builder tree.</param> public void InsertSeries(SeriesNode[] series) { foreach (SeriesNode node in series) { this.Series.Add(node); } }