예제 #1
0
        /// <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));
                }
            }
        }
예제 #2
0
 /// <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;
 }
예제 #3
0
		public StudyComposerComponent() {
			_studyBuilder = new StudyBuilder();
			_patients = new PatientItemCollection(_studyBuilder.Patients);
		}
예제 #4
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));
 }
예제 #5
0
 /// <summary>
 /// Constructs a new <see cref="SopInstanceNode"/> using default values.
 /// </summary>
 public SopInstanceNode()
 {
     _dicomFile   = new DicomFile("");
     _instanceUid = StudyBuilder.NewUid();
 }