kchart
KDChartPiePainter Class Reference
#include <KDChartPiePainter.h>
Inheritance diagram for KDChartPiePainter:

Detailed Description
A chart painter implementation that can paint pie charts.PENDING(kalle) Write more documentation.
Definition at line 37 of file KDChartPiePainter.h.
Protected Member Functions | |
KDChartPiePainter (KDChartParams *params) | |
virtual | ~KDChartPiePainter () |
virtual void | paintData (QPainter *painter, KDChartTableDataBase *data, bool paint2nd, KDChartDataRegionList *regions=0) |
virtual void | drawOnePie (QPainter *painter, KDChartTableDataBase *data, uint dataset, uint pie, uint chart, uint threeDPieHeight, KDChartDataRegionList *regions=0) |
virtual void | draw3DEffect (QPainter *painter, const QRect &drawPosition, uint dataset, uint pie, uint chart, uint threeDPieHeight, bool explode, QRegion *region=0) |
void | drawStraightEffectSegment (QPainter *painter, const QRect &rect, uint dataset, uint pie, uint chart, int threeDHeight, int angle, QRegion *region=0) |
void | drawArcEffectSegment (QPainter *painter, const QRect &rect, uint dataset, uint pie, uint chart, int threeDHeight, int startAngle, int endAngle, QRegion *region=0) |
virtual QString | fallbackLegendText (uint dataset) const |
virtual uint | numLegendFallbackTexts (KDChartTableDataBase *data) const |
uint | findPieAt (int angle) |
uint | findLeftPie (uint pie) |
uint | findRightPie (uint pie) |
Protected Attributes | |
QMemArray< int > | _startAngles |
QMemArray< int > | _angleLens |
QRect | _position |
int | _size |
int | _numValues |
Friends | |
class | KDChartPainter |
Constructor & Destructor Documentation
|
Constructor. Sets up internal data structures as necessary.
Definition at line 54 of file KDChartPiePainter.cpp. |
|
Destructor.
Definition at line 65 of file KDChartPiePainter.cpp. |
Member Function Documentation
|
Internal method that draws the shadow creating the 3D effect of a pie.
starts and ends in first quadrant, more than 3/4 starts in first quadrant, ends in second quadrant, less than 1/2 starts in first quadrant, ends in third quadrant starts in first quadrant, ends in fourth quadrant, more than 3/4 starts in second quadrant, ends in second quadrant, less than 1/4 starts in second quadrant, ends in second quadrant, more than 1/4 starts in third quadrant, ends in third quadrant, less than 1/4 starts in third quadrant, ends in third quadrant, more than 3/4 starts in fourth quadrant, ends in fourth quadrant, less than 1/4 starts in fourth quadrant, ends in fourth quadrant, more than 3/4 Definition at line 483 of file KDChartPiePainter.cpp. |
|
Internal method that draws a segment with an arc 3D effect.
Definition at line 713 of file KDChartPiePainter.cpp. |
|
Internal method that draws one of the pies in a pie chart.
Definition at line 305 of file KDChartPiePainter.cpp. |
|
Internal method that draws a segment with a straight 3D effect.
Definition at line 681 of file KDChartPiePainter.cpp. |
|
This method is a specialization that returns a fallback legend text appropriate for pies that do not have more than one dataset. This method is only used when automatic legends are used, because manual and first-column legends do not need fallback texts.
Reimplemented from KDChartPainter. Definition at line 813 of file KDChartPiePainter.cpp. |
|
Internal method that finds the pie that is located to the left of the pie specified by
Definition at line 772 of file KDChartPiePainter.cpp. |
|
Internal method that finds the pie that is located at the position specified by
Definition at line 750 of file KDChartPiePainter.cpp. |
|
Internal method that finds the pie that is located to the right of the pie specified by
Definition at line 792 of file KDChartPiePainter.cpp. |
|
This methods returns the number of elements to be shown in the legend in case fallback texts are used. This method is only used when automatic legends are used, because manual and first-column legends do not need fallback texts.
Reimplemented from KDChartPainter. Definition at line 828 of file KDChartPiePainter.cpp. |
|
Paints the actual data area.
Implements KDChartPainter. Definition at line 81 of file KDChartPiePainter.cpp. |
The documentation for this class was generated from the following files: