KD Chart 2
[rev.2.8]
src
KDChart
Polar
KDChartPieAttributes.h
Go to the documentation of this file.
1
/****************************************************************************
2
** Copyright (C) 2001-2021 Klaralvdalens Datakonsult AB. All rights reserved.
3
**
4
** This file is part of the KD Chart library.
5
**
6
** Licensees holding valid commercial KD Chart licenses may use this file in
7
** accordance with the KD Chart Commercial License Agreement provided with
8
** the Software.
9
**
10
**
11
** This file may be distributed and/or modified under the terms of the
12
** GNU General Public License version 2 and version 3 as published by the
13
** Free Software Foundation and appearing in the file LICENSE.GPL.txt included.
14
**
15
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17
**
18
** Contact info@kdab.com if any conditions of this licensing are not
19
** clear to you.
20
**
21
**********************************************************************/
22
23
#ifndef KDCHART_PIE_ATTRIBUTES_H
24
#define KDCHART_PIE_ATTRIBUTES_H
25
26
#include <QMetaType>
27
#include "
KDChartAbstractThreeDAttributes.h
"
28
#include "
KDChartGlobal.h
"
29
30
namespace
KDChart
{
31
35
class
KDCHART_EXPORT
PieAttributes
36
{
37
public
:
38
PieAttributes
();
39
PieAttributes
(
const
PieAttributes
& );
40
PieAttributes
&operator= (
const
PieAttributes
& );
41
42
~
PieAttributes
();
43
55
void
setExplode(
bool
explode );
56
58
bool
explode()
const
;
59
66
void
setExplodeFactor( qreal factor );
67
69
qreal explodeFactor()
const
;
70
71
void
setGapFactor(
bool
circular, qreal factor );
72
qreal gapFactor(
bool
circular )
const
;
73
74
bool
operator==
(
const
PieAttributes
& )
const
;
75
inline
bool
operator!=
(
const
PieAttributes
& other )
const
{
return
!
operator==
(other); }
76
77
private
:
78
KDCHART_DECLARE_PRIVATE_BASE_VALUE
(
PieAttributes
)
79
};
// End of class PieAttributes
80
81
}
82
83
#if !defined(QT_NO_DEBUG_STREAM)
84
KDCHART_EXPORT QDebug
operator<<
(QDebug,
const
KDChart::PieAttributes
& );
85
#endif
/* QT_NO_DEBUG_STREAM */
86
87
KDCHART_DECLARE_SWAP_SPECIALISATION
(
KDChart::PieAttributes
)
88
89
QT_BEGIN_NAMESPACE
90
Q_DECLARE_TYPEINFO
(
KDChart::PieAttributes
, Q_MOVABLE_TYPE );
91
QT_END_NAMESPACE
92
93
Q_DECLARE_METATYPE(
KDChart::PieAttributes
)
94
95
#endif // KDCHART_PIE_ATTRIBUTES_H
operator<<
KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::PieAttributes &)
Definition:
KDChartPieAttributes.cpp:118
Q_DECLARE_TYPEINFO
QT_BEGIN_NAMESPACE Q_DECLARE_TYPEINFO(KDChart::PieAttributes, Q_MOVABLE_TYPE)
KDChartAbstractThreeDAttributes.h
KDChart
Definition:
KDChartAbstractCartesianDiagram.h:30
KDGantt::operator==
bool operator==(const Span &s1, const Span &s2)
Definition:
kdganttglobal.h:263
KDCHART_DECLARE_SWAP_SPECIALISATION
#define KDCHART_DECLARE_SWAP_SPECIALISATION(X)
Definition:
KDChartGlobal.h:148
KDChartGlobal.h
KDCHART_DECLARE_PRIVATE_BASE_VALUE
#define KDCHART_DECLARE_PRIVATE_BASE_VALUE(X)
Definition:
KDChartGlobal.h:71
KDChart::PieAttributes::operator!=
bool operator!=(const PieAttributes &other) const
Definition:
KDChartPieAttributes.h:75
KDChart::PieAttributes
A set of attributes controlling the appearance of pie charts.
Definition:
KDChartPieAttributes.h:36
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/