KD Chart API Documentation  3.1
KDChartAbstractThreeDAttributes.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** This file is part of the KD Chart library.
4 **
5 ** SPDX-FileCopyrightText: 2001 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: MIT
8 **
9 ****************************************************************************/
10 
11 #ifndef KDCHARTABSTRACTTHREEDATTRIBUTES_H
12 #define KDCHARTABSTRACTTHREEDATTRIBUTES_H
13 
14 #include "KDChartGlobal.h"
15 #include <QMetaType>
16 
17 namespace KDChart {
18 
22 class KDCHART_EXPORT AbstractThreeDAttributes
23 {
24 public:
28 
29  virtual ~AbstractThreeDAttributes() = 0;
30 
31  void setEnabled(bool enabled);
32  bool isEnabled() const;
33 
34  void setDepth(qreal depth);
35  qreal depth() const;
36 
37  // returns the depth(), if is isEnabled() is true, otherwise returns 0.0
38  qreal validDepth() const;
39 
40  bool isThreeDBrushEnabled() const;
41  void setThreeDBrushEnabled(bool enabled);
42  virtual QBrush threeDBrush(const QBrush &brush, const QRectF &rect) const;
43 
44  bool operator==(const AbstractThreeDAttributes &) const;
45  inline bool operator!=(const AbstractThreeDAttributes &other) const
46  {
47  return !operator==(other);
48  }
49 
51 
53 
54 }; // End of class AbstractThreeDAttributes
55 }
56 
57 #if !defined(QT_NO_DEBUG_STREAM)
58 KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::AbstractThreeDAttributes &);
59 #endif /* QT_NO_DEBUG_STREAM */
60 
61 #endif // KDCHARTABSTRACTTHREEDATTRIBUTES_H
KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::AbstractThreeDAttributes &)
Contains KDChart macros.
#define KDCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC(X)
Definition: KDChartGlobal.h:87
#define KDCHART_DECLARE_SWAP_BASE(X)
bool operator!=(const AbstractThreeDAttributes &other) const
bool operator==(const TickInfo &, const TickInfo &)

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated by doxygen 1.9.1