Пример #1
0
        public ROILine()
        {
            base.Anchors.Add(AnchorsFactory.Create(AnchorType.Resize, this));
            base.Anchors.Add(AnchorsFactory.Create(AnchorType.Resize, this));

            base.MouseLeftButtonDown += OnLineROIMouseLeftButtonDown;
            base.MouseLeftButtonUp   += OnLineROIMouseLeftButtonUp;
            base.MouseMove           += OnLineROIMouseMove;
        }
Пример #2
0
 public ROIRect()
 {
     //four anchor points and one center point
     for (int i = 0; i < 4; i++)
     {
         base.Anchors.Add(AnchorsFactory.Create(AnchorType.Resize, this));
     }
     base.Anchors.Add(AnchorsFactory.Create(AnchorType.Move, this));
     base.MouseLeftButtonDown += OnRectROIMouseLeftButtonDown;
     base.MouseLeftButtonUp   += OnRectROIMouseLeftButtonUp;
     base.MouseMove           += OnRectROIMouseMove;
 }
Пример #3
0
        public ROIOval()
        {
            µCore.OutputDebugString("create - begin");
            //four anchor points and one center point
            for (int i = 0; i < 4; i++)
            {
                base.Anchors.Add(AnchorsFactory.Create(AnchorType.Resize, this));
            }
            base.Anchors.Add(AnchorsFactory.Create(AnchorType.Move, this));

            base.MouseLeftButtonDown += OnOvalROIMouseLeftButtonDown;
            base.MouseLeftButtonUp   += OnOvalROIMouseLeftButtonUp;
            base.MouseMove           += OnOvalROIMouseMove;
            µCore.OutputDebugString("create - end");
        }