/// <summary> /// Begin drawing a figure /// </summary> /// <param name="position">Next position</param> /// <returns>The position to be passed down the pipeline</returns> protected override GeometryPosition OnBeginFigure(GeometryPosition position) { BeginFigure(position.X, position.Y, position.Z, position.M); return(position); }
/// <summary> /// Begin drawing a figure /// </summary> /// <param name="position">Next position</param> /// <returns>The position to be passed down the pipeline</returns> protected override GeometryPosition OnBeginFigure(GeometryPosition position) { BeginFigure(); this.WriteControlPoint(position.X, position.Y, position.Z, position.M); return(position); }
/// <summary> /// Draw a point in the specified coordinate /// </summary> /// <param name="position">Next position</param> /// <returns>The position to be passed down the pipeline</returns> protected override GeometryPosition OnLineTo(GeometryPosition position) { this.WritePoint(position.X, position.Y, position.Z, position.M); return(position); }
public override void BeginFigure(GeometryPosition position) { Debug.Assert(position != null, "ForwardingSegment should have validated nullness"); this.builder.BeginFigure(position.X, position.Y, position.Z, position.M); }
/// <summary> /// Begin drawing a figure /// </summary> /// <param name="position">Next position</param> public override void BeginFigure(GeometryPosition position) { }
/// <summary> /// Draw a point in the specified coordinate /// </summary> /// <param name="position">Next position</param> public override void LineTo(GeometryPosition position) { }
/// <summary> /// Continue drawing a Geometry figure /// </summary> /// <param name="position">Next position</param> public override void LineTo(GeometryPosition position) { Util.CheckArgumentNull(position, "position"); DoAction(val => Current.LineTo(val), val => Next.LineTo(val), position); }
/// <summary> /// Begin drawing a Geometry figure /// </summary> /// <param name="position">Next position</param> public override void BeginFigure(GeometryPosition position) { Util.CheckArgumentNull(position, "position"); DoAction(val => Current.BeginFigure(val), val => Next.BeginFigure(val), position); }