KD Chart 2
[rev.2.7]
|
A set of attributes controlling the appearance of pie charts. More...
#include <KDChartPieAttributes.h>
Public Member Functions | |
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 |
PieAttributes () | |
PieAttributes (const PieAttributes &) | |
void | setExplode (bool explode) |
Enable or disable exploding the respective pie piece(s). More... | |
void | setExplodeFactor (qreal factor) |
Set the explode factor. More... | |
void | setGapFactor (bool circular, qreal factor) |
~PieAttributes () | |
A set of attributes controlling the appearance of pie charts.
Definition at line 35 of file KDChartPieAttributes.h.
PieAttributes::PieAttributes | ( | ) |
Definition at line 44 of file KDChartPieAttributes.cpp.
PieAttributes::PieAttributes | ( | const PieAttributes & | r | ) |
Definition at line 49 of file KDChartPieAttributes.cpp.
PieAttributes::~PieAttributes | ( | ) |
Definition at line 64 of file KDChartPieAttributes.cpp.
bool PieAttributes::explode | ( | ) | const |
Definition at line 89 of file KDChartPieAttributes.cpp.
References d.
Referenced by labelAttachmentLine(), KDChart::RingDiagram::paint(), and KDChart::RingDiagram::resize().
qreal PieAttributes::explodeFactor | ( | ) | const |
Definition at line 99 of file KDChartPieAttributes.cpp.
References d.
Referenced by KDChart::RingDiagram::calculateDataBoundaries(), KDChart::PieDiagram::calculateDataBoundaries(), labelAttachmentLine(), operator<<(), operator==(), KDChart::RingDiagram::paint(), KDChart::PieDiagram::paint(), and KDChart::RingDiagram::resize().
qreal PieAttributes::gapFactor | ( | bool | circular | ) | const |
Definition at line 112 of file KDChartPieAttributes.cpp.
References d.
Referenced by operator==(), KDChart::RingDiagram::paint(), and KDChart::RingDiagram::resize().
bool KDChart::PieAttributes::operator!= | ( | const PieAttributes & | other | ) | const |
Definition at line 75 of file KDChartPieAttributes.h.
References KDCHART_DECLARE_PRIVATE_BASE_VALUE, KDCHART_DECLARE_SWAP_SPECIALISATION, KDChart::operator<<(), KDGantt::operator==(), and Q_DECLARE_TYPEINFO().
PieAttributes & PieAttributes::operator= | ( | const PieAttributes & | r | ) |
Definition at line 54 of file KDChartPieAttributes.cpp.
References d.
bool PieAttributes::operator== | ( | const PieAttributes & | r | ) | const |
Definition at line 70 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 84 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 94 of file KDChartPieAttributes.cpp.
References d.
void PieAttributes::setGapFactor | ( | bool | circular, |
qreal | factor | ||
) |
Definition at line 104 of file KDChartPieAttributes.cpp.
References d.