using GummingEntity; using System; using System.Collections.Generic; using System.Text; namespace GummingLine { public enum LineType { Starting = 1, //起始到绗缝 Gumming = 2, //绗缝段 Moving = 3,//移绷段 Ending =4,//不加入处理队列 } public enum AccType { Uniform = 1, //匀速段 NonUniform = 2, //变速段 } public class PatternLine : ICloneable { public int Index; public LineType LineTypeTag; public AccType AccTypeTag; public double Acc; public int PosX; public int PosY; public int PosZ; public double StartSpeed; public double EndSpeed; public double ReverseStartSpeed; public double ReverseEndSpeed; public PatternEntity PaternSegment; public bool IsCutDot; public object Clone() { PatternLine clone = new PatternLine() { Index = this.Index, LineTypeTag = this.LineTypeTag, AccTypeTag = this.AccTypeTag, Acc = this.Acc, PosX = this.PosX, PosY = this.PosY, PosZ = this.PosZ, StartSpeed = this.StartSpeed, EndSpeed = this.EndSpeed, ReverseStartSpeed = this.ReverseStartSpeed, ReverseEndSpeed = this.ReverseEndSpeed, IsCutDot = this.IsCutDot, PaternSegment = (PatternEntity)this.PaternSegment.Clone(), }; return clone; } } }