PieCtrl¶PieCtrl is somewhat a “static” control, that you may create in order to display a simple pie chart on a Panel or similar.
Methods Summary¶| __init__ | Default class constructor. |
| Draw | Draws all the sectors of PieCtrl. |
| DrawParts | Draws the PieCtrl external edges. |
| GetAngle | Returns the orientation angle for PieCtrl, in radians. |
| GetBackColour | Returns the PieCtrl background colour. |
| GetBackground | Returns the PieCtrl background image. |
| GetHeight | Returns the height (in pixels) of the PieCtrl. |
| GetLegend | Returns the PieCtrl legend. |
| GetPartAngles | Returns the angles associated to all segments. |
| GetRotationAngle | Returns the angle at which the first sector starts, in radians. |
| GetShowEdges | Returns whether the PieCtrl edges are visible or not. |
| OnPaint | Handles the EVT_PAINT event for PieCtrl. |
| OnSize | Handles the EVT_SIZE event for PieCtrl. |
| RecreateCanvas | Recreates the PieCtrl container (canvas). |
| SetAngle | Sets the orientation angle for PieCtrl. |
| SetBackColour | Sets the PieCtrl background colour. |
| SetBackground | Sets the PieCtrl background image. |
| SetHeight | Sets the height (in pixels) of the PieCtrl. |
| SetRotationAngle | Sets the angle at which the first sector starts. |
| SetShowEdges | Sets whether the PieCtrl edges are visible or not. |
Class API¶PieCtrl is somewhat a “static” control, that you may create in order to display a simple pie chart on a Panel or similar.
Default class constructor.
| Parameters: |
|
|---|
Draws the PieCtrl external edges.
| Parameters: |
|
|---|
Returns the angles associated to all segments.
Returns the angle at which the first sector starts, in radians.
Handles the EVT_PAINT event for PieCtrl.
| Parameters: | event – a PaintEvent event to be processed. |
|---|
Handles the EVT_SIZE event for PieCtrl.
| Parameters: | event – a SizeEvent event to be processed. |
|---|
Sets the orientation angle for PieCtrl.
| Parameters: | angle – the orientation angle for PieCtrl, in radians. |
|---|
Sets the PieCtrl background colour.
| Parameters: | colour – a valid Colour object. |
|---|
Sets the PieCtrl background image.
| Parameters: | bmp – a valid Bitmap object. |
|---|
Sets the height (in pixels) of the PieCtrl.
| Parameters: | value – the new height of the widget, in pixels. |
|---|
Sets the angle at which the first sector starts.
| Parameters: | angle – the first sector angle, in radians. |
|---|