コード例 #1
0
        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);
        }
コード例 #2
0
 public CreateElectrodeBuilder(CreateConditionModel model)
 {
     this.model = model;
     head       = new ElectrodeHeadInfo(model);
     preveiw    = new ElectrodePreveiw(head);
     setValue   = ElectrodeSetValueFactory.Create(head, model.VecName);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 public XNegativeElectrodeSetValue(ElectrodeHeadInfo head) : base(head)
 {
 }
コード例 #5
0
 public YPositiveElectrodeSetValue(ElectrodeHeadInfo head) : base(head)
 {
 }
コード例 #6
0
 public ElectrodePreveiw(ElectrodeHeadInfo head)
 {
     this.HeadModel = head;
 }
コード例 #7
0
 public AbstractElectrodeSetValue(ElectrodeHeadInfo head)
 {
     this.head = head;
 }