23 #ifndef KDCHARTRINGDIAGRAM_H 24 #define KDCHARTRINGDIAGRAM_H 51 void resize(
const QSizeF& area )
override;
55 qreal valueTotals()
const override;
57 qreal numberOfValuesPerDataset()
const override;
58 qreal numberOfDatasets()
const override;
60 qreal numberOfGridRings()
const override;
62 qreal valueTotals(
int dataset )
const;
71 void setRelativeThickness(
bool relativeThickness );
72 bool relativeThickness()
const;
74 virtual void setExpandWhenExploded(
bool expand );
75 virtual bool expandWhenExploded()
const;
80 void paintEvent( QPaintEvent* )
override;
81 void resizeEvent( QResizeEvent* )
override;
84 void drawOneSlice( QPainter* painter, uint dataset, uint slice, qreal granularity );
85 void drawPieSurface( QPainter* painter, uint dataset, uint slice, qreal granularity );
86 QPointF pointOnEllipse(
const QRectF& rect,
int dataset,
int slice,
bool outer, qreal angle,
87 qreal totalGapFactor, qreal totalExplodeFactor );
92 #endif // KDCHARTRINGDIAGRAM_H
Stores information about painting diagrams.
Base class for any diagram type.
#define KDCHART_DECLARE_DERIVED_DIAGRAM(X, PLANE)
RingDiagram defines a common ring diagram.