Beispiel #1
0
        public frmEVision()
        {
            InitializeComponent();
            cboCalibrFindMode.DataSource        = Enum.GetValues(typeof(EFindContrastMode));
            cboFindMode.DataSource              = Enum.GetValues(typeof(EFindContrastMode));
            cboLine_1_TransitionType.DataSource = Enum.GetValues(typeof(ETransitionType));
            cboLine_2_TransitionType.DataSource = Enum.GetValues(typeof(ETransitionType));

            Directory.CreateDirectory(visionPath + "\\" + visionFile);
            openFileDialog = new OpenFileDialog();
            saveFileDialog = new SaveFileDialog();

            eCalibration       = new clsEasyCalibration(picDisplay);
            eCalibrFindPattern = new clsEasyFindPattern(picDisplay);
            calibrPoint        = new List <CalibrationPoint>();
            eFindPattern       = new clsEasyFindPattern(picDisplay);

            eFindLine_1 = new clsEasyFindLine(picDisplay);
            eFindLine_2 = new clsEasyFindLine(picDisplay);

            eFixture = new clsEasyFixture(picDisplay);
            eFindLine_1.Base.Attach(eFixture.Base);
            eFindLine_2.Base.Attach(eFixture.Base);

            line_1 = new ezLine(0, 0, 0);
            line_2 = new ezLine(0, 0, 0);

            dgvCalibrPointTable.DataSource   = eCalibration.CalibrTable;
            dgvCalibrPatternTable.DataSource = eCalibrFindPattern.PatternTable;
            dgvPatternTable.DataSource       = eFindPattern.PatternTable;
            dgvLine_1_SampleTable.DataSource = eFindLine_1.SampleTable;
            dgvLine_2_SampleTable.DataSource = eFindLine_2.SampleTable;
        }
Beispiel #2
0
        public frmFindLine()
        {
            InitializeComponent();
            cboTransitionType.DataSource = Enum.GetValues(typeof(ETransitionType));

            openFileDialog = new OpenFileDialog();
            saveFileDialog = new SaveFileDialog();
            eFindLine      = new clsEasyFindLine(picDisplay);

            dgvSampleTable.DataSource = eFindLine.SampleTable;
        }