public static AbstractElectrodeSetValue Create(ElectrodeHeadInfo head, string dir) { AbstractElectrodeSetValue value = null; switch (dir.ToUpper()) { case "Z+": value = new ZPositiveElectrodeSetValue(head); break; case "X+": value = new XPositiveElectrodeSetValue(head); break; case "X-": value = new XNegativeElectrodeSetValue(head); break; case "Y+": value = new YPositiveElectrodeSetValue(head); break; case "Y-": value = new YNegativeElectrodeSetValue(head); break; default: break; } return(value); }
public CreateElectrodeBuilder(CreateConditionModel model) { this.model = model; head = new ElectrodeHeadInfo(model); preveiw = new ElectrodePreveiw(head); setValue = ElectrodeSetValueFactory.Create(head, model.VecName); }
public ElectrodePart(ElectrodeInfo eleInfo, MoldInfoModel moldInfo, ElectrodeHeadInfo head, Matrix4 mat) { this.eleMatr = mat; this.eleInfo = eleInfo; this.moldInfo = moldInfo; this.head = head; elePart = new CreateElectrodePart(head.ConditionModel.Work.WorkpieceDirectoryPath, this.head.ConditionModel.Work.WorkNumber , eleInfo, moldInfo, mat); }
public XNegativeElectrodeSetValue(ElectrodeHeadInfo head) : base(head) { }
public YPositiveElectrodeSetValue(ElectrodeHeadInfo head) : base(head) { }
public ElectrodePreveiw(ElectrodeHeadInfo head) { this.HeadModel = head; }
public AbstractElectrodeSetValue(ElectrodeHeadInfo head) { this.head = head; }