Esempio n. 1
0
        private void StartDrawingRectROI()
        {
            ROIRect rectROI = new ROIRect();

            ROIList.Add(rectROI);
            rectROI.TopLeftPoint = rectROI.BottomRightPoint = MousePosition;
            rectROI.CaptureMouse();
            rectROI.CurrentState      = State.DrawingInProgress;
            rectROI.LastROIDrawEvent += OnGetLastDrawEventUpdated;
            SetBinding(MagnificationProperty.Name, rectROI, ROI.MagnificationProperty);
        }
Esempio n. 2
0
        private void StartDrawingOvalROI()
        {
            ROIOval ovalROI = new ROIOval();

            ROIList.Add(ovalROI);
            ovalROI.Center = MousePosition;
            ovalROI.CaptureMouse();
            ovalROI.CurrentState      = State.DrawingInProgress;
            ovalROI.LastROIDrawEvent += OnGetLastDrawEventUpdated;
            SetBinding(MagnificationProperty.Name, ovalROI, ROI.MagnificationProperty);
        }
Esempio n. 3
0
        private void StartDrawingLineROI()
        {
            ROILine lineROI = new ROILine();

            ROIList.Add(lineROI);
            lineROI.EndPoint = lineROI.StartPoint = MousePosition;
            lineROI.CaptureMouse();
            lineROI.CurrentState      = State.DrawingInProgress;
            lineROI.LastROIDrawEvent += OnGetLastDrawEventUpdated;
            SetBinding(MagnificationProperty.Name, lineROI, ROI.MagnificationProperty);
        }