[]
        
(Showing Draft Content)

C1.C1Preview.RenderArc.-ctor

RenderArc Constructor

RenderArc()

Initializes a new instance of the RenderArc class. The start angle of the arc is set to 0, while the sweep angle is set to 360 degrees, thus making it a complete ellipse. The location and size of the arc's ellipse are set to those of the current RenderArc object.

Declaration
public RenderArc()

RenderArc(Unit, Unit, float, float)

Initializes a new instance of the RenderArc class, assigning the width, height, and start and sweep angles of the arc. The location of the arc's ellipse is set to the location of the current RenderPie.

Declaration
public RenderArc(Unit width, Unit height, float startAngle, float sweepAngle)
Parameters
Type Name Description
Unit width

The width of the ellipse containing the arc.

Unit height

The height of the ellipse containing the arc.

float startAngle

The angle, in degrees, clockwise from the X axis to the start of the arc.

float sweepAngle

The angle, measured in degrees, clockwise from startAngle to the end of the arc.

RenderArc(Unit, Unit, float, float, LineDef)

Initializes a new instance of the RenderArc class, assigning the width, height, start and sweep angles of the arc, and the LineDef used to draw the arc. The location of the arc's ellipse is set to the location of the current RenderPie.

Declaration
public RenderArc(Unit width, Unit height, float startAngle, float sweepAngle, LineDef shapeLine)
Parameters
Type Name Description
Unit width

The width of the ellipse containing the arc.

Unit height

The height of the ellipse containing the arc.

float startAngle

The angle, in degrees, clockwise from the X axis to the start of the arc.

float sweepAngle

The angle, measured in degrees, clockwise from startAngle to the end of the arc.

LineDef shapeLine

The LineDef used to draw the arc.

RenderArc(Unit, Unit, float, float, LineDef, Color)

Initializes a new instance of the RenderArc class, assigning the width, height, start and sweep angles of the arc, the LineDef used to draw the arc, and the color used to fill the segment formed by the arc and a line connecting its ends. The location of the arc's ellipse is set to the location of the current RenderPie.

Declaration
public RenderArc(Unit width, Unit height, float startAngle, float sweepAngle, LineDef shapeLine, Color shapeFillColor)
Parameters
Type Name Description
Unit width

The width of the ellipse containing the arc.

Unit height

The height of the ellipse containing the arc.

float startAngle

The angle, in degrees, clockwise from the X axis to the start of the arc.

float sweepAngle

The angle, measured in degrees, clockwise from startAngle to the end of the arc.

LineDef shapeLine

The LineDef used to draw the arc.

Color shapeFillColor

The fill color.

RenderArc(Unit, Unit, float, float, LineDef, Brush)

Initializes a new instance of the RenderArc class, assigning the width, height, start and sweep angles of the arc, the LineDef used to draw the arc, and the brush used to fill the segment formed by the arc and a line connecting its ends. The location of the arc's ellipse is set to the location of the current RenderPie.

Declaration
public RenderArc(Unit width, Unit height, float startAngle, float sweepAngle, LineDef shapeLine, Brush shapeFillBrush)
Parameters
Type Name Description
Unit width

The width of the ellipse containing the arc.

Unit height

The height of the ellipse containing the arc.

float startAngle

The angle, in degrees, clockwise from the X axis to the start of the arc.

float sweepAngle

The angle, measured in degrees, clockwise from startAngle to the end of the arc.

LineDef shapeLine

The LineDef used to draw the arc.

Brush shapeFillBrush

The fill brush.

RenderArc(Unit, Unit, Unit, Unit, float, float)

Initializes a new instance of the RenderArc class, assigning the location, size, and start and sweep angles of the arc.

Declaration
public RenderArc(Unit x, Unit y, Unit width, Unit height, float startAngle, float sweepAngle)
Parameters
Type Name Description
Unit x

The X coordinate of the ellipse containing the arc.

Unit y

The Y coordinate of the ellipse containing the arc.

Unit width

The width of the ellipse containing the arc.

Unit height

The height of the ellipse containing the arc.

float startAngle

The angle, in degrees, clockwise from the X axis to the start of the arc.

float sweepAngle

The angle, measured in degrees, clockwise from startAngle to the end of the arc.

RenderArc(Unit, Unit, Unit, Unit, float, float, LineDef)

Initializes a new instance of the RenderArc class, assigning the location, size, and start and sweep angles of the arc, and the LineDef used to draw the arc.

Declaration
public RenderArc(Unit x, Unit y, Unit width, Unit height, float startAngle, float sweepAngle, LineDef shapeLine)
Parameters
Type Name Description
Unit x

The X coordinate of the ellipse containing the arc.

Unit y

The Y coordinate of the ellipse containing the arc.

Unit width

The width of the ellipse containing the arc.

Unit height

The height of the ellipse containing the arc.

float startAngle

The angle, in degrees, clockwise from the X axis to the start of the arc.

float sweepAngle

The angle, measured in degrees, clockwise from startAngle to the end of the arc.

LineDef shapeLine

The LineDef used to draw the arc.

RenderArc(Unit, Unit, Unit, Unit, float, float, LineDef, Color)

Initializes a new instance of the RenderArc class, assigning the location, size, and start and sweep angles of the arc, the LineDef used to draw the arc, and the color used to fill the segment formed by the arc and a line connecting its ends.

Declaration
public RenderArc(Unit x, Unit y, Unit width, Unit height, float startAngle, float sweepAngle, LineDef shapeLine, Color shapeFillColor)
Parameters
Type Name Description
Unit x

The X coordinate of the ellipse containing the arc.

Unit y

The Y coordinate of the ellipse containing the arc.

Unit width

The width of the ellipse containing the arc.

Unit height

The height of the ellipse containing the arc.

float startAngle

The angle, in degrees, clockwise from the X axis to the start of the arc.

float sweepAngle

The angle, measured in degrees, clockwise from startAngle to the end of the arc.

LineDef shapeLine

The LineDef used to draw the arc.

Color shapeFillColor

The fill color.

RenderArc(Unit, Unit, Unit, Unit, float, float, LineDef, Brush)

Initializes a new instance of the RenderArc class, assigning the location, size, and start and sweep angles of the arc, the LineDef used to draw the arc, and the brush used to fill the segment formed by the arc and a line connecting its ends.

Declaration
public RenderArc(Unit x, Unit y, Unit width, Unit height, float startAngle, float sweepAngle, LineDef shapeLine, Brush shapeFillBrush)
Parameters
Type Name Description
Unit x

The X coordinate of the ellipse containing the arc.

Unit y

The Y coordinate of the ellipse containing the arc.

Unit width

The width of the ellipse containing the arc.

Unit height

The height of the ellipse containing the arc.

float startAngle

The angle, in degrees, clockwise from the X axis to the start of the arc.

float sweepAngle

The angle, measured in degrees, clockwise from startAngle to the end of the arc.

LineDef shapeLine

The LineDef used to draw the arc.

Brush shapeFillBrush

The fill brush.