KChart
KChartPieDiagram.cpp
77 if ( !checkInvariants( true ) || model()->rowCount() < 1 ) return QPair<QPointF, QPointF>( QPointF( 0, 0 ), QPointF( 0, 0 ) );
88 const PieAttributes columnAttrs( pieAttributes( model()->index( 0, j, rootIndex() ) ) ); // checked
143 const qreal cellValue = qAbs( model()->data( model()->index( 0, iColumn, rootIndex() ) ) // checked
165 // if any slice explodes, the whole pie needs additional space so we make the basic size smaller
169 const PieAttributes columnAttrs( pieAttributes( model()->index( 0, j, rootIndex() ) ) ); // checked
180QRectF PieDiagram::twoDPieRect( const QRectF &contentsRect, const ThreeDPieAttributes& threeDAttrs ) const
368static QLineF labelAttachmentLine( const QPointF ¢er, const QPointF &start, const QPainterPath &label )
417 // make the line end at the rim of the slice (not 100% accurate because the line is not precisely radial)
431 if ( d->startAngles.isEmpty() || paintContext->rectangle().isEmpty() || valueTotals() == 0.0 ) {
483 // ### maybe move this into AbstractDiagram, also make ReverseMapper deal better with multiple polygons
627 PositionPoints points( center, northWest, north, northEast, east, southEast, south, southWest, west );
726 const int depth = threeDAttrs.depth() >= 0.0 ? threeDAttrs.depth() : -threeDAttrs.depth() / 100.0 * drawPosition.height();
QPen pen() const
Retrieve the pen to be used for painting datapoints globally.
Definition KChartAbstractDiagram.cpp:843
QBrush brush() const
Retrieve the brush to be used for painting datapoints globally.
Definition KChartAbstractDiagram.cpp:884
qreal granularity() const
Definition KChartAbstractPieDiagram.cpp:75
bool autoRotateLabels() const
Definition KChartAbstractPieDiagram.cpp:100
A set of attributes controlling the appearance of pie charts.
Definition KChartPieAttributes.h:22
bool isLabelCollisionAvoidanceEnabled() const
Return whether overlapping labels will be moved to until they don't overlap anymore.
Definition KChartPieDiagram.cpp:70
LabelDecorations labelDecorations() const
Return the decorations to be painted around data labels.
Definition KChartPieDiagram.cpp:60
void setLabelDecorations(LabelDecorations decorations)
Set the decorations to be painted around data labels according to decorations.
Definition KChartPieDiagram.cpp:55
virtual PieDiagram * clone() const
Creates an exact copy of this diagram.
Definition KChartPieDiagram.cpp:50
@ FrameDecoration
A rectangular frame is painted around the label text.
Definition KChartPieDiagram.h:44
@ LineFromSliceDecoration
A line is drawn from the pie slice to its label.
Definition KChartPieDiagram.h:45
void setLabelCollisionAvoidanceEnabled(bool enabled)
If enabled is set to true, labels that would overlap will be shuffled to avoid overlap.
Definition KChartPieDiagram.cpp:65
const QPair< QPointF, QPointF > calculateDataBoundaries() const override
\reimpl
Definition KChartPieDiagram.cpp:75
qreal startPosition() const
Retrieve the rotation of the coordinate plane.
Definition KChartPolarCoordinatePlane.cpp:226
Stores the absolute target points of a Position.
Definition KChartPosition.h:132
Q_SCRIPTABLE Q_NOREPLY void start()
QString path(const QString &relativePath)
QString label(StandardShortcut id)
QCA_EXPORT void init()
virtual int columnCount(const QModelIndex &parent) const const=0
QAbstractItemModel * model() const const
QModelIndex rootIndex() const const
QWidget * viewport() const const
const QColor & color() const const
QColor darker(int factor) const const
qreal dx() const const
qreal dy() const const
qreal length() const const
QPointF p1() const const
void setLength(qreal length)
void setP2(const QPointF &p2)
void append(QList< T > &&value)
T qobject_cast(QObject *object)
int depth() const const
Antialiasing
void drawEllipse(const QPoint ¢er, int rx, int ry)
void drawPolygon(const QPoint *points, int pointCount, Qt::FillRule fillRule)
void setBrush(Qt::BrushStyle style)
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
MoveToElement
QPainterPath::Element elementAt(int index) const const
int elementCount() const const
void setColor(const QColor &color)
qreal x() const const
qreal y() const const
int height() const const
int left() const const
int top() const const
int width() const const
qreal bottom() const const
QPointF center() const const
qreal height() const const
qreal left() const const
qreal right() const const
qreal top() const const
qreal width() const const
NoBrush
white
QTextStream & center(QTextStream &stream)
QTextStream & left(QTextStream &stream)
QTextStream & right(QTextStream &stream)
QRect contentsRect() const const
enabled
height
rect
void resize(const QSize &)
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.