示例#1
0
        private void ATbEdtFindCorner_FormClosed(object sender, FormClosedEventArgs e)
        {
            tmrLive.Enabled = false;
            tmrTime.Enabled = false;

            // 2017.01.09
            cogFindCornerEditV2.Subject = null;

            // 2015.03.17
            cogFindCornerEditV2.Dispose();

            // 2017.01.09
            m_aFindCorner = null;
#if (!_USE_BASLER_PYLON && !_USE_IMAGING_CONTROL)
            m_aAcqFifo = null;
#endif
            m_aPoint = null;
        }
示例#2
0
        public ATbEdtFindCorner(int nType, int nPoint, int nToolIndex)
        {
            InitializeComponent();

            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("FindCorner") > m_nToolIndex)
            {
                m_aFindCorner = m_aPoint.GetTool("FindCorner", m_nToolIndex) as AFindCorner;
            }
            else
            {
                m_aFindCorner = new AFindCorner();

                m_aFindCorner.Name = AVisionProBuild.MakeName("FindCorner", DateTime.Now);
                m_aPoint.Add("FindCorner", m_aFindCorner);
            }

            cogFindCornerEditV2.Subject = m_aFindCorner.GetTool();

            InitLanguage();
            InitializeFindCorner();
        }