Esempio 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;
 }
Esempio n. 2
0
 public Polyline(
     List <Point> points,
     StrokeAttributes stroke,
     FillStyle fill) : base(
         stroke,
         fill)
 {
     Points = points ?? throw new ArgumentNullException(nameof(points));
 }
Esempio n. 3
0
 public Path(
     List <PathSegment> pathSegments,
     StrokeAttributes stroke,
     FillStyle fill) : base(
         stroke,
         fill)
 {
     PathSegments = pathSegments ?? throw new ArgumentNullException(nameof(pathSegments));
 }
Esempio 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;
 }
Esempio 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;
 }
Esempio 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;
 }
Esempio 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;
 }
Esempio n. 8
0
 protected internal Shape(StrokeAttributes stroke, FillStyle fill)
 {
     Stroke = stroke;
     Fill   = fill ?? throw new ArgumentNullException(nameof(fill));
 }