1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3#ifndef QGRAPHS3DNAMESPACE_H
4#define QGRAPHS3DNAMESPACE_H
5#include <QtCore/qobjectdefs.h>
6#include <QtGraphs/qtgraphsexports.h>
7#include <QtQmlIntegration/qqmlintegration.h>
8
9QT_BEGIN_NAMESPACE
10
11namespace QtGraphs3D {
12
13Q_NAMESPACE_EXPORT(Q_GRAPHS_EXPORT)
14QML_NAMED_ELEMENT(Graphs3D)
15
16enum class SelectionFlag {
17 None = 0x00,
18 Item = 0x01,
19 Row = 0x02,
20 ItemAndRow = Item | Row,
21 Column = 0x04,
22 ItemAndColumn = Item | Column,
23 RowAndColumn = Row | Column,
24 ItemRowAndColumn = Item | Row | Column,
25 Slice = 0x08,
26 MultiSeries = 0x10,
27};
28Q_FLAG_NS(SelectionFlag)
29Q_DECLARE_FLAGS(SelectionFlags, SelectionFlag)
30
31enum class ShadowQuality {
32 None,
33 Low,
34 Medium,
35 High,
36 SoftLow,
37 SoftMedium,
38 SoftHigh,
39};
40Q_ENUM_NS(ShadowQuality)
41
42enum class ElementType {
43 None,
44 Series,
45 AxisXLabel,
46 AxisYLabel,
47 AxisZLabel,
48 CustomItem,
49};
50Q_ENUM_NS(ElementType)
51
52enum class OptimizationHint {
53 Default,
54 Legacy,
55};
56Q_ENUM_NS(OptimizationHint)
57
58enum class RenderingMode {
59 DirectToBackground,
60 Indirect,
61};
62Q_ENUM_NS(RenderingMode)
63
64enum class CameraPreset {
65 NoPreset,
66 FrontLow,
67 Front,
68 FrontHigh,
69 LeftLow,
70 Left,
71 LeftHigh,
72 RightLow,
73 Right,
74 RightHigh,
75 BehindLow,
76 Behind,
77 BehindHigh,
78 IsometricLeft,
79 IsometricLeftHigh,
80 IsometricRight,
81 IsometricRightHigh,
82 DirectlyAbove,
83 DirectlyAboveCW45,
84 DirectlyAboveCCW45,
85 FrontBelow,
86 LeftBelow,
87 RightBelow,
88 BehindBelow,
89 DirectlyBelow,
90};
91Q_ENUM_NS(CameraPreset)
92
93enum class GridLineType { Shader, Geometry };
94Q_ENUM_NS(GridLineType)
95
96} // namespace QtGraphs3D
97Q_DECLARE_OPERATORS_FOR_FLAGS(QtGraphs3D::SelectionFlags)
98
99QT_END_NAMESPACE
100
101#endif // QGRAPHS3DNAMESPACE_H
102

Provided by KDAB

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

source code of qtgraphs/src/graphs3d/utils/qgraphs3dnamespace.h