## class HexaPDF::Content::GraphicObject::SolidArc

Parent Object

This graphic object represents a solid elliptical arc, i.e. an arc that has an inner and an outer set of a/b values.

Thus it can be used to create

• an (elliptical) disk (when the inner a/b are zero and the difference between start and end angles is greater than or equal to 360),

• an (elliptical) sector (when the inner a/b are zero and the difference between start and end angles is less than 360),

• an (elliptical) annulus (when the inner a/b are nonzero and the difference between start and end angles is greater than or equal to 360), and

• an (elliptical) annular sector (when the inner a/b are nonzero and the difference between start and end angles is less than 360)

See: `Arc`

### Attributes

cx[R]

x-coordinate of center point

cy[R]

y-coordinate of center point

end_angle[R]

End angle in degrees

inclination[R]

Inclination in degrees of semi-major axis in respect to x-axis

inner_a[R]

Length of inner semi-major axis

inner_b[R]

Length of inner semi-minor axis

outer_a[R]

Length of outer semi-major axis

outer_b[R]

Length of outer semi-minor axis

start_angle[R]

Start angle in degrees

### Public Class Methods

configure(**kwargs)

Creates and configures a new solid arc object.

See `configure` for the allowed keyword arguments.

new()

Creates a solid arc with default values (a unit disk at the origin).

### Public Instance Methods

configure(cx: nil, cy: nil, inner_a: nil, inner_b: nil, outer_a: nil, outer_b: nil, start_angle: nil, end_angle: nil, inclination: nil)

Configures the solid arc with

• center point (`cx`, `cy`),

• inner semi-major axis `inner_a`,

• inner semi-minor axis `inner_b`,

• outer semi-major axis `outer_a`,

• outer semi-minor axis `outer_b`,

• start angle of `start_angle` degrees,

• end angle of `end_angle` degrees and

• an inclination in respect to the x-axis of `inclination` degrees.

Any arguments not specified are not modified and retain their old value, see initialize for the inital values.

Returns self.

draw(canvas)

Draws the solid arc on the given `Canvas`.