Exemplo n.º 1
0
 protected internal Arc(
     Point?centerPoint,
     Point?startPoint,
     Point?controlPoint,
     Point?endPoint,
     Scalar?sweepAngle,
     Scalar?startAngle,
     Scalar?endAngle,
     Scalar?radius,
     Scalar?diameter,
     Scalar?cordLength,
     StrokeAttributes stroke,
     FillStyle fill) : base(
         stroke,
         fill)
 {
     CenterPoint  = centerPoint;
     StartPoint   = startPoint;
     ControlPoint = controlPoint;
     EndPoint     = endPoint;
     SweepAngle   = sweepAngle;
     StartAngle   = startAngle;
     EndAngle     = endAngle;
     Radius       = radius;
     Diameter     = diameter;
     CordLength   = cordLength;
 }
Exemplo n.º 2
0
 public Polyline(
     List <Point> points,
     StrokeAttributes stroke,
     FillStyle fill) : base(
         stroke,
         fill)
 {
     Points = points ?? throw new ArgumentNullException(nameof(points));
 }
Exemplo n.º 3
0
 public Path(
     List <PathSegment> pathSegments,
     StrokeAttributes stroke,
     FillStyle fill) : base(
         stroke,
         fill)
 {
     PathSegments = pathSegments ?? throw new ArgumentNullException(nameof(pathSegments));
 }
Exemplo n.º 4
0
 public Line(
     Point?start,
     Scalar?length,
     Scalar?angle,
     Point?end,
     StrokeAttributes stroke,
     FillStyle fill) : base(
         stroke,
         fill)
 {
     StartPoint    = start;
     Length        = length;
     RotationAngle = angle;
     EndPoint      = end;
 }
Exemplo n.º 5
0
 public Polygon(
     Point?centerPoint,
     Scalar?rotationAngle,
     int?sideCount,
     Point[] points,
     StrokeAttributes stroke,
     FillStyle fill) : base(
         stroke,
         fill)
 {
     CenterPoint   = centerPoint;
     RotationAngle = rotationAngle;
     SideCount     = sideCount;
     Points        = points;
 }
Exemplo n.º 6
0
 public Rectangle(
     Point?centerPoint,
     Point?startCorner,
     Point?endCorner,
     Scalar?width,
     Scalar?height,
     Scalar?area,
     Scalar?rotation,
     StrokeAttributes stroke,
     FillStyle fill) : base(
         stroke,
         fill)
 {
     CenterPoint = centerPoint;
     StartCorner = startCorner;
     EndCorner   = endCorner;
     Width       = width;
     Height      = height;
     Area        = area;
     Rotation    = rotation;
 }
Exemplo n.º 7
0
 public Ellipse(
     Point?majorAxisStartPoint,
     Point?majorAxisEndPoint,
     Point?minorAxisPoint,
     Point?center,
     Size?radius,
     Scalar?circleRadius,
     double?excentricity,
     Scalar?rotation,
     StrokeAttributes stroke,
     FillStyle fill) : base(
         stroke,
         fill)
 {
     MajorAxisStartPoint = majorAxisStartPoint;
     MajorAxisEndPoint   = majorAxisEndPoint;
     MinorAxisPoint      = minorAxisPoint;
     Center       = center;
     Radius       = radius;
     CircleRadius = circleRadius;
     Excentricity = excentricity;
     Rotation     = rotation;
 }
Exemplo n.º 8
0
 protected internal Shape(StrokeAttributes stroke, FillStyle fill)
 {
     Stroke = stroke;
     Fill   = fill ?? throw new ArgumentNullException(nameof(fill));
 }