Пример #1
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 protected DicomGraphicAnnotation(DicomGraphicAnnotation source, ICloningContext context)
     : base(source, context)
 {
     context.CloneFields(source, this);
 }
Пример #2
0
        public static DicomGraphicAnnotation CreateGraphicAnnotation(Frame frame, GraphicAnnotationSequenceItem sequenceItem, RectangleF displayedArea, bool interactive = false)
        {
            ImageSopInstanceReferenceDictionary dictionary = new ImageSopInstanceReferenceDictionary(sequenceItem.ReferencedImageSequence, true);

            return(dictionary.ReferencesFrame(frame.ParentImageSop.SopInstanceUid, frame.FrameNumber) ? DicomGraphicAnnotation.Create(sequenceItem, displayedArea) : null);
        }