![]() |
KD Chart API Documentation
3.1
|
A set of attributes controlling the appearance of pie charts. More...
#include <KDChartPieAttributes.h>
Public Member Functions | |
PieAttributes () | |
PieAttributes (const PieAttributes &) | |
~PieAttributes () | |
bool | explode () const |
qreal | explodeFactor () const |
qreal | gapFactor (bool circular) const |
bool | operator!= (const PieAttributes &other) const |
PieAttributes & | operator= (const PieAttributes &) |
bool | operator== (const PieAttributes &) const |
void | setExplode (bool explode) |
Enable or disable exploding the respective pie piece(s). More... | |
void | setExplodeFactor (qreal factor) |
void | setGapFactor (bool circular, qreal factor) |
A set of attributes controlling the appearance of pie charts.
Definition at line 23 of file KDChartPieAttributes.h.
PieAttributes::PieAttributes | ( | ) |
Definition at line 26 of file KDChartPieAttributes.cpp.
PieAttributes::PieAttributes | ( | const PieAttributes & | r | ) |
Definition at line 31 of file KDChartPieAttributes.cpp.
PieAttributes::~PieAttributes | ( | ) |
Definition at line 46 of file KDChartPieAttributes.cpp.
bool PieAttributes::explode | ( | ) | const |
Definition at line 66 of file KDChartPieAttributes.cpp.
References d.
Referenced by KDChart::PieDiagram::calculateDataBoundaries(), KDChart::RingDiagram::calculateDataBoundaries(), and KDChart::RingDiagram::paint().
qreal PieAttributes::explodeFactor | ( | ) | const |
Definition at line 76 of file KDChartPieAttributes.cpp.
References d.
Referenced by KDChart::PieDiagram::calculateDataBoundaries(), KDChart::RingDiagram::calculateDataBoundaries(), operator<<(), operator==(), and KDChart::RingDiagram::paint().
qreal PieAttributes::gapFactor | ( | bool | circular | ) | const |
Definition at line 89 of file KDChartPieAttributes.cpp.
References d.
Referenced by operator==(), and KDChart::RingDiagram::paint().
|
inline |
Definition at line 63 of file KDChartPieAttributes.h.
References KDChart::operator==().
PieAttributes & PieAttributes::operator= | ( | const PieAttributes & | r | ) |
Definition at line 36 of file KDChartPieAttributes.cpp.
References d.
bool PieAttributes::operator== | ( | const PieAttributes & | r | ) | const |
Definition at line 52 of file KDChartPieAttributes.cpp.
References explodeFactor(), and gapFactor().
void PieAttributes::setExplode | ( | bool | explode | ) |
Enable or disable exploding the respective pie piece(s).
The default explode factor is 10 percent; use setExplodeFactor to specify a different factor.
Definition at line 61 of file KDChartPieAttributes.cpp.
References d.
void PieAttributes::setExplodeFactor | ( | qreal | factor | ) |
Set the explode factor. The explode factor is a qreal between 0 and 1, and is interpreted as a percentage of the total available radius of the pie.
Definition at line 71 of file KDChartPieAttributes.cpp.
References d.
void PieAttributes::setGapFactor | ( | bool | circular, |
qreal | factor | ||
) |
Definition at line 81 of file KDChartPieAttributes.cpp.
References d.