PyANGKernel.GKCircle

class GKCircle

A 2D Circle. * * A GKCircle represents a circle with a radius (expressed in meters), and is drawn with a fill and an outline. * - The outline is drawn using the penStyle, penColor, penSize and penSizeUnits properties. * - The fill is drawn using the brushStyle and brushColor properties.

Inheritance diagram of PyANGKernel.GKCircle

Synopsis

Methods

Virtual methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

__init__()

Constructor. Default values: - penStyle: solid line - penColor: black - penSize: 1.0 - penSizeUnits: ePixels - brushStyle: NoBrush - brushColor: black - radius: 1.0

getBrushColor()
Return type:

QColor

Gets the circle’s brushColor.

getBrushStyle()
Return type:

BrushStyle

Gets the circle’s brushStyle.

getPenColor()
Return type:

QColor

Gets the circle’s penColor.

getPenSize()
Return type:

float

Gets the circle’s penSize.

getPenSizeUnits()
Return type:

SizeUnits

Gets the circle’s penSizeUnits.

getPenStyle()
Return type:

PenStyle

Gets the circle’s penStyle.

getRadius()
Return type:

float

Gets the circle’s radius (in meters).

setBrushColor(color)
Parameters:

colorQColor

Sets the circle’s brushColor.

setBrushStyle(astyle)
Parameters:

astyleBrushStyle

Sets the circle’s brushStyle.

setPenColor(color)
Parameters:

colorQColor

Sets the circle’s penColor.

setPenSize(size)
Parameters:

size – float

Sets the circle’s penSize.

setPenSizeUnits(units)
Parameters:

unitsSizeUnits

Sets the circle’s penSizeUnits.

setPenStyle(astyle)
Parameters:

astylePenStyle

Sets the circle’s penStyle.

setRadius(r)
Parameters:

r – float

Sets the circle’s radius (in meters).