1 | // Copyright (C) 2023 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | // |
5 | // W A R N I N G |
6 | // ------------- |
7 | // |
8 | // This file is not part of the QtGraphs API. It exists purely as an |
9 | // implementation detail. This header file may change from version to |
10 | // version without notice, or even be removed. |
11 | // |
12 | // We mean it. |
13 | |
14 | #ifndef QQUICKGRAPHSTEXTUREDATA_P_H |
15 | #define QQUICKGRAPHSTEXTUREDATA_P_H |
16 | #include <QLinearGradient> |
17 | #include <QList> |
18 | #include <QtQuick3D/qquick3dtexturedata.h> |
19 | |
20 | class QQuickGraphsTextureData : public QQuick3DTextureData |
21 | { |
22 | Q_OBJECT |
23 | |
24 | public: |
25 | QQuickGraphsTextureData(); |
26 | ~QQuickGraphsTextureData(); |
27 | |
28 | void createGradient(QLinearGradient gradient); |
29 | |
30 | private: |
31 | QColor linearInterpolate(QColor startColor, QColor endColor, float value); |
32 | }; |
33 | |
34 | #endif // QQUICKGRAPHSTEXTUREDATA_P_H |
35 |