/// <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)); }
/// <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); } }
/// <summary> /// Convenience method to insert SOP instance-level data nodes into the study builder tree under this study, creating a <see cref="SeriesNode">series</see> node if 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) { SeriesNode series = new SeriesNode(); this.Series.Add(series); foreach (SopInstanceNode node in sopInstances) { series.Images.Add(node); } }