예제 #1
0
        // 2011.10.31
        private void ATbCalibCheckerboard_FormClosed(object sender, FormClosedEventArgs e)
        {
            tmrLive.Enabled = false;
            tmrTime.Enabled = false;

            // 2015.03.17
            cogDisplay.Dispose();
            cogDisplayStatusBar.Dispose();

            // 2017.01.09
            m_aCalibCheckerboard = null;
#if (!_USE_BASLER_PYLON && !_USE_IMAGING_CONTROL)
            m_aAcqFifo = null;
#endif
            m_aPoint   = null;
            m_aDisplay = null;
        }
예제 #2
0
        public ATbCalibCheckerboard(int nType, int nPoint, int nToolIndex)
        {
            InitializeComponent();
            cogDisplayStatusBar.Display = cogDisplay;
            m_aPoint     = AVisionProBuild.GetPoint(nType, nPoint);
            m_nType      = nType;
            m_nPoint     = nPoint;
            m_nToolIndex = nToolIndex;

            // 2014.10.30
#if (!_USE_BASLER_PYLON && !_USE_IMAGING_CONTROL && !_USE_1Camera)
            if (m_aPoint.GetToolCount("AcqFifo") > 0)
#endif
            {
                // 2014.10.30
#if (!_USE_BASLER_PYLON && !_USE_IMAGING_CONTROL && !_USE_1Camera)
                m_aAcqFifo = m_aPoint.GetTool("AcqFifo", 0) as AAcqFifo;
#elif _USE_1Camera
                m_aAcqFifo = AVisionProBuild.GetAcq();
#endif
            }
            // 2016.07.29
            if (m_aPoint.GetToolCount("CalibCheckerboard") > m_nToolIndex)
            {
                m_aCalibCheckerboard = m_aPoint.GetTool("CalibCheckerboard", m_nToolIndex) as ACalibCheckerboard;
            }
            else
            {
                m_aCalibCheckerboard = new ACalibCheckerboard();

                m_aCalibCheckerboard.Name = AVisionProBuild.MakeName("CalibCheckerboard", DateTime.Now);
                m_aPoint.Add("CalibCheckerboard", m_aCalibCheckerboard);
            }

            m_aDisplay    = new ADisplay(cogDisplay, "");
            lblTitle.Text = AVisionProBuild.GetTypeName(m_nType) + " [" + m_aPoint.Name + "]";

            //m_aDisplay.Display.Image = m_aCalibCheckerboard.InputImage;
            //m_aDisplay.Display.Fit(true);
            InitLanguage();
            // 2011.10.07 위치이동
            InitializeCalibration();
        }
        public AFrmCogCalibCheckerboard(ACalibCheckerboard aCalibCheckerboard)
        {
            InitializeComponent();

            cogCalibCheckerboardEditV2.Subject = aCalibCheckerboard.GetTool();
        }