public override void Assign(ArcEvent newValues) { base.Assign(newValues); ArcArc n = newValues as ArcArc; XStart = n.XStart; XEnd = n.XEnd; LineType = n.LineType; YStart = n.YStart; YEnd = n.YEnd; Color = n.Color; IsVoid = n.IsVoid; }
public ArcArc(RawAffArc rawAffArc) { Timing = rawAffArc.Timing; EndTiming = rawAffArc.EndTiming; XStart = rawAffArc.XStart; XEnd = rawAffArc.XEnd; LineType = rawAffArc.LineType; YStart = rawAffArc.YStart; YEnd = rawAffArc.YEnd; Color = rawAffArc.Color; IsVoid = rawAffArc.IsVoid; if (rawAffArc.ArcTaps.Count > 0) { IsVoid = true; foreach (var arctap in rawAffArc.ArcTaps) { ArcTaps.Add(new ArcArcTap(arctap)); } } }
public static float Y(float start, float end, float t, ArcLineType type) { switch (type) { default: case ArcLineType.S: case ArcLineType.Si: case ArcLineType.So: return(S(start, end, t)); case ArcLineType.B: return(B(start, end, t)); case ArcLineType.SiSi: case ArcLineType.SoSi: return(I(start, end, t)); case ArcLineType.SiSo: case ArcLineType.SoSo: return(O(start, end, t)); } }
public static string ToLineTypeString(ArcLineType type) { switch (type) { case ArcLineType.B: return("b"); case ArcLineType.S: return("s"); case ArcLineType.Si: return("si"); case ArcLineType.SiSi: return("sisi"); case ArcLineType.SiSo: return("siso"); case ArcLineType.So: return("so"); case ArcLineType.SoSi: return("sosi"); case ArcLineType.SoSo: return("soso"); default: return("s"); } }
public void SetArcTypeMode(int type) { currentArcType = (ArcLineType)type; }