Example #1
0
        private void LensArtifactMeasurementMode(string s, Args arg)
        {
            Globals.isHighResolution = false;
            IrMode_rb.Checked        = true;

            Globals.digitalGain = 50;
            tricam.setDigitalGain();
            tricam.startLiveMode();
            resume_btn.Enabled            = false;
            isLACod_cbx.Checked           = false;
            grading_btn.Visible           = false;
            whiteLightCapture_btn.Visible = true;
            ModeSelection_gbx.Enabled     = true;
            //IrMode_rb_CheckedChanged(null, null);
            if (Globals.browseBtnClicked)
            {
                tricam.stopLiveMode();
                whiteLightMode_rb.Checked = true;
                f.Publish(f.GradingStill, null);
                whiteLightMode_rb.Checked     = false;
                grading_btn.Visible           = true;
                whiteLightCapture_btn.Visible = false;
                resume_btn.Enabled            = true;
                ModeSelection_gbx.Enabled     = false;
            }
            //else if (IrMode_rb.Checked)
            //{
            //    Globals.isHighResolution = false;
            //    IrMode_rb.Checked = true;
            //    //IRGradingCapture();
            //}
            else if (whiteLightMode_rb.Checked)
            {
                whiteGradingCapture();
            }

            //Recommanded range for Avg peak is only for white light, so disabling when IR selected
            if (tricam.isLiveMode())
            {
                if (IrMode_rb.Checked)
                {
                    if (LA_avgPeakRange_lbl.Visible)
                    {
                        LA_avgPeakRange_lbl.Visible = false;
                        LA_avgPeakRange_lbl.Refresh();
                    }
                }
                else
                {
                    if (LA_avgPeakRange_lbl.Visible)
                    {
                        LA_avgPeakRange_lbl.Visible = true;
                        LA_avgPeakRange_lbl.Refresh();
                    }
                }
            }
        }
Example #2
0
 private void IrMode_rb_CheckedChanged(object sender, EventArgs e)
 {
     if (tricam.isLiveMode())
     {
         tricam.stopLiveMode();
         Globals.isHighResolution = !IrMode_rb.Checked;
         if (!Globals.isHighResolution)
         {
             if (LA_avgPeakRange_lbl.Visible)
             {
                 LA_avgPeakRange_lbl.Visible = false;
                 LA_avgPeakRange_lbl.Refresh();
             }
             //if (LA_PerAffPixelsRange_lbl.Visible)
             //{
             //    LA_PerAffPixelsRange_lbl.Visible = false;
             //    LA_PerAffPixelsRange_lbl.Refresh();
             //}
         }
         else
         {
             if (!LA_avgPeakRange_lbl.Visible)
             {
                 LA_avgPeakRange_lbl.Visible = true;
                 LA_avgPeakRange_lbl.Refresh();
             }
             //if (!LA_PerAffPixelsRange_lbl.Visible)
             //{
             //    LA_PerAffPixelsRange_lbl.Visible = true;
             //    LA_PerAffPixelsRange_lbl.Refresh();
             //}
         }
         f.Publish(f.SET_DISPLAY_AREA, null);
         tricam.startLiveMode();
     }
     else
     {
         f.Publish(f.GradingStill, null);
     }
 }