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
22QT_BEGIN_NAMESPACE
23
24// Constants used in several files
25// Distance from camera to origin
26static const float cameraDistance = 6.0f;
27// Size of font to be used in label texture rendering. Doesn't affect the actual font size.
28static const int textureFontSize = 50;
29static const QVector3D zeroVector = QVector3D(0.0f, 0.0f, 0.0f);
30static const QVector3D upVector = QVector3D(0.0f, 1.0f, 0.0f);
31static const float itemAlpha = 0.0f;
32static const qreal gradientTextureHeight = 1.;
33// Default to 4096 just in case we don't get real max from rhi
34static 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
37static const QString hiddenLabelTag = QStringLiteral("õ");
38
39QT_END_NAMESPACE
40
41#endif
42

source code of qtgraphs/src/common/global/qgraphsglobal_p.h