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 GRAPHSGLOBAL_P_H
15#define GRAPHSGLOBAL_P_H
16
17#include "qgraphsglobal.h"
18#include <QtGui/qvector3d.h>
19
20QT_BEGIN_NAMESPACE
21
22// Constants used in several files
23// Distance from camera to origin
24static const float cameraDistance = 6.0f;
25// Size of font to be used in label texture rendering. Doesn't affect the actual font size.
26static const int textureFontSize = 50;
27static const QVector3D zeroVector = QVector3D(0.0f, 0.0f, 0.0f);
28static const QVector3D upVector = QVector3D(0.0f, 1.0f, 0.0f);
29static const float itemAlpha = 0.0f;
30static const qreal gradientTextureHeight = 1.;
31static const qreal gradientTextureWidth = 8192.;
32
33QT_END_NAMESPACE
34
35#endif
36

source code of qtgraphs/src/graphs/global/graphsglobal_p.h