public SurfaceDetectionRecipe(int surfaceDetectionIndex) { this.RecipeIndex = surfaceDetectionIndex; Content = new Page_CreateRecipe(); (Content as Page_CreateRecipe).DataContext = this; htWindow = (Content as Page_CreateRecipe).htWindow; DisplayName = $"表面检测{this.RecipeIndex.ToString()}模板"; surfaceDetection = new SurfaceDetection(htWindow, SurfaceDetectionObject, SurfaceDetectionParameter, ReferenceDirectory, ModelsFile, RecipeFile, FrameModelInspectParameter, PegRackModelInspectParameter, BridgeModelInspectParameter, LoadRegionUserRegions, ModelsDirectory); (surfaceDetection as SurfaceDetection).OnSaveXML += SaveXML; Procedures = new IProcedure[] { surfaceDetection, }; ProcedureChanged(0); }
public AroundBallRegionRecipe() { Content = new Page_CreateRecipe(); (Content as Page_CreateRecipe).DataContext = this; htWindow = (Content as Page_CreateRecipe).htWindow; DisplayName = $"AroundBond模板"; createAroundBondRegionModel = new CreateAroundBondRegionModel(htWindow, ReferenceDirectory, ModelsFile, RecipeFile, AroundBondDetectionObject, AroundBondRegInspectParameter, AroundBondRegUserRegions, ModelsDirectory ); (createAroundBondRegionModel as CreateAroundBondRegionModel).OnSaveXML += SaveXML; // 0127 htWindow.useCreateAroundBondRegionModel(createAroundBondRegionModel as CreateAroundBondRegionModel); Procedures = new IProcedure[] { createAroundBondRegionModel, }; ProcedureChanged(0); }
public IniRecipe() { Content = new Page_CreateRecipe(); (Content as Page_CreateRecipe).DataContext = this; htWindow = (Content as Page_CreateRecipe).htWindow; DisplayName = "创建全局数据"; createReference = new CreateReference(htWindow, iniObjects, iniParameters, IniDirectory, DieUserRegions); inspectNode = new InspectNode(htWindow, iniParameters, ModelsFile, RecipeFile); (createReference as CreateReference).OnSaveXML += SaveXML; // 0118; htWindow.useInspectNode(inspectNode as InspectNode); Procedures = new IProcedure[] { createReference, inspectNode }; ProcedureChanged(0); }
//private readonly int epoxyIndex; public EpoxyRecipe(int epoxyIndex) { this.RecipeIndex = epoxyIndex; Content = new Page_CreateRecipe(); (Content as Page_CreateRecipe).DataContext = this; htWindow = (Content as Page_CreateRecipe).htWindow; DisplayName = $"银胶{this.RecipeIndex.ToString()}检测"; addPoxyRegions = new AddPoxyRegions(htWindow, ModelsFile, RecipeFile, ReferenceDirectory, epoxyModelObject, epoxyParameter, epoxyModelVerifyParameter, epoxyModelVerifyParameterSet, epoxyUserRegions, ModelsDirectory, epoxyReferceUserRegions); (addPoxyRegions as AddPoxyRegions).OnSaveXML += SaveXML; Procedures = new IProcedure[] { addPoxyRegions, }; ProcedureChanged(0); }
public CutRegionRecipe() { Content = new Page_CreateRecipe(); (Content as Page_CreateRecipe).DataContext = this; htWindow = (Content as Page_CreateRecipe).htWindow; DisplayName = $"CutRegion模板"; createCutRegionModel = new CreateCutRegionModel(htWindow, ReferenceDirectory, ModelsFile, RecipeFile, CutRegionObject, CutRegionParameter, CutRegionUserRegions, OriRegionUserRegions, ModelsDirectory); (createCutRegionModel as CreateCutRegionModel).OnSaveXML += SaveXML; Procedures = new IProcedure[] { createCutRegionModel, }; ProcedureChanged(0); }
public WireRecipe(int wireIndex) { this.RecipeIndex = wireIndex; Content = new Page_CreateRecipe(); (Content as Page_CreateRecipe).DataContext = this; htWindow = (Content as Page_CreateRecipe).htWindow; DisplayName = $"金线{this.RecipeIndex.ToString()}模板"; wireAddAutoRegion = new WireAddAutoRegion(htWindow, ModelsFile, RecipeFile, ReferenceDirectory, wireObject, wireParameter, startBondOnRecipes, endBondOnRecipes, startBallAutoUserRegion, stopBallAutoUserRegion, wireRegionsModelGroup); wireAddRegion = new WireAddRegion(htWindow, ReferenceDirectory, wireObject, wireParameter, wireRegionsGroup, startBallAutoUserRegion, stopBallAutoUserRegion, wireRegionsModelGroup); wireInspectVerify = new WireInspectVerify(htWindow, ModelsFile, RecipeFile, ReferenceDirectory, wireObject, wireParameter, startBallAutoUserRegion, stopBallAutoUserRegion, wireRegionsGroup, ModelsDirectory); (wireInspectVerify as WireInspectVerify).OnSaveXML += SaveXML; IsLoadXML = false; htWindow.useAutoBondAndWire(wireAddAutoRegion as WireAddAutoRegion); Procedures = new IProcedure[] { wireAddAutoRegion, wireAddRegion, wireInspectVerify, }; ProcedureChanged(0); }
public BondRecipe(int bondMatchIndex) { this.RecipeIndex = bondMatchIndex; Content = new Page_CreateRecipe(); (Content as Page_CreateRecipe).DataContext = this; htWindow = (Content as Page_CreateRecipe).htWindow; DisplayName = $"焊点Match{this.RecipeIndex.ToString()}模板"; createBond2Model = new CreateBond2Model(htWindow, ModelsBondDirectory, ReferenceDirectory, bond2ModelObject, bond2Models, bond2ModelParameter, BondDirectory); addBondMatchRegions = new AddBondMatchRegions(htWindow, bondWireRegionGroups, bond2ModelObject, bond2ModelParameter, bond2AutoUserRegion, ReferenceDirectory); bondMatchAutoRegions = new BondMatchAutoRegions(htWindow, ModelsFile, RecipeFile, Groups, bond2ModelObject, bond2ModelParameter, bondWireParameter, bondAutoRegionsParameter, bond2AutoUserRegion, BondDirectory, ReferenceDirectory); bondMatchVerify = new BondMatchVerify(htWindow, ModelsFile, RecipeFile, bond2Models, BondVerifyUserRegions, bondWireRegionGroups, bond2ModelObject, bond2ModelParameter, bondWireParameter, BondVerifyModelPara, BondDirectory, ReferenceDirectory); (bondMatchVerify as BondMatchVerify).OnSaveXML += SaveXML; htWindow.useAutoBond(bondMatchAutoRegions as BondMatchAutoRegions); htWindow.useBond2Verify(bondMatchVerify as BondMatchVerify); Procedures = new IProcedure[] { createBond2Model, bondMatchAutoRegions, addBondMatchRegions, bondMatchVerify, }; ProcedureChanged(0); }
public BondMeasureRecipe(int bondMeasureIndex) { this.RecipeIndex = bondMeasureIndex; Content = new Page_CreateRecipe(); (Content as Page_CreateRecipe).DataContext = this; htWindow = (Content as Page_CreateRecipe).htWindow; DisplayName = $"焊点Measure{this.RecipeIndex.ToString()}模板"; createAutoBondMeasureModel = new CreateAutoBondMeasureModel(htWindow, ModelsFile, RecipeFile, ReferenceDirectory, bondWireRegionGroups, bondMeasureModelObject, bondMeasureParameter, bond1AutoRegionsParameter, bondModelUserRegions, bond1AutoUserRegion, RotateLineUserRegion, BondMeasureDirectory, ModelsBondDirectory, Bond2UserRegion, Bond2UserRegionDiff); createBondMeasureModel = new CreateBondMeasureModel(htWindow, ReferenceDirectory, bondMeasureModelObject, bondMeasureParameter, bondModelUserRegions, bond1AutoUserRegion, BondMeasureDirectory, ModelsBondDirectory); bondMeasureVerify = new BondMeasureVerify(htWindow, ModelsFile, RecipeFile, ReferenceDirectory, bondMeasureModelObject, bondMeasureParameter, bondMeasureVerifyParameter, bondMeasureVerifyParameterSet, bondVerifyModelPara, PadUserRegions, bondModelUserRegions, BondMeasureDirectory, ModelsBondDirectory); (bondMeasureVerify as BondMeasureVerify).OnSaveXML += SaveXML; htWindow.useBondVerifyAndPad(bondMeasureVerify as BondMeasureVerify); htWindow.useAutoBond1(createAutoBondMeasureModel as CreateAutoBondMeasureModel); Procedures = new IProcedure[] { createAutoBondMeasureModel, createBondMeasureModel, bondMeasureVerify }; ProcedureChanged(0); }
public GoldenModelRecipe() { Content = new Page_CreateRecipe(); htWindow = (Content as Page_CreateRecipe).htWindow; }