KChart
9#include "KChartPieAttributes.h"
10#include "KChartPieAttributes_p.h"
12#include "KChartMath_p.h"
22PieAttributes::Private::Private()
23 : explodeFactor( 0.0 )
24 , tangentialGapFactor( 0.0 )
25 , radialGapFactor( 0.0 )
30PieAttributes::PieAttributes()
36 : _d( new Private( *r.d ) )
50PieAttributes::~PieAttributes()
52 delete _d; _d =
nullptr;
60 gapFactor(
true ) == r.gapFactor(
true ) &&
61 gapFactor(
false) == r.gapFactor(
false);
65void PieAttributes::init( )
72 d->explodeFactor = (enabled ? 0.1 : 0.0);
77 return (d->explodeFactor != 0.0);
82 d->explodeFactor = factor;
87 return d->explodeFactor;
90void PieAttributes::setGapFactor(
bool circular, qreal factor )
93 d->tangentialGapFactor = factor;
95 d->radialGapFactor = factor;
98qreal PieAttributes::gapFactor(
bool circular )
const
100 return circular ? d->tangentialGapFactor : d->radialGapFactor;
103#if !defined(QT_NO_DEBUG_STREAM)
104QDebug operator<<(QDebug dbg,
const KChart::PieAttributes& a)
106 dbg <<
"KChart::PieAttributes(";
A set of attributes controlling the appearance of pie charts.
qreal explodeFactor() const
void setExplodeFactor(qreal factor)
Set the explode factor.
void setExplode(bool explode)
Enable or disable exploding the respective pie piece(s).
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:24 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.