File indexing completed on 2024-05-12 15:54:20
0001 /* 0002 * Copyright (C) 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved. 0003 * 0004 * This file is part of the KD Chart library. 0005 * 0006 * This program is free software; you can redistribute it and/or 0007 * modify it under the terms of the GNU General Public License as 0008 * published by the Free Software Foundation; either version 2 of 0009 * the License, or (at your option) any later version. 0010 * 0011 * This program is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 * GNU General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU General Public License 0017 * along with this program. If not, see <https://www.gnu.org/licenses/>. 0018 */ 0019 0020 #ifndef KCHARTTHREEDLINEATTRIBUTES_H 0021 #define KCHARTTHREEDLINEATTRIBUTES_H 0022 0023 #include <QMetaType> 0024 #include "KChartAbstractThreeDAttributes.h" 0025 #include "KChartGlobal.h" 0026 0027 namespace KChart { 0028 0029 /** 0030 * @brief A set of 3D line attributes 0031 */ 0032 class KCHART_EXPORT ThreeDLineAttributes : public AbstractThreeDAttributes 0033 { 0034 public: 0035 ThreeDLineAttributes(); 0036 ThreeDLineAttributes( const ThreeDLineAttributes& ); 0037 ThreeDLineAttributes &operator= ( const ThreeDLineAttributes& ); 0038 0039 ~ThreeDLineAttributes(); 0040 0041 /* threeD lines specific */ 0042 void setLineXRotation( const uint degrees ); 0043 uint lineXRotation() const; 0044 void setLineYRotation( const uint degrees ); 0045 uint lineYRotation() const; 0046 0047 bool operator==( const ThreeDLineAttributes& ) const; 0048 inline bool operator!=( const ThreeDLineAttributes& other ) const { return !operator==(other); } 0049 0050 KCHART_DECLARE_SWAP_DERIVED(ThreeDLineAttributes) 0051 0052 KCHART_DECLARE_PRIVATE_DERIVED(ThreeDLineAttributes) 0053 0054 }; // End of class ThreeDLineAttributes 0055 0056 } 0057 0058 #if !defined(QT_NO_DEBUG_STREAM) 0059 KCHART_EXPORT QDebug operator<<(QDebug, const KChart::ThreeDLineAttributes& ); 0060 #endif /* QT_NO_DEBUG_STREAM */ 0061 0062 KCHART_DECLARE_SWAP_SPECIALISATION_DERIVED( KChart::ThreeDLineAttributes ) 0063 0064 QT_BEGIN_NAMESPACE 0065 Q_DECLARE_TYPEINFO( KChart::ThreeDLineAttributes, Q_MOVABLE_TYPE ); 0066 QT_END_NAMESPACE 0067 0068 Q_DECLARE_METATYPE( KChart::ThreeDLineAttributes ) 0069 0070 #endif // KCHARTTHREEDLINEATTRIBUTES_H