GuiShapePolar class

The GuiShapePolar class defines a polar graph's properties.

Implemented types

Constructors

GuiShapePolar({required GuiPolarFunction formula, int sampling = 64, required GeoAngle startAngle, bool clockwise = false, BoxFit boxFit = BoxFit.none, double cornerRadius = 0, double polarBeginAngle = 0.0, double polarEndAngle = 2 * pi})

Properties

boxFit BoxFit
Resize custom shape to fit rendering area.
final
clockwise bool
Direction of rotation
final
cornerRadius double
Radius of smoothing or curving corners of the shape.
final
formula GuiPolarFunction
A formula that takes angle and returns a amplitude factor (usually between -1.0 and 1.0). If values less than -1.0 or greater than 1.0 are returned, then shape may go beyond the rendering region. To ensure that it fits in the rendering region, set boxFit to BoxFit.fill to resize resulting shape within the rendering region.
final
hashCode int
The hash code for this object.
no setterinherited
polarBeginAngle double
Start polar sweep at angle (default: 0)
final
polarEndAngle double
End polar sweep at angle (default: 2pi)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampling int
of sampling for polar chart (equates to # of times formula is called between 0 and 2pi. Default = 64
final
startAngle GeoAngle
Starting angle of polygon
final

Methods

getCoordinates({required Size size}) List<GeoCoordinate2D>
generate coordinate for polar chart based on rectangular region. An ellipse is used to distort the polar chart to resemble the shape of the region. For a more circular look, the size width and height should be the same.
getPath({required Size size}) Path
Retrieve Path of shape
override
lerpFrom(IGuiShape shape, double t) IGuiShape
Linearly interpolate from other shape to this shape by an extrapolation factor t.
override
lerpTo(IGuiShape shape, double t) IGuiShape
Linearly interpolate from this shape to other shape by an extrapolation factor t.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited