Beispiel #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);
        }
Beispiel #2
0
		private SeriesItem(SeriesItem source) : this(source.Node.Copy(false))
		{
			this.Icon = (Image) source.Icon.Clone();
			foreach (ImageItem image in source.Images)
			{
				this.Images.Add(image.Copy());
			}
		}
Beispiel #3
0
        public void InsertItems(ImageItem[] images)
        {
            SeriesItem series = this.Series.AddNew();

            foreach (ImageItem item in images)
            {
                series.Images.Add(item);
            }
        }
Beispiel #4
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);
        }