KChart

KChartAbstractThreeDAttributes.h
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#ifndef KCHARTABSTRACTTHREEDATTRIBUTES_H
10#define KCHARTABSTRACTTHREEDATTRIBUTES_H
11
12#include <QMetaType>
13#include "KChartGlobal.h"
14
15namespace KChart {
16
17/**
18 * @brief Base class for 3D attributes
19 */
20class KCHART_EXPORT AbstractThreeDAttributes
21{
22public:
26
27 virtual ~AbstractThreeDAttributes() = 0;
28
29 void setEnabled( bool enabled );
30 bool isEnabled() const;
31
32 void setDepth( qreal depth );
33 qreal depth() const;
34
35 // returns the depth(), if is isEnabled() is true, otherwise returns 0.0
36 qreal validDepth() const;
37
38 bool isThreeDBrushEnabled() const;
39 void setThreeDBrushEnabled( bool enabled );
40 virtual QBrush threeDBrush( const QBrush& brush, const QRectF& rect ) const;
41
42 bool operator==( const AbstractThreeDAttributes& ) const;
43 inline bool operator!=( const AbstractThreeDAttributes& other ) const { return !operator==(other); }
44
45 KCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC(AbstractThreeDAttributes)
46
47 KCHART_DECLARE_SWAP_BASE(AbstractThreeDAttributes)
48
49}; // End of class AbstractThreeDAttributes
50
51}
52
53#if !defined(QT_NO_DEBUG_STREAM)
54KCHART_EXPORT QDebug operator<<(QDebug, const KChart::AbstractThreeDAttributes& );
55#endif /* QT_NO_DEBUG_STREAM */
56
57
58
59#endif // KCHARTABSTRACTTHREEDATTRIBUTES_H
Contains KChart macros.
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.