kchart
KDChartLinesPainter Class Reference
#include <KDChartLinesPainter.h>

Detailed Description
A chart painter implementation that can paint line charts.Definition at line 38 of file KDChartLinesPainter.h.
Protected Member Functions | |
| KDChartLinesPainter (KDChartParams *params) | |
| virtual | ~KDChartLinesPainter () |
| virtual void | paintData (QPainter *painter, KDChartTableDataBase *data, bool paint2nd, KDChartDataRegionList *regions=0) |
| virtual bool | isNormalMode () const |
| virtual int | clipShiftUp (bool, double) const |
| virtual void | specificPaintData (QPainter *painter, const QRect &ourClipRect, KDChartTableDataBase *data, KDChartDataRegionList *regions, const KDChartAxisParams *axisPara, bool bNormalMode, uint chart, double logWidth, double areaWidthP1000, double logHeight, double axisYOffset, double minColumnValue, double maxColumnValue, double columnValueDistance, uint chartDatasetStart, uint chartDatasetEnd, uint datasetStart, uint datasetEnd) |
| void | paintDataInternal (QPainter *painter, KDChartTableDataBase *data, bool centerThePoints, bool drawMarkers, bool isArea, bool paint2nd, KDChartDataRegionList *regions=0) |
| QPoint | project (int x, int y, int z) |
Friends | |
| class | KDChartPainter |
Constructor & Destructor Documentation
| KDChartLinesPainter::KDChartLinesPainter | ( | KDChartParams * | params | ) | [protected] |
Constructor.
Sets up internal data structures as necessary.
- Parameters:
-
params the KDChartParams structure that defines the chart data the data that will be displayed as a chart
Definition at line 55 of file KDChartLinesPainter.cpp.
| KDChartLinesPainter::~KDChartLinesPainter | ( | ) | [protected, virtual] |
Member Function Documentation
| void KDChartLinesPainter::paintData | ( | QPainter * | painter, | |
| KDChartTableDataBase * | data, | |||
| bool | paint2nd, | |||
| KDChartDataRegionList * | regions = 0 | |||
| ) | [protected, virtual] |
Paints the actual data area.
Data regions will only be added if regions is not 0.
- Parameters:
-
painter the QPainter onto which the chart should be painted data the data that will be displayed as a chart paint2nd specifies whether the main chart or the additional chart is to be drawn now regions a pointer to a list of regions that will be filled with regions representing the data segments, if not null
Reimplemented from KDChartAxesPainter.
Reimplemented in KDChartAreaPainter.
Definition at line 82 of file KDChartLinesPainter.cpp.
| void KDChartLinesPainter::specificPaintData | ( | QPainter * | painter, | |
| const QRect & | ourClipRect, | |||
| KDChartTableDataBase * | data, | |||
| KDChartDataRegionList * | regions, | |||
| const KDChartAxisParams * | axisPara, | |||
| bool | bNormalMode, | |||
| uint | chart, | |||
| double | logWidth, | |||
| double | areaWidthP1000, | |||
| double | logHeight, | |||
| double | axisYOffset, | |||
| double | minColumnValue, | |||
| double | maxColumnValue, | |||
| double | columnValueDistance, | |||
| uint | chartDatasetStart, | |||
| uint | chartDatasetEnd, | |||
| uint | datasetStart, | |||
| uint | datasetEnd | |||
| ) | [protected, virtual] |
first dataset (or any dataset in normal mode, where the datasets overwrite each other)
Implements KDChartAxesPainter.
Definition at line 181 of file KDChartLinesPainter.cpp.
| QPoint KDChartLinesPainter::project | ( | int | x, | |
| int | y, | |||
| int | z | |||
| ) | [protected] |
Projects a point in a space defined by its x, y, and z coordinates into a point onto a plane, given two rotation angles around the x resp. y axis.
Definition at line 140 of file KDChartLinesPainter.cpp.
The documentation for this class was generated from the following files:

