PyQt6-DataVisualization-Qt6 6.8.1__py3-none-win_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,324 @@
1
+ // Copyright (C) 2016 The Qt Company Ltd.
2
+ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
+
4
+ import QtQuick 2.0
5
+ import HelperWidgets 2.0
6
+ import QtQuick.Layouts 1.0
7
+ import QtQuick.Controls 1.1 as Controls
8
+
9
+ Column {
10
+ anchors.left: parent.left
11
+ anchors.right: parent.right
12
+
13
+ Section {
14
+ anchors.left: parent.left
15
+ anchors.right: parent.right
16
+ caption: qsTr("Surface3D")
17
+
18
+ SectionLayout {
19
+ Label {
20
+ text: qsTr("renderingMode")
21
+ tooltip: qsTr("Rendering Mode")
22
+ Layout.fillWidth: true
23
+ }
24
+ SecondColumnLayout {
25
+ ComboBox {
26
+ backendValue: backendValues.renderingMode
27
+ model: ["RenderIndirect", "RenderDirectToBackground",
28
+ "RenderDirectToBackground_NoClear"]
29
+ Layout.fillWidth: true
30
+ scope: "AbstractGraph3D"
31
+ }
32
+ }
33
+ Label {
34
+ text: qsTr("msaaSamples")
35
+ tooltip: qsTr("MSAA Sample Count")
36
+ Layout.fillWidth: true
37
+ }
38
+ SpinBox {
39
+ suffix: " x MSAA"
40
+ backendValue: backendValues.msaaSamples
41
+ minimumValue: 0
42
+ maximumValue: 16
43
+ Layout.fillWidth: true
44
+ }
45
+ Label {
46
+ text: qsTr("shadowQuality")
47
+ tooltip: qsTr("Shadow Quality")
48
+ Layout.fillWidth: true
49
+ }
50
+ SecondColumnLayout {
51
+ ComboBox {
52
+ backendValue: backendValues.shadowQuality
53
+ model: ["ShadowQualityNone", "ShadowQualityLow", "ShadowQualityMedium",
54
+ "ShadowQualityHigh", "ShadowQualitySoftLow", "ShadowQualitySoftMedium",
55
+ "ShadowQualitySoftHigh"]
56
+ Layout.fillWidth: true
57
+ scope: "AbstractGraph3D"
58
+ }
59
+ }
60
+ Label {
61
+ text: qsTr("selectionMode")
62
+ tooltip: qsTr("Selection Mode")
63
+ Layout.fillWidth: true
64
+ }
65
+ SecondColumnLayout {
66
+ id: selectionLayout
67
+ property bool isInModel: backendValue.isInModel;
68
+ property bool isInSubState: backendValue.isInSubState;
69
+ property bool selectionChangedFlag: selectionChanged
70
+ property variant backendValue: backendValues.selectionMode
71
+ property variant valueFromBackend: backendValue.value
72
+ property string enumScope: "AbstractGraph3D"
73
+ property string enumSeparator: " | "
74
+ property int checkedCount: 0
75
+ property bool selectionItem: false
76
+ property bool selectionRow: false
77
+ property bool selectionColumn: false
78
+ property bool selectionSlice: false
79
+ property bool selectionMulti: false
80
+
81
+ function checkValue(checkedVariable, variableText, expressionBase) {
82
+ var expressionStr = expressionBase
83
+ if (checkedVariable) {
84
+ if (expressionStr !== "") {
85
+ expressionStr += enumSeparator
86
+ }
87
+ expressionStr += enumScope
88
+ expressionStr += "."
89
+ expressionStr += variableText
90
+ checkedCount++
91
+ }
92
+ return expressionStr
93
+ }
94
+
95
+ function composeSelectionMode() {
96
+ var expressionStr = ""
97
+ checkedCount = 0
98
+ expressionStr = checkValue(selectionItem, "SelectionItem", expressionStr)
99
+ expressionStr = checkValue(selectionRow, "SelectionRow", expressionStr)
100
+ expressionStr = checkValue(selectionColumn, "SelectionColumn", expressionStr)
101
+ expressionStr = checkValue(selectionSlice, "SelectionSlice", expressionStr)
102
+ expressionStr = checkValue(selectionMulti, "SelectionMultiSeries", expressionStr)
103
+
104
+ if (checkedCount === 0)
105
+ backendValue.expression = enumScope + ".SelectionNone"
106
+ else
107
+ backendValue.expression = expressionStr
108
+ }
109
+
110
+ function evaluate() {
111
+ if (backendValue.value === undefined)
112
+ return
113
+
114
+ selectionItem = (backendValue.expression.indexOf("SelectionItem") !== -1)
115
+ selectionRow = (backendValue.expression.indexOf("SelectionRow") !== -1)
116
+ selectionColumn = (backendValue.expression.indexOf("SelectionColumn") !== -1)
117
+ selectionSlice = (backendValue.expression.indexOf("SelectionSlice") !== -1)
118
+ selectionMulti = (backendValue.expression.indexOf("SelectionMultiSeries") !== -1)
119
+
120
+ selectionItemBox.checked = selectionItem
121
+ selectionRowBox.checked = selectionRow
122
+ selectionColumnBox.checked = selectionColumn
123
+ selectionSliceBox.checked = selectionSlice
124
+ selectionMultiSeriesBox.checked = selectionMulti
125
+ }
126
+
127
+ onSelectionChangedFlagChanged: evaluate()
128
+
129
+ onIsInModelChanged: evaluate()
130
+
131
+ onIsInSubStateChanged: evaluate()
132
+
133
+ onBackendValueChanged: evaluate()
134
+
135
+ onValueFromBackendChanged: evaluate()
136
+
137
+ ColumnLayout {
138
+ anchors.fill: parent
139
+
140
+ Controls.CheckBox {
141
+ id: selectionItemBox
142
+ style: checkBox.style
143
+ text: "SelectionItem"
144
+ Layout.fillWidth: true
145
+ onClicked: {
146
+ selectionLayout.selectionItem = checked
147
+ selectionLayout.composeSelectionMode()
148
+ }
149
+ }
150
+ Controls.CheckBox {
151
+ id: selectionRowBox
152
+ style: checkBox.style
153
+ text: "SelectionRow"
154
+ Layout.fillWidth: true
155
+ onClicked: {
156
+ selectionLayout.selectionRow = checked
157
+ selectionLayout.composeSelectionMode()
158
+ }
159
+ }
160
+ Controls.CheckBox {
161
+ id: selectionColumnBox
162
+ style: checkBox.style
163
+ text: "SelectionColumn"
164
+ Layout.fillWidth: true
165
+ onClicked: {
166
+ selectionLayout.selectionColumn = checked
167
+ selectionLayout.composeSelectionMode()
168
+ }
169
+ }
170
+ Controls.CheckBox {
171
+ id: selectionSliceBox
172
+ style: checkBox.style
173
+ text: "SelectionSlice"
174
+ Layout.fillWidth: true
175
+ onClicked: {
176
+ selectionLayout.selectionSlice = checked
177
+ selectionLayout.composeSelectionMode()
178
+ }
179
+ }
180
+ Controls.CheckBox {
181
+ id: selectionMultiSeriesBox
182
+ style: checkBox.style
183
+ text: "SelectionMultiSeries"
184
+ Layout.fillWidth: true
185
+ onClicked: {
186
+ selectionLayout.selectionMulti = checked
187
+ selectionLayout.composeSelectionMode()
188
+ }
189
+ }
190
+ }
191
+ }
192
+ Label {
193
+ text: qsTr("measureFps")
194
+ tooltip: qsTr("Measure Frames Per Second")
195
+ Layout.fillWidth: true
196
+ }
197
+ SecondColumnLayout {
198
+ CheckBox {
199
+ backendValue: backendValues.measureFps
200
+ Layout.fillWidth: true
201
+ }
202
+ }
203
+ Label {
204
+ text: qsTr("orthoProjection")
205
+ tooltip: qsTr("Use Orthographic Projection")
206
+ Layout.fillWidth: true
207
+ }
208
+ SecondColumnLayout {
209
+ CheckBox {
210
+ backendValue: backendValues.orthoProjection
211
+ Layout.fillWidth: true
212
+ }
213
+ }
214
+ Label {
215
+ text: qsTr("aspectRatio")
216
+ tooltip: qsTr("Horizontal to Vertical Aspect Ratio")
217
+ Layout.fillWidth: true
218
+ }
219
+ SecondColumnLayout {
220
+ SpinBox {
221
+ backendValue: backendValues.aspectRatio
222
+ minimumValue: 0.1
223
+ maximumValue: 10.0
224
+ stepSize: 0.1
225
+ decimals: 1
226
+ Layout.fillWidth: true
227
+ }
228
+ }
229
+ Label {
230
+ text: qsTr("flipHorizontalGrid")
231
+ tooltip: qsTr("Flip Horizontal Grid")
232
+ Layout.fillWidth: true
233
+ }
234
+ SecondColumnLayout {
235
+ CheckBox {
236
+ backendValue: backendValues.flipHorizontalGrid
237
+ Layout.fillWidth: true
238
+ }
239
+ }
240
+ Label {
241
+ text: qsTr("polar")
242
+ tooltip: qsTr("Use Polar Coordinates")
243
+ Layout.fillWidth: true
244
+ }
245
+ SecondColumnLayout {
246
+ CheckBox {
247
+ id: polarCheckbox
248
+ backendValue: backendValues.polar
249
+ Layout.fillWidth: true
250
+ }
251
+ }
252
+ Label {
253
+ text: qsTr("radialLabelOffset")
254
+ tooltip: qsTr("Radial Label Offset")
255
+ Layout.fillWidth: true
256
+ visible: polarCheckbox.checked
257
+ }
258
+ SecondColumnLayout {
259
+ visible: polarCheckbox.checked
260
+ SpinBox {
261
+ backendValue: backendValues.radialLabelOffset
262
+ minimumValue: 0.0
263
+ maximumValue: 1.0
264
+ stepSize: 0.01
265
+ decimals: 2
266
+ Layout.fillWidth: true
267
+ }
268
+ }
269
+ Label {
270
+ text: qsTr("horizontalAspectRatio")
271
+ tooltip: qsTr("Horizontal Aspect Ratio")
272
+ Layout.fillWidth: true
273
+ }
274
+ SecondColumnLayout {
275
+ SpinBox {
276
+ backendValue: backendValues.horizontalAspectRatio
277
+ minimumValue: 0.0
278
+ maximumValue: 100.0
279
+ stepSize: 0.01
280
+ decimals: 2
281
+ Layout.fillWidth: true
282
+ }
283
+ }
284
+ Label {
285
+ text: qsTr("margin")
286
+ tooltip: qsTr("Graph Margin")
287
+ Layout.fillWidth: true
288
+ }
289
+ SecondColumnLayout {
290
+ SpinBox {
291
+ backendValue: backendValues.margin
292
+ minimumValue: -1.0
293
+ maximumValue: 100.0
294
+ stepSize: 0.1
295
+ decimals: 1
296
+ Layout.fillWidth: true
297
+ }
298
+ }
299
+
300
+ // Kept for debugging
301
+ Label { }
302
+ SecondColumnLayout {
303
+ TextEdit {
304
+ id: debugLabel
305
+ Layout.fillWidth: true
306
+ wrapMode: TextEdit.WordWrap
307
+ textFormat: TextEdit.RichText
308
+ width: 400
309
+ visible: false
310
+ }
311
+ }
312
+ Controls.CheckBox {
313
+ property color textColor: colorLogic.textColor
314
+ id: checkBox
315
+ style: CustomCheckBoxStyle {}
316
+ visible: false
317
+ ColorLogic {
318
+ id: colorLogic
319
+ backendValue: backendValues.selectionMode
320
+ }
321
+ }
322
+ }
323
+ }
324
+ }
@@ -0,0 +1,23 @@
1
+ // Copyright (C) 2016 The Qt Company Ltd.
2
+ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
+
4
+ import QtQuick 2.0
5
+ import QtDataVisualization 1.2
6
+
7
+ Bars3D {
8
+ width: 300
9
+ height: 300
10
+ Bar3DSeries {
11
+ ItemModelBarDataProxy {
12
+ itemModel: ListModel {
13
+ ListElement{ row: "row 1"; column: "column 1"; value: "1"; }
14
+ ListElement{ row: "row 1"; column: "column 2"; value: "2"; }
15
+ ListElement{ row: "row 1"; column: "column 3"; value: "3"; }
16
+ }
17
+
18
+ rowRole: "row"
19
+ columnRole: "column"
20
+ valueRole: "value"
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,23 @@
1
+ // Copyright (C) 2016 The Qt Company Ltd.
2
+ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
+
4
+ import QtQuick 2.0
5
+ import QtDataVisualization 1.2
6
+
7
+ Scatter3D {
8
+ width: 300
9
+ height: 300
10
+ Scatter3DSeries {
11
+ ItemModelScatterDataProxy {
12
+ itemModel: ListModel {
13
+ ListElement{ x: "1"; y: "2"; z: "3"; }
14
+ ListElement{ x: "2"; y: "3"; z: "4"; }
15
+ ListElement{ x: "3"; y: "4"; z: "1"; }
16
+ }
17
+
18
+ xPosRole: "x"
19
+ yPosRole: "y"
20
+ zPosRole: "z"
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,24 @@
1
+ // Copyright (C) 2016 The Qt Company Ltd.
2
+ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
+
4
+ import QtQuick 2.0
5
+ import QtDataVisualization 1.2
6
+
7
+ Surface3D {
8
+ width: 300
9
+ height: 300
10
+ Surface3DSeries {
11
+ ItemModelSurfaceDataProxy {
12
+ itemModel: ListModel {
13
+ ListElement{ row: "1"; column: "1"; y: "1"; }
14
+ ListElement{ row: "1"; column: "2"; y: "2"; }
15
+ ListElement{ row: "2"; column: "1"; y: "3"; }
16
+ ListElement{ row: "2"; column: "2"; y: "4"; }
17
+ }
18
+
19
+ rowRole: "row"
20
+ columnRole: "column"
21
+ yPosRole: "y"
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,44 @@
1
+ MetaInfo {
2
+ Type {
3
+ name: "QtDataVisualization.Bars3D"
4
+ icon: "images/bars3d-icon16.png"
5
+
6
+ ItemLibraryEntry {
7
+ name: "Bars3D"
8
+ category: "Qt Data Visualization"
9
+ libraryIcon: "images/bars3d-icon.png"
10
+ version: "1.0"
11
+ requiredImport: "QtDataVisualization"
12
+
13
+ QmlSource { source: "default/Bars3D.qml" }
14
+ }
15
+ }
16
+ Type {
17
+ name: "QtDataVisualization.Scatter3D"
18
+ icon: "images/scatter3d-icon16.png"
19
+
20
+ ItemLibraryEntry {
21
+ name: "Scatter3D"
22
+ category: "Qt Data Visualization"
23
+ libraryIcon: "images/scatter3d-icon.png"
24
+ version: "1.0"
25
+ requiredImport: "QtDataVisualization"
26
+
27
+ QmlSource { source: "default/Scatter3D.qml" }
28
+ }
29
+ }
30
+ Type {
31
+ name: "QtDataVisualization.Surface3D"
32
+ icon: "images/surface3d-icon16.png"
33
+
34
+ ItemLibraryEntry {
35
+ name: "Surface3D"
36
+ category: "Qt Data Visualization"
37
+ libraryIcon: "images/surface3d-icon.png"
38
+ version: "1.0"
39
+ requiredImport: "QtDataVisualization"
40
+
41
+ QmlSource { source: "default/Surface3D.qml" }
42
+ }
43
+ }
44
+ }