KDChartThreeDLineAttributes.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Copyright (C) 2001-2011 Klaralvdalens Datakonsult AB.  All rights reserved.
00003 **
00004 ** This file is part of the KD Chart library.
00005 **
00006 ** Licensees holding valid commercial KD Chart licenses may use this file in
00007 ** accordance with the KD Chart Commercial License Agreement provided with
00008 ** the Software.
00009 **
00010 **
00011 ** This file may be distributed and/or modified under the terms of the
00012 ** GNU General Public License version 2 and version 3 as published by the
00013 ** Free Software Foundation and appearing in the file LICENSE.GPL.txt included.
00014 **
00015 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00016 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00017 **
00018 ** Contact info@kdab.com if any conditions of this licensing are not
00019 ** clear to you.
00020 **
00021 **********************************************************************/
00022 
00023 #include "KDChartThreeDLineAttributes.h"
00024 #include "KDChartThreeDLineAttributes_p.h"
00025 
00026 #include <QDebug>
00027 
00028 #include <KDABLibFakes>
00029 
00030 #define d d_func()
00031 
00032 using namespace KDChart;
00033 
00034 ThreeDLineAttributes::Private::Private()
00035     : lineXRotation( 15 ),
00036       lineYRotation( 15 )
00037 {
00038 }
00039 
00040 
00041 ThreeDLineAttributes::ThreeDLineAttributes()
00042     : AbstractThreeDAttributes( new Private() )
00043 {
00044 
00045 }
00046 
00047 ThreeDLineAttributes::ThreeDLineAttributes( const ThreeDLineAttributes& r )
00048     : AbstractThreeDAttributes( new Private( *r.d) )
00049 {
00050 }
00051 
00052 ThreeDLineAttributes& ThreeDLineAttributes::operator= ( const ThreeDLineAttributes& r )
00053 {
00054     if( this == &r )
00055         return *this;
00056 
00057     *d = *r.d;
00058 
00059     return *this;
00060 }
00061 
00062 ThreeDLineAttributes::~ThreeDLineAttributes()
00063 {
00064 }
00065 
00066 void ThreeDLineAttributes::init()
00067 {
00068 }
00069 
00070 
00071 bool ThreeDLineAttributes::operator==( const ThreeDLineAttributes& r ) const
00072 {
00073     return ( lineXRotation() == r.lineXRotation() &&
00074              lineYRotation() == r.lineYRotation() &&
00075              AbstractThreeDAttributes::operator==(r));
00076 }
00077 
00078 
00079 
00080 void ThreeDLineAttributes::setLineXRotation( const uint degrees )
00081 {
00082     d->lineXRotation = degrees;
00083 }
00084 
00085 uint ThreeDLineAttributes::lineXRotation() const
00086 {
00087     return d->lineXRotation;
00088 }
00089 
00090 void ThreeDLineAttributes::setLineYRotation( const uint degrees )
00091 {
00092     d->lineYRotation = degrees;
00093 }
00094 
00095 uint ThreeDLineAttributes::lineYRotation() const
00096 {
00097     return d->lineYRotation;
00098 }
00099 
00100 
00101 #if !defined(QT_NO_DEBUG_STREAM)
00102 
00103 QDebug operator<<(QDebug dbg, const KDChart::ThreeDLineAttributes& a)
00104 {
00105     dbg << "KDChart::ThreeDLineAttributes(";
00106     dbg = operator <<( dbg, static_cast<const AbstractThreeDAttributes&>(a) );
00107     dbg << " lineXRotation="<< a.lineXRotation()
00108         << " lineYRotation="<< a.lineYRotation()
00109         << ")";
00110     return dbg;
00111 }
00112 #endif /* QT_NO_DEBUG_STREAM */
00113 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-chart/