KChart

KChartThreeDLineAttributes.cpp
1/*
2 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3 *
4 * This file is part of the KD Chart library.
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#include "KChartThreeDLineAttributes.h"
10#include "KChartThreeDLineAttributes_p.h"
11
12#include "KChartMath_p.h"
13
14#include <QDebug>
15
16#define d d_func()
17
18using namespace KChart;
19
20ThreeDLineAttributes::Private::Private()
21 : lineXRotation( 15 ),
22 lineYRotation( 15 )
23{
24}
25
26
27ThreeDLineAttributes::ThreeDLineAttributes()
28 : AbstractThreeDAttributes( new Private() )
29{
30
31}
32
33ThreeDLineAttributes::ThreeDLineAttributes( const ThreeDLineAttributes& r )
34 : AbstractThreeDAttributes( new Private( *r.d) )
35{
36}
37
38ThreeDLineAttributes& ThreeDLineAttributes::operator= ( const ThreeDLineAttributes& r )
39{
40 if ( this == &r )
41 return *this;
42
43 *d = *r.d;
44
45 return *this;
46}
47
48ThreeDLineAttributes::~ThreeDLineAttributes()
49{
50}
51
52void ThreeDLineAttributes::init()
53{
54}
55
56
57bool ThreeDLineAttributes::operator==( const ThreeDLineAttributes& r ) const
58{
59 return ( lineXRotation() == r.lineXRotation() &&
60 lineYRotation() == r.lineYRotation() &&
61 AbstractThreeDAttributes::operator==(r));
62}
63
64
65
66void ThreeDLineAttributes::setLineXRotation( const uint degrees )
67{
68 d->lineXRotation = degrees;
69}
70
71uint ThreeDLineAttributes::lineXRotation() const
72{
73 return d->lineXRotation;
74}
75
76void ThreeDLineAttributes::setLineYRotation( const uint degrees )
77{
78 d->lineYRotation = degrees;
79}
80
81uint ThreeDLineAttributes::lineYRotation() const
82{
83 return d->lineYRotation;
84}
85
86
87#if !defined(QT_NO_DEBUG_STREAM)
88
90{
91 dbg << "KChart::ThreeDLineAttributes(";
92 dbg = operator <<( dbg, static_cast<const AbstractThreeDAttributes&>(a) );
93 dbg << " lineXRotation="<< a.lineXRotation()
94 << " lineYRotation="<< a.lineYRotation()
95 << ")";
96 return dbg;
97}
98#endif /* QT_NO_DEBUG_STREAM */
99
QDebug operator<<(QDebug dbg, const PerceptualColor::LchaDouble &value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.