示例#1
0
        /// <summary>
        /// Inserts an <see cref="ImageItem"/> into the study tree under the patient represented by this item,
        /// creating a new intermediary study and series.
        /// </summary>
        /// <param name="image"></param>
        public void InsertImage(ImageItem image)
        {
            StudyItem  study  = this.Studies.AddNew();
            SeriesItem series = study.Series.AddNew();

            series.Images.Add(image);
        }
示例#2
0
 private StudyItem(StudyItem source) : this(source.Node.Copy(false))
 {
     this.Icon = (Image)source.Icon.Clone();
     foreach (SeriesItem series in source.Series)
     {
         this.Series.Add(series.Copy());
     }
 }
示例#3
0
        public void InsertItems(SeriesItem[] series)
        {
            StudyItem study = this.Studies.AddNew();

            foreach (SeriesItem item in series)
            {
                study.Series.Add(item);
            }
        }
示例#4
0
        public void InsertItems(ImageItem[] images)
        {
            StudyItem  study  = this.Studies.AddNew();
            SeriesItem series = study.Series.AddNew();

            foreach (ImageItem item in images)
            {
                series.Images.Add(item);
            }
        }
示例#5
0
        private ImageItem DoInsertImage(IPresentationImage pImage)
        {
            IImageSopProvider sop     = pImage as IImageSopProvider;
            DicomFile         dcf     = sop.ImageSop.NativeDicomObject as DicomFile;
            PatientItem       patient = _patients.GetById(dcf.DataSet);
            StudyItem         study   = patient.Studies.GetByUid(dcf.DataSet);
            SeriesItem        series  = study.Series.GetByUid(dcf.DataSet);
            ImageItem         image   = series.Images.GetByUid(dcf, pImage);

            return(image);
        }