Exemple #1
0
 public CameraControl SetupLight(Light light)
 {
     this.light      = light;
     this.ExecutePrm = this.light.ExecutePrm;
     this.setLight(this.light.ExecutePrm);
     return(this);
 }
Exemple #2
0
 public void SetLight(ExecutePrm prm)
 {
     if (prm == null)
     {
         prm = new ExecutePrm();
     }
     this.ExecutePrm = prm.Clone() as ExecutePrm;
     this.Lighting.SetLight(this.ExecutePrm);
 }
Exemple #3
0
 public void SetLight(ExecutePrm prm)
 {
     this.CurrType = prm.LightType;
     this.SetLight(this.CurrType);
     if (prm.LightType != LightType.None)
     {
         this.CurrType = prm.LightType;
     }
     Machine.Instance.Light.ExecutePrm = prm;
 }
Exemple #4
0
 public LightSettingControl SetupLight(ExecutePrm prm)
 {
     if (prm != null)
     {
         this.ExecutePrm = (ExecutePrm)prm.Clone();
     }
     this.isSetup = true;
     updateSetting();
     Machine.Instance.Light.SetLight(this.ExecutePrm);
     this.isSetup = false;
     return(this);
 }
Exemple #5
0
 public void SetLight(ExecutePrm executePrm)
 {
     if (CurPrm == null)
     {
         this.lastPrm = (ExecutePrmOPT)executePrm.PrmOPT.Clone();
     }
     else
     {
         this.lastPrm = this.CurPrm.Clone() as ExecutePrmOPT;
     }
     this.CurPrm = (ExecutePrmOPT)executePrm.PrmOPT.Clone();
     this.setLight(this.CurPrm);
     return;
 }
Exemple #6
0
        public void SetLight(ExecutePrm prm)
        {
            //this.CurPrm = prm.PrmCustom;
            return;

            //foreach (var item in executePrm.ChanelDic.Keys)
            //{
            //    if (executePrm.ChanelDic[item].On)
            //    {

            //    }
            //}

            //this.CurPrm = executePrm;
        }
Exemple #7
0
        public void setLight(ExecutePrm executePrm)
        {
            this.cbxLight.SelectedIndex = (int)this.light.ExecutePrm.LightType;

            //if (this.light.ExecutePrm.PrmOPT.ChanelDic != null)
            //{
            //    this.ckbChn1.Checked = this.light.ExecutePrm.PrmOPT.ChanelDic[Chanels.Chanel1].On;
            //    this.tbrChn1.Value = this.light.ExecutePrm.PrmOPT.ChanelDic[Chanels.Chanel1].Value;
            //    this.ckbChn2.Checked = this.light.ExecutePrm.PrmOPT.ChanelDic[Chanels.Chanel2].On;
            //    this.tbrChn2.Value = this.light.ExecutePrm.PrmOPT.ChanelDic[Chanels.Chanel2].Value;
            //    this.ckbChn3.Checked = this.light.ExecutePrm.PrmOPT.ChanelDic[Chanels.Chanel3].On;
            //    this.tbrChn3.Value = this.light.ExecutePrm.PrmOPT.ChanelDic[Chanels.Chanel3].Value;
            //    this.ckbChn4.Checked = this.light.ExecutePrm.PrmOPT.ChanelDic[Chanels.Chanel4].On;
            //    this.tbrChn4.Value = this.light.ExecutePrm.PrmOPT.ChanelDic[Chanels.Chanel4].Value;
            //}
        }
Exemple #8
0
 /// <summary>
 /// Anda 光源
 /// </summary>
 /// <param name="lightType"></param>
 //public void SelectLight(LightType lightType)
 //{
 //    //Machine.Instance.Light.SetLight(lightType);
 //    if (Machine.Instance.Light.Lighting.lightVendor==Drive.Sensors.Lighting.LightVendor.Anda)
 //    {
 //        AndaLight light=Machine.Instance.Light.Lighting as AndaLight;
 //        light.SetLight(lightType);
 //    }
 //    this.cbxLight.SelectedIndex = (int)lightType;
 //}
 public void SelectLight(ExecutePrm executePrm)
 {
     Machine.Instance.Light.SetLight(executePrm);
     //this.cbxLight.SelectedIndex = (int)executePrm.LightType;
     this.setLight(executePrm);
 }
Exemple #9
0
 public void SetupLight(ExecutePrm prm)
 {
     this.lightSettingControl1.SetupLight(prm);
 }