KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
KDChartAbstractPieDiagram.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** This file is part of the KD Chart library.
4**
5** SPDX-FileCopyrightText: 2001 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6**
7** SPDX-License-Identifier: MIT
8**
9****************************************************************************/
10
11#ifndef KDCHARTABSTRACTPIEDIAGRAM_H
12#define KDCHARTABSTRACTPIEDIAGRAM_H
13
15
16namespace KDChart {
17class PieAttributes;
18class ThreeDPieAttributes;
19
23class KDCHART_EXPORT AbstractPieDiagram : public AbstractPolarDiagram
24{
25 Q_OBJECT
26
27 Q_DISABLE_COPY(AbstractPieDiagram)
29
30public:
31 explicit AbstractPieDiagram(
32 QWidget *parent = nullptr, PolarCoordinatePlane *plane = nullptr);
33 ~AbstractPieDiagram() override;
34
38 bool compare(const AbstractPieDiagram *other) const;
39
45 void setGranularity(qreal value);
46
48 qreal granularity() const;
49
51 Q_DECL_DEPRECATED void setStartPosition(int degrees);
53 Q_DECL_DEPRECATED int startPosition() const;
54
58 void setAutoRotateLabels(bool autoRotate);
61 bool autoRotateLabels() const;
62
63 void setPieAttributes(const PieAttributes &a);
64 void setPieAttributes(int column,
65 const PieAttributes &a);
66 void setPieAttributes(const QModelIndex &index,
67 const PieAttributes &a);
68 PieAttributes pieAttributes() const;
69 PieAttributes pieAttributes(int column) const;
70 PieAttributes pieAttributes(const QModelIndex &index) const;
71
72 void setThreeDPieAttributes(const ThreeDPieAttributes &a);
73 void setThreeDPieAttributes(int column,
74 const ThreeDPieAttributes &a);
75 void setThreeDPieAttributes(const QModelIndex &index,
76 const ThreeDPieAttributes &a);
77 ThreeDPieAttributes threeDPieAttributes() const;
78 ThreeDPieAttributes threeDPieAttributes(int column) const;
79 ThreeDPieAttributes threeDPieAttributes(const QModelIndex &index) const;
80}; // End of class KDChartAbstractPieDiagram
81}
82
83#endif // KDCHARTABSTACTPIEDIAGRAM_H
#define KDCHART_DECLARE_DERIVED_DIAGRAM(X, PLANE)
Base class for any diagram type.
Base class for diagrams based on a polar coordinate system.
A set of attributes controlling the appearance of pie charts.

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated on Wed May 1 2024 00:01:10 for KD Chart API Documentation by doxygen 1.9.8