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