| 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 QGRAPHSGLOBAL_P_H |
| 15 | #define QGRAPHSGLOBAL_P_H |
| 16 | |
| 17 | #include <QtCore/qstringliteral.h> |
| 18 | #include <QtGraphs/qgraphsglobal.h> |
| 19 | #include <QtGraphs/qtgraphsexports.h> |
| 20 | #include <QtGui/qvector3d.h> |
| 21 | |
| 22 | QT_BEGIN_NAMESPACE |
| 23 | |
| 24 | // Constants used in several files |
| 25 | // Distance from camera to origin |
| 26 | static const float cameraDistance = 6.0f; |
| 27 | // Size of font to be used in label texture rendering. Doesn't affect the actual font size. |
| 28 | static const int textureFontSize = 50; |
| 29 | static const QVector3D zeroVector = QVector3D(0.0f, 0.0f, 0.0f); |
| 30 | static const QVector3D upVector = QVector3D(0.0f, 1.0f, 0.0f); |
| 31 | static const float itemAlpha = 0.0f; |
| 32 | static const qreal gradientTextureHeight = 1.; |
| 33 | // Default to 4096 just in case we don't get real max from rhi |
| 34 | static const qreal gradientTextureWidth = 4096.; |
| 35 | // Tag to be used to hide a log axis label when edgeLabelsVisible is set to false |
| 36 | // or when an item selection label should not be shown |
| 37 | static const QString hiddenLabelTag = QStringLiteral("õ" ); |
| 38 | |
| 39 | QT_END_NAMESPACE |
| 40 | |
| 41 | #endif |
| 42 | |