#include <KDChartPieAttributes.h>
Definition at line 38 of file KDChartPieAttributes.h.
Public Member Functions | |
| bool | explode () const |
| |
| qreal | explodeFactor () const |
| |
| bool | operator!= (const PieAttributes &other) const |
| PieAttributes & | operator= (const PieAttributes &) |
| bool | operator== (const PieAttributes &) const |
| PieAttributes (const PieAttributes &) | |
| PieAttributes () | |
| void | setExplode (bool explode) |
| Enable or disable exploding the respective pie piece(s). | |
| void | setExplodeFactor (qreal factor) |
| Set the explode factor. | |
| ~PieAttributes () | |
| PieAttributes::PieAttributes | ( | ) |
| PieAttributes::PieAttributes | ( | const PieAttributes & | ) |
| PieAttributes::~PieAttributes | ( | ) |
| bool PieAttributes::explode | ( | ) | const |
Definition at line 90 of file KDChartPieAttributes.cpp.
References d.
00091 { 00092 return (d->explodeFactor != 0.0); 00093 }
| qreal PieAttributes::explodeFactor | ( | ) | const |
Definition at line 100 of file KDChartPieAttributes.cpp.
References d.
Referenced by operator<<(), and operator==().
00101 { 00102 return d->explodeFactor; 00103 }
| bool KDChart::PieAttributes::operator!= | ( | const PieAttributes & | other | ) | const |
| PieAttributes & PieAttributes::operator= | ( | const PieAttributes & | ) |
Definition at line 55 of file KDChartPieAttributes.cpp.
References d.
00056 { 00057 if( this == &r ) 00058 return *this; 00059 00060 *d = *r.d; 00061 00062 return *this; 00063 }
| bool PieAttributes::operator== | ( | const PieAttributes & | ) | const |
Definition at line 71 of file KDChartPieAttributes.cpp.
References explodeFactor().
00072 { 00073 if( explodeFactor() == r.explodeFactor() ) 00074 return true; 00075 else 00076 return false; 00077 }
| 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 85 of file KDChartPieAttributes.cpp.
References d.
00086 { 00087 d->explodeFactor = (enabled ? 0.1 : 0.0); 00088 }
| 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 95 of file KDChartPieAttributes.cpp.
References d.
00096 { 00097 d->explodeFactor = factor; 00098 }
1.5.1