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

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

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