File indexing completed on 2024-12-15 04:02:33

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 #ifndef KCHARTTHREEDBARATTRIBUTES_H
0010 #define KCHARTTHREEDBARATTRIBUTES_H
0011 
0012 #include <QMetaType>
0013 #include "KChartAbstractThreeDAttributes.h"
0014 #include "KChartGlobal.h"
0015 
0016 namespace KChart {
0017 
0018   /**
0019     * @brief A set of 3D bar attributes
0020     */
0021   class KCHART_EXPORT ThreeDBarAttributes : public AbstractThreeDAttributes
0022   {
0023   public:
0024     ThreeDBarAttributes();
0025     ThreeDBarAttributes( const ThreeDBarAttributes& );
0026     ThreeDBarAttributes &operator= ( const ThreeDBarAttributes& );
0027 
0028     ~ThreeDBarAttributes() override;
0029 
0030     /* threeD Bars specific */
0031     void setUseShadowColors( bool useShadowColors );
0032     bool useShadowColors() const;
0033 
0034     //Pending Michel I am not sure this will be used
0035     void setAngle( uint threeDAngle );
0036     uint angle() const;
0037 
0038     bool operator==( const ThreeDBarAttributes& ) const;
0039     inline bool operator!=( const ThreeDBarAttributes& other ) const { return !operator==(other); }
0040 
0041     KCHART_DECLARE_SWAP_DERIVED(ThreeDBarAttributes)
0042 
0043     KCHART_DECLARE_PRIVATE_DERIVED(ThreeDBarAttributes)
0044 
0045   }; // End of class ThreeDBarAttributes
0046 
0047 }
0048 
0049 #if !defined(QT_NO_DEBUG_STREAM)
0050 KCHART_EXPORT QDebug operator<<(QDebug, const KChart::ThreeDBarAttributes& );
0051 #endif /* QT_NO_DEBUG_STREAM */
0052 
0053 KCHART_DECLARE_SWAP_SPECIALISATION_DERIVED( KChart::ThreeDBarAttributes )
0054 
0055 QT_BEGIN_NAMESPACE
0056 Q_DECLARE_TYPEINFO( KChart::ThreeDBarAttributes, Q_MOVABLE_TYPE );
0057 QT_END_NAMESPACE
0058 
0059 Q_DECLARE_METATYPE( KChart::ThreeDBarAttributes )
0060 
0061 #endif // KCHARTTHREEDBARATTRIBUTES_H