Warning, file /graphics/kdiagram/src/KChart/Polar/KChartThreeDPieAttributes.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved. 0003 * 0004 * This file is part of the KD Chart library. 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #include "KChartThreeDPieAttributes.h" 0010 #include "KChartThreeDPieAttributes_p.h" 0011 0012 #include "KChartMath_p.h" 0013 0014 #include <QDebug> 0015 0016 #define d d_func() 0017 0018 using namespace KChart; 0019 0020 ThreeDPieAttributes::Private::Private() 0021 : useShadowColors( true ) 0022 { 0023 } 0024 0025 0026 ThreeDPieAttributes::ThreeDPieAttributes() 0027 : AbstractThreeDAttributes( new Private() ) 0028 { 0029 init(); 0030 } 0031 0032 ThreeDPieAttributes::ThreeDPieAttributes( const ThreeDPieAttributes& r ) 0033 : AbstractThreeDAttributes( new Private( *r.d) ) 0034 { 0035 } 0036 0037 ThreeDPieAttributes& ThreeDPieAttributes::operator= ( const ThreeDPieAttributes& r ) 0038 { 0039 if ( this == &r ) 0040 return *this; 0041 0042 *d = *r.d; 0043 0044 return *this; 0045 } 0046 0047 ThreeDPieAttributes::~ThreeDPieAttributes() 0048 { 0049 } 0050 0051 void ThreeDPieAttributes::init() 0052 { 0053 setDepth( -10 ); 0054 } 0055 0056 0057 bool ThreeDPieAttributes::operator==( const ThreeDPieAttributes& r ) const 0058 { 0059 return ( useShadowColors() == r.useShadowColors() && 0060 AbstractThreeDAttributes::operator==(r)); 0061 } 0062 0063 void ThreeDPieAttributes::setUseShadowColors( bool shadowColors ) 0064 { 0065 d->useShadowColors = shadowColors; 0066 } 0067 0068 bool ThreeDPieAttributes::useShadowColors() const 0069 { 0070 return d->useShadowColors; 0071 } 0072 0073 #if !defined(QT_NO_DEBUG_STREAM) 0074 QDebug operator<<(QDebug dbg, const KChart::ThreeDPieAttributes& a) 0075 { 0076 dbg << "KChart::ThreeDPieAttributes("; 0077 dbg = operator <<( dbg, static_cast<const AbstractThreeDAttributes&>(a) ); 0078 dbg << "useShadowColors="<< a.useShadowColors() << ")"; 0079 return dbg; 0080 } 0081 #endif /* QT_NO_DEBUG_STREAM */ 0082