Пример #1
0
 public void LineToClosed(IGeometryTarget target)
 {
     target.MoveTo(Left, Top);
     target.LineTo(Width, Height/2);
     target.LineTo(Height/2, Height);
     target.Close();
 }
Пример #2
0
 public void Replay(IGeometryTarget target)
 {
     foreach (var record in _records)
     {
         record(target);
     }
 }
Пример #3
0
        public void ArcTo(IGeometryTarget target)
        {
            const double pi = Math.PI;

            target.MoveTo(Left, Top);
            target.ArcTo(Left, Top, Width, Height, 0, pi / 2);
        }
Пример #4
0
 public void ArcToClosed(IGeometryTarget target)
 {
     const double pi = Math.PI;
     target.MoveTo(Left, Top);
     target.ArcTo(Left, Top, Width, Height, 0, pi / 2);
     target.Close();
 }
Пример #5
0
 public void LineToClosed(IGeometryTarget target)
 {
     target.MoveTo(Left, Top);
     target.LineTo(Width, Height / 2);
     target.LineTo(Height / 2, Height);
     target.Close();
 }
Пример #6
0
        public void ArcToCounterClockwise(IGeometryTarget target)
        {
            const double pi = Math.PI;

            target.MoveTo(Left, Top);
            target.ArcTo(Left, Top, Width, Height, pi / 2, 0, ArcDirection.CounterClockwise);
        }
Пример #7
0
        public void Arc(IGeometryTarget target)
        {
            const double pi = Math.PI;

            target.Arc(Left, Top, Width, Height, 0, pi / 2);
            target.Arc(Left, Top, Width, Height, pi, pi * 1.5);
        }
Пример #8
0
 public void Arc(IGeometryTarget target)
 {
     const double pi = Math.PI;
     target.Arc(Left, Top, Width, Height, 0, pi / 2);
     target.Arc(Left, Top, Width, Height, pi, pi * 1.5);
 }
Пример #9
0
 public void RoundedRect(IGeometryTarget geometry)
 {
     geometry.RoundedRectangle(Left, Top, Width, Height, 8);
 }
Пример #10
0
 public void Polygon(IGeometryTarget target)
 {
     target.Polygon(new double[] { Left, Top, Width, Height/2, Height/2, Height });
 }
Пример #11
0
 public static void MoveTo(IGeometryTarget _, Point p)
 {
     _.MoveTo(p.X, p.Y);
 }
Пример #12
0
 public void Line(IGeometryTarget geometry)
 {
     geometry.Line(10, 10, 70, 30);
 }
Пример #13
0
 public void Line(IGeometryTarget geometry)
 {
     geometry.Line(10, 10, 70, 30);
 }
Пример #14
0
 public void BezierToClosed(IGeometryTarget target)
 {
     target.MoveTo(Left, Top);
     target.BezierTo(Left + Width, Top, Left, Top + Height, Left + Width, Top + Height);
     target.Close();
 }
Пример #15
0
 public void ArcToCounterClockwise(IGeometryTarget target)
 {
     const double pi = Math.PI;
     target.MoveTo(Left, Top);
     target.ArcTo(Left, Top, Width, Height, pi/2, 0, ArcDirection.CounterClockwise);
 }
Пример #16
0
 public void Polygon(IGeometryTarget target)
 {
     target.Polygon(new double[] { Left, Top, Width, Height / 2, Height / 2, Height });
 }
Пример #17
0
 public void Bezier(IGeometryTarget target)
 {
     target.Bezier(Left, Top, Width, Top, Left, Height, Width, Height);
 }
Пример #18
0
 public void Ellipse(IGeometryTarget target)
 {
     target.Ellipse(Left, Top, Width, Height);
 }
Пример #19
0
 public void RoundedRect(IGeometryTarget geometry)
 {
     geometry.RoundedRectangle(Left, Top, Width, Height, 8);
 }
Пример #20
0
 public void Bezier(IGeometryTarget target)
 {
     target.Bezier(Left, Top, Width, Top, Left, Height, Width, Height);
 }
Пример #21
0
 public void MultipleGeometryFigures(IGeometryTarget geometry)
 {
     geometry.Line(10, 10, 70, 30);
     geometry.Line(10, 15, 70, 35);
 }
Пример #22
0
 public void Ellipse(IGeometryTarget target)
 {
     target.Ellipse(Left, Top, Width, Height);
 }
Пример #23
0
 public void OverlappingClosedFigures(IGeometryTarget target)
 {
     Polygon(target);
     Ellipse(target);
 }
Пример #24
0
 public void BezierTo(IGeometryTarget target)
 {
     target.MoveTo(Left, Top);
     target.BezierTo(Left + Width, Top, Left, Top + Height, Left + Width, Top + Height);
 }
Пример #25
0
 public void MultipleGeometryFigures(IGeometryTarget geometry)
 {
     geometry.Line(10, 10, 70, 30);
     geometry.Line(10, 15, 70, 35);
 }
Пример #26
0
 public void OverlappingClosedFigures(IGeometryTarget target)
 {
     Polygon(target);
     Ellipse(target);
 }
Пример #27
0
 public void Replay(IGeometryTarget target)
 {
     foreach (var record in _records)
         record(target);
 }