コード例 #1
0
 public FormGateSetting(FormFocus formfocus, GateInformation gateb)
 {
     InitializeComponent();
     gateB          = gateb;
     this.formfocus = formfocus;
     InitGateInforemation();
 }
コード例 #2
0
ファイル: BeamPara.cs プロジェクト: zjyu1/ASCAN
        public BeamPara(ClassChanpara chanpara, Groove gro, UltraWedge wed, UltraProbe pro, UTPosition pos, GateInformation gate)
        {
            this.gate    = gate;
            xd           = chanpara.defectX;
            yd           = chanpara.defectY;
            groove       = gro;
            wedge        = wed;
            probe        = pro;
            position     = pos;
            grooveheight = groove.height.Sum();

            skewflag = GetSkewflag(chanpara.skew);
            if (chanpara.method == (int)PathMethod.Direct)
            {
                activele[0] = chanpara.activenb[0];

                linepoint[0] = Direct(xd, yd, chanpara.interfaceAngle[0]);
                index        = linepoint[0].x[1];
                centerele[0] = Centerelement(index, chanpara.interfaceAngle[0], activele[0]);
            }
            else if (chanpara.method == (int)PathMethod.Reflect)
            {
                activele[0] = chanpara.activenb[0];

                linepoint[0] = Reflect(xd, yd, chanpara.interfaceAngle[0]);
                index        = linepoint[0].x[2];
                centerele[0] = Centerelement(index, chanpara.interfaceAngle[0], activele[0]);
            }
            else if (chanpara.method == (int)PathMethod.Series)
            {
                activele[0] = chanpara.activenb[0];
                activele[1] = chanpara.activenb[1];

                linepoint[0] = Reflect(xd, yd, chanpara.interfaceAngle[0]);
                index        = linepoint[0].x[2];
                centerele[0] = Centerelement(index, chanpara.interfaceAngle[0], activele[0]);

                linepoint[1] = DoubleReflect(xd, yd, chanpara.interfaceAngle[1]);
                index        = linepoint[1].x[3];
                centerele[1] = Centerelement(index, chanpara.interfaceAngle[1], activele[1]);
            }
            CaculateFocuspoint();
            beamfile   = GetBeamfile(xd, yd, centerele, chanpara.interfaceAngle, chanpara.method);
            arrowpoint = GetArrow(linepoint, chanpara.method);
            GetPathtime(chanpara.method);
        }
コード例 #3
0
ファイル: FormFocus.cs プロジェクト: zjyu1/ASCAN
 /**Set Default Gate.*/
 private void SetDefaultGate()
 {
     gateB = new GateInformation();
 }
コード例 #4
0
ファイル: FormFocus.cs プロジェクト: zjyu1/ASCAN
 public void GetGatedata(GateInformation gateb)
 {
     gateB = gateb;
 }