Exemplo n.º 1
0
        private IDisplaySet CreateSeriesDisplaySet(Series series)
        {
            IDisplaySet displaySet           = null;
            List <IPresentationImage> images = new List <IPresentationImage>();

            foreach (Sop sop in series.Sops)
            {
                images.AddRange(PresentationImageFactory.CreateImages(sop));
            }

            if (images.Count > 0)
            {
                DisplaySetDescriptor descriptor = new SeriesDisplaySetDescriptor(series.GetIdentifier(), PresentationImageFactory);
                displaySet = new DisplaySet(descriptor);
                foreach (IPresentationImage image in images)
                {
                    displaySet.PresentationImages.Add(image);
                }
            }

            return(displaySet);
        }
Exemplo n.º 2
0
		protected SeriesDisplaySetDescriptor(SeriesDisplaySetDescriptor source, ICloningContext context)
			: base(source, context)
		{
		}
Exemplo n.º 3
0
		private IDisplaySet CreateSeriesDisplaySet(Series series)
		{
			IDisplaySet displaySet = null;
			List<IPresentationImage> images = new List<IPresentationImage>();
			foreach (Sop sop in series.Sops)
				images.AddRange(PresentationImageFactory.CreateImages(sop));

			if (images.Count > 0)
			{
				DisplaySetDescriptor descriptor = new SeriesDisplaySetDescriptor(series.GetIdentifier(), PresentationImageFactory);
				displaySet = new DisplaySet(descriptor);
				foreach (IPresentationImage image in images)
					displaySet.PresentationImages.Add(image);
			}

			return displaySet;
		}
Exemplo n.º 4
0
 protected SeriesDisplaySetDescriptor(SeriesDisplaySetDescriptor source, ICloningContext context)
     : base(source, context)
 {
 }