/// <summary> /// Copy constructor /// </summary> /// <param name="source"></param> /// <param name="copyDescendants"></param> public StudyNode(StudyNode source, bool copyDescendants) { _series = new SeriesNodeCollection(this); _instanceUid = StudyBuilder.NewUid(); _studyId = source._studyId; _description = source._description; _dateTime = source._dateTime; _accessionNum = source._accessionNum; if (copyDescendants) { foreach (SeriesNode series in source._series) { _series.Add(series.Copy(true)); } } }
/// <summary> /// Constructs a collection owned by the specified builder. /// </summary> /// <param name="builder">The builder that owns the collection.</param> internal PatientNodeCollection(StudyBuilder builder) { _builder = builder; }
public StudyComposerComponent() { _studyBuilder = new StudyBuilder(); _patients = new PatientItemCollection(_studyBuilder.Patients); }
/// <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> /// Constructs a new <see cref="SopInstanceNode"/> using default values. /// </summary> public SopInstanceNode() { _dicomFile = new DicomFile(""); _instanceUid = StudyBuilder.NewUid(); }