Exemplo n.º 1
0
 /// <summary>
 /// Resets all parameters that concern the HALCON window display
 /// setup to their initial values and clears the ROI list.
 /// </summary>
 public void clearAllROI()
 {
     if (roiManager != null)
     {
         roiManager.reset();
     }
 }
        /// <summary>
        /// Resets all parameters that concern the HALCON window display
        /// setup to their initial values and clears the ROI list.
        /// </summary>
        public void resetAll()
        {
            ImgRow1 = 0;
            ImgCol1 = 0;
            ImgRow2 = imageHeight;
            ImgCol2 = imageWidth;

            zoomWndFactor = (double)imageWidth / viewPort.Width;

            System.Drawing.Rectangle rect = viewPort.ImagePart;
            rect.X = (int)ImgCol1;
            rect.Y = (int)ImgRow1;
            rect.Width = (int)imageWidth;
            rect.Height = (int)imageHeight;
            viewPort.ImagePart = rect;

            if (roiManager != null)
                roiManager.reset();
        }
Exemplo n.º 3
0
        /// <summary>
        /// Resets all parameters that concern the HALCON window display
        /// setup to their initial values and clears the ROI list.
        /// </summary>
        public void resetAll()
        {
            ImgRow1 = 0;
            ImgCol1 = 0;
            ImgRow2 = imageHeight;
            ImgCol2 = imageWidth;

            zoomWndFactor = (double)imageWidth / viewPort.ActualWidth;

            System.Windows.Rect rect = viewPort.ImagePart;
            rect.X             = (int)ImgCol1;
            rect.Y             = (int)ImgRow1;
            rect.Width         = (int)imageWidth;
            rect.Height        = (int)imageHeight;
            viewPort.ImagePart = rect;

            SetEpsilon();

            if (roiManager != null)
            {
                roiManager.reset();
            }
        }