KD Chart API Documentation  3.1
KDChartThreeDPieAttributes.cpp
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 
12 #include "KDChartThreeDPieAttributes_p.h"
13 
14 #include <QDebug>
15 
16 #include <KDABLibFakes>
17 
18 #define d d_func()
19 
20 using namespace KDChart;
21 
22 ThreeDPieAttributes::Private::Private()
23 {
24 }
25 
27  : AbstractThreeDAttributes(new Private())
28 {
29  init();
30 }
31 
33  : AbstractThreeDAttributes(new Private(*r.d))
34 {
35 }
36 
38 {
39  if (this == &r)
40  return *this;
41 
42  *d = *r.d;
43 
44  return *this;
45 }
46 
48 {
49 }
50 
51 void ThreeDPieAttributes::init()
52 {
53  setDepth(-10);
54 }
55 
57 {
58  return (useShadowColors() == r.useShadowColors() && AbstractThreeDAttributes::operator==(r));
59 }
60 
62 {
63  d->useShadowColors = shadowColors;
64 }
65 
67 {
68  return d->useShadowColors;
69 }
70 
71 #if !defined(QT_NO_DEBUG_STREAM)
72 QDebug operator<<(QDebug dbg, const KDChart::ThreeDPieAttributes &a)
73 {
74  dbg << "KDChart::ThreeDPieAttributes(";
75  dbg = operator<<(dbg, static_cast<const AbstractThreeDAttributes &>(a));
76  dbg << "useShadowColors=" << a.useShadowColors() << ")";
77  return dbg;
78 }
79 #endif /* QT_NO_DEBUG_STREAM */
bool operator==(const ThreeDPieAttributes &) const
void setUseShadowColors(bool useShadowColors)
ThreeDPieAttributes & operator=(const ThreeDPieAttributes &)
QDebug operator<<(QDebug stream, const DataDimension &r)

© 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 by doxygen 1.9.1