public AimAnnotationCreationContext(AnnotationKind annotationKind, StandardCodeSequence annotationTypeCode, string name)
 {
     _annotationKind      = annotationKind;
     _annotationTypeCode  = annotationTypeCode;
     _annotationName      = name;
     _includeCalculations = true;
 }
        private User _user; // annotation creator's information

        #endregion Fields

        #region Constructors

        public AimAnnotationCreationContext(AnnotationKind annotationKind, StandardCodeSequence annotationTypeCode, string name)
        {
            _annotationKind = annotationKind;
            _annotationTypeCode = annotationTypeCode;
            _annotationName = name;
            _includeCalculations = true;
        }
        private Dictionary<string, HashSet<int>> _sopInstanceUidAndFrameNumber; // if specified, annotation is created for these SOP Instances with the specified frame numbers only. The images must belong to the same series.

        #endregion Fields

        #region Constructors

        public AimAnnotationCreationContext(AnnotationKind annotationKind, TemplateTree.StandardCodeSequence annotationTypeCode, TemplateTree.AimTemplateTree templateTree, int seriesNumber)
        {
            Platform.CheckForNullReference(annotationTypeCode, "annotationTypeCode");
            Platform.CheckForNullReference(templateTree, "templateTree");

            _annotationKind = annotationKind;
            _annotationTypeCode = annotationTypeCode;
            _templateTree = templateTree;
            _seriesNumber = seriesNumber;
            _includeCalculations = true;
        }
Exemplo n.º 4
0
        private Dictionary <string, HashSet <int> > _sopInstanceUidAndFrameNumber;      // if specified, annotation is created for these SOP Instances with the specified frame numbers only. The images must belong to the same series.

        public AimAnnotationCreationContext(AnnotationKind annotationKind, TemplateTree.StandardCodeSequence annotationTypeCode, TemplateTree.AimTemplateTree templateTree, int seriesNumber)
        {
            Platform.CheckForNullReference(annotationTypeCode, "annotationTypeCode");
            Platform.CheckForNullReference(templateTree, "templateTree");

            _annotationKind      = annotationKind;
            _annotationTypeCode  = annotationTypeCode;
            _templateTree        = templateTree;
            _seriesNumber        = seriesNumber;
            _includeCalculations = true;
        }
Exemplo n.º 5
0
 public TweetAnnotationException(AnnotationKind kind, string message, Exception inner)
     : base(message, inner)
 {
     Kind = kind;
 }
Exemplo n.º 6
0
 public TweetAnnotationException(AnnotationKind kind)
 {
     Kind = kind;
 }
Exemplo n.º 7
0
        internal static void CreateAndAddCircleAnnotationAndLine(SceneNode parentUiElement, AnnotationKind annotationKind, float2 circleDim, float2 annotationPos, float borderScaleFactor, string text)
        {
            var container = new SceneNode
            {
                Name = "Container"
            };

            switch (annotationKind)
            {
            case AnnotationKind.ToCheck:
                container.Children.Add(CreateCircle(circleDim, MatColor.Yellow));
                container.Children.Add(CreateAnnotation(annotationPos, borderScaleFactor, text, _iconToCheck, _frameToCheck));
                container.Children.Add(CreateLine(MatColor.Yellow));
                break;

            case AnnotationKind.Discarded:
                container.Children.Add(CreateCircle(circleDim, MatColor.Gray));
                container.Children.Add(CreateAnnotation(annotationPos, borderScaleFactor, text, _iconDiscarded, _frameDiscarded));
                container.Children.Add(CreateLine(MatColor.Gray));
                break;

            case AnnotationKind.RecognizedML:
                container.Children.Add(CreateCircle(circleDim, MatColor.Green));
                container.Children.Add(CreateAnnotation(annotationPos, borderScaleFactor, text, _iconRecognizedML, _frameRecognizedMLOrConfirmed));
                container.Children.Add(CreateLine(MatColor.Green));
                break;

            case AnnotationKind.Confirmed:
                container.Children.Add(CreateCircle(circleDim, MatColor.Green));
                container.Children.Add(CreateAnnotation(annotationPos, borderScaleFactor, text, _iconConfirmed, _frameRecognizedMLOrConfirmed));
                container.Children.Add(CreateLine(MatColor.Green));
                break;
            }
            parentUiElement.Children.Add(container);
        }
Exemplo n.º 8
0
 public TweetAnnotationException(AnnotationKind kind, string message, Exception inner)
     : base(message, inner)
 {
     Kind = kind;
 }
Exemplo n.º 9
0
 public TweetAnnotationException(AnnotationKind kind)
 {
     Kind = kind;
 }
Exemplo n.º 10
0
        internal static void CreateAndAddCircleAnnotationAndLine(SceneNodeContainer parentUiElement, AnnotationKind annotationKind, float2 circleDim, float2 annotationPos, float textSize, float borderScaleFactor, string text)
        {
            //ToDo: implement fixed fontsize - we need a RectTransform that gets its size from the font mesh and does not scale with its parent -> overflow
            var textLength       = text.Length;
            var maxLenght        = 19;
            var textSizeModifier = ((100.0f / maxLenght * textLength) / 100.0f);

            var container = new SceneNodeContainer
            {
                Name = "Container"
            };


            switch (annotationKind)
            {
            case AnnotationKind.TO_CHECK:
                container.Children.Add(CreateCircle(circleDim, MatColor.YELLOW));
                container.Children.Add(CreateAnnotation(annotationPos, textSize, borderScaleFactor, text, _iconToCheck, _frameToCheck, textSizeModifier));
                container.Children.Add(CreateLine(MatColor.YELLOW));
                break;

            case AnnotationKind.DISCARDED:
                container.Children.Add(CreateCircle(circleDim, MatColor.GRAY));
                container.Children.Add(CreateAnnotation(annotationPos, textSize, borderScaleFactor, text, _iconDiscarded, _frameDiscarded, textSizeModifier));
                container.Children.Add(CreateLine(MatColor.GRAY));
                break;

            case AnnotationKind.RECOGNIZED_ML:
                container.Children.Add(CreateCircle(circleDim, MatColor.GREEN));
                container.Children.Add(CreateAnnotation(annotationPos, textSize, borderScaleFactor, text, _iconRecognizedML, _frameRecognizedMLOrConfirmed, textSizeModifier));
                container.Children.Add(CreateLine(MatColor.GREEN));
                break;

            case AnnotationKind.CONFIRMED:
                container.Children.Add(CreateCircle(circleDim, MatColor.GREEN));
                container.Children.Add(CreateAnnotation(annotationPos, textSize, borderScaleFactor, text, _iconConfirmed, _frameRecognizedMLOrConfirmed, textSizeModifier));
                container.Children.Add(CreateLine(MatColor.GREEN));
                break;
            }
            parentUiElement.Children.Add(container);
        }