public void Copy(FDrawingCursor model) { _quads = model.GetQuads(); lineFromValid = model.lineFromValid; thickness = model.thickness; jointType = model.jointType; capType = model.capType; color = model.color; position = model.position; lineFromPosition = model.lineFromPosition; direction = model.direction; //topQuad=model.topQuad; //bottomQuad=model.bottomQuad; lineQuad = model.lineQuad; if (model.borders != null) { borders = new List <FDrawingBorder>(model.borders.Count); int n = model.borders.Count; for (int i = 0; i < n; i++) { FDrawingBorder border = model.borders[i]; borders.Add(border.Clone()); } } else { borders = null; } }
public FDrawingCursor(LinkedList <FDrawingQuad> quads) : base() { _quads = quads; lineFromValid = false; thickness = 1.0f; jointType = FTDrawingJointStyle.BEVEL; capType = FTDrawingCapStyle.NONE; color = new Color(1, 1, 1, 1); position = new Vector2(0, 0); //topQuad=bottomQuad=null; lineQuad = null; borders = null; }
public void Copy(FDrawingCursor model) { _quads=model.GetQuads(); lineFromValid=model.lineFromValid; thickness=model.thickness; jointType=model.jointType; capType=model.capType; color=model.color; position=model.position; lineFromPosition=model.lineFromPosition; direction=model.direction; //topQuad=model.topQuad; //bottomQuad=model.bottomQuad; lineQuad=model.lineQuad; if (model.borders!=null) { borders=new List<FDrawingBorder>(model.borders.Count); int n=model.borders.Count; for (int i=0;i<n;i++) { FDrawingBorder border=model.borders[i]; borders.Add(border.Clone()); } } else { borders=null; } }
public FDrawingCursor(LinkedList<FDrawingQuad> quads) : base() { _quads=quads; lineFromValid=false; thickness=1.0f; jointType=FTDrawingJointStyle.BEVEL; capType=FTDrawingCapStyle.NONE; color=new Color(1,1,1,1); position=new Vector2(0,0); //topQuad=bottomQuad=null; lineQuad=null; borders=null; }
public virtual void SetLineColor(Color color,float thickness,FTDrawingJointStyle jointType,FTDrawingCapStyle capType) { Flush(); _cursor.color=color; _cursor.thickness=thickness; _cursor.jointType=jointType; _cursor.capType=capType; }
public virtual void SetLineCapStyle(FTDrawingCapStyle capType) { Flush(); _cursor.capType=capType; }
virtual public void SetLineCapStyle(FTDrawingCapStyle capType) { Flush(); _cursor.capType = capType; }
virtual public void SetLineColor(Color color, float thickness, FTDrawingJointStyle jointType, FTDrawingCapStyle capType) { Flush(); _cursor.color = color; _cursor.thickness = thickness; _cursor.jointType = jointType; _cursor.capType = capType; }