/// <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); }
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()); } }
public void InsertItems(SeriesItem[] series) { StudyItem study = this.Studies.AddNew(); foreach (SeriesItem item in series) { study.Series.Add(item); } }
public void InsertItems(ImageItem[] images) { StudyItem study = this.Studies.AddNew(); SeriesItem series = study.Series.AddNew(); foreach (ImageItem item in images) { series.Images.Add(item); } }
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); }