/// <summary> /// Measures layout entities and defines unassigned properties. /// </summary> /// <param name="State">Current drawing state.</param> /// <param name="PathState">Current path state.</param> public virtual void Measure(DrawingState State, PathState PathState) { if (this.defined) { PathState.Set(this.xCoordinate, this.yCoordinate); PathState.Set(this.xCoordinate2, this.yCoordinate2); PathState.Set(this.xCoordinate3, this.yCoordinate3); } }
/// <summary> /// Draws layout entities. /// </summary> /// <param name="State">Current drawing state.</param> /// <param name="PathState">Current path state.</param> /// <param name="Path">Path being generated.</param> public virtual void Draw(DrawingState State, PathState PathState, SKPath Path) { if (this.defined) { this.P1 = Path.LastPoint; PathState.CloseLine(); this.P2 = Path.LastPoint; } }
/// <summary> /// Draws layout entities. /// </summary> /// <param name="State">Current drawing state.</param> /// <param name="PathState">Current path state.</param> /// <param name="Path">Path being generated.</param> public override void Draw(DrawingState State, PathState PathState, SKPath Path) { if (this.defined) { this.P1 = Path.LastPoint; Path.LineTo(PathState.Add(this.xCoordinate, this.yCoordinate)); this.P2 = Path.LastPoint; } }
/// <summary> /// Measures layout entities and defines unassigned properties. /// </summary> /// <param name="State">Current drawing state.</param> /// <param name="PathState">Current path state.</param> public override void Measure(DrawingState State, PathState PathState) { if (this.defined) { PathState.Add(this.xCoordinate, this.yCoordinate); PathState.Add(this.xCoordinate2, this.yCoordinate2); PathState.Add(this.xCoordinate3, this.yCoordinate3); } }
/// <summary> /// Draws layout entities. /// </summary> /// <param name="State">Current drawing state.</param> /// <param name="PathState">Current path state.</param> /// <param name="Path">Path being generated.</param> public override void Draw(DrawingState State, PathState PathState, SKPath Path) { if (this.defined) { this.P0 = Path.LastPoint; this.P1 = PathState.Add(this.xCoordinate, this.yCoordinate); this.P2 = PathState.Add(this.xCoordinate2, this.yCoordinate2); Path.ConicTo(this.P1, this.P2, this.weight); } }
/// <summary> /// Draws layout entities. /// </summary> /// <param name="State">Current drawing state.</param> /// <param name="PathState">Current path state.</param> /// <param name="Path">Path being generated.</param> public override void Draw(DrawingState State, PathState PathState, SKPath Path) { if (this.defined) { SKPoint P = PathState.Add(this.xCoordinate, this.yCoordinate); Path.ArcTo(this.r, this.r, 0, SKPathArcSize.Small, this.clockDir ? SKPathDirection.Clockwise : SKPathDirection.CounterClockwise, P.X, P.Y); } }
/// <summary> /// Draws layout entities. /// </summary> /// <param name="State">Current drawing state.</param> /// <param name="PathState">Current path state.</param> /// <param name="Path">Path being generated.</param> public virtual void Draw(DrawingState State, PathState PathState, SKPath Path) { if (this.defined) { this.P1 = Path.LastPoint; PathState.Set(this.xCoordinate, this.yCoordinate); Path.LineTo(this.xCoordinate, this.yCoordinate); this.P2 = Path.LastPoint; } }
/// <summary> /// Draws layout entities. /// </summary> /// <param name="State">Current drawing state.</param> /// <param name="PathState">Current path state.</param> /// <param name="Path">Path being generated.</param> public virtual void Draw(DrawingState State, PathState PathState, SKPath Path) { if (this.defined) { this.P0 = Path.LastPoint; this.P1 = new SKPoint(this.xCoordinate, this.yCoordinate); this.P2 = new SKPoint(this.xCoordinate2, this.yCoordinate2); PathState.Set(this.xCoordinate, this.yCoordinate); PathState.Set(this.xCoordinate2, this.yCoordinate2); Path.QuadTo(this.P1, this.P2); } }