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.
Binary file
@@ -0,0 +1,387 @@
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("Bars3D")
17
+
18
+ SectionLayout {
19
+ Label {
20
+ text: qsTr("multiSeriesUniform")
21
+ tooltip: qsTr("Multiseries Uniform")
22
+ Layout.fillWidth: true
23
+ }
24
+ SecondColumnLayout {
25
+ CheckBox {
26
+ backendValue: backendValues.multiSeriesUniform
27
+ Layout.fillWidth: true
28
+ }
29
+ }
30
+ Label {
31
+ text: qsTr("barThickness")
32
+ tooltip: qsTr("Bar Thickness Ratio")
33
+ Layout.fillWidth: true
34
+ }
35
+ SecondColumnLayout {
36
+ SpinBox {
37
+ backendValue: backendValues.barThickness
38
+ minimumValue: 0.01
39
+ maximumValue: 100.0
40
+ stepSize: 0.01
41
+ decimals: 2
42
+ Layout.fillWidth: true
43
+ }
44
+ }
45
+ Label {
46
+ text: qsTr("barSpacing")
47
+ tooltip: qsTr("Bar Spacing")
48
+ Layout.fillWidth: true
49
+ }
50
+ SecondColumnLayout {
51
+ SpinBox {
52
+ prefix: "col: "
53
+ backendValue: backendValues.barSpacing_width
54
+ minimumValue: 0.0
55
+ maximumValue: 10.0
56
+ stepSize: 0.01
57
+ decimals: 2
58
+ Layout.fillWidth: true
59
+ }
60
+ SpinBox {
61
+ prefix: "row: "
62
+ backendValue: backendValues.barSpacing_height
63
+ minimumValue: 0.0
64
+ maximumValue: 10.0
65
+ stepSize: 0.01
66
+ decimals: 2
67
+ Layout.fillWidth: true
68
+ }
69
+ }
70
+ Label {
71
+ text: qsTr("barSpacingRelative")
72
+ tooltip: qsTr("Bar Spacing Relative")
73
+ Layout.fillWidth: true
74
+ }
75
+ SecondColumnLayout {
76
+ CheckBox {
77
+ backendValue: backendValues.barSpacingRelative
78
+ Layout.fillWidth: true
79
+ }
80
+ }
81
+ Label {
82
+ text: qsTr("renderingMode")
83
+ tooltip: qsTr("Rendering Mode")
84
+ Layout.fillWidth: true
85
+ }
86
+ SecondColumnLayout {
87
+ ComboBox {
88
+ backendValue: backendValues.renderingMode
89
+ model: ["RenderIndirect", "RenderDirectToBackground",
90
+ "RenderDirectToBackground_NoClear"]
91
+ Layout.fillWidth: true
92
+ scope: "AbstractGraph3D"
93
+ }
94
+ }
95
+ Label {
96
+ text: qsTr("msaaSamples")
97
+ tooltip: qsTr("MSAA Sample Count")
98
+ Layout.fillWidth: true
99
+ }
100
+ SpinBox {
101
+ suffix: " x MSAA"
102
+ backendValue: backendValues.msaaSamples
103
+ minimumValue: 0
104
+ maximumValue: 16
105
+ Layout.fillWidth: true
106
+ }
107
+ Label {
108
+ text: qsTr("shadowQuality")
109
+ tooltip: qsTr("Shadow Quality")
110
+ Layout.fillWidth: true
111
+ }
112
+ SecondColumnLayout {
113
+ ComboBox {
114
+ backendValue: backendValues.shadowQuality
115
+ model: ["ShadowQualityNone", "ShadowQualityLow", "ShadowQualityMedium",
116
+ "ShadowQualityHigh", "ShadowQualitySoftLow", "ShadowQualitySoftMedium",
117
+ "ShadowQualitySoftHigh"]
118
+ Layout.fillWidth: true
119
+ scope: "AbstractGraph3D"
120
+ }
121
+ }
122
+ Label {
123
+ text: qsTr("selectionMode")
124
+ tooltip: qsTr("Selection Mode")
125
+ Layout.fillWidth: true
126
+ }
127
+ SecondColumnLayout {
128
+ id: selectionLayout
129
+ property bool isInModel: backendValue.isInModel;
130
+ property bool isInSubState: backendValue.isInSubState;
131
+ property bool selectionChangedFlag: selectionChanged
132
+ property variant backendValue: backendValues.selectionMode
133
+ property variant valueFromBackend: backendValue.value
134
+ property string enumScope: "AbstractGraph3D"
135
+ property string enumSeparator: " | "
136
+ property int checkedCount: 0
137
+ property bool selectionItem: false
138
+ property bool selectionRow: false
139
+ property bool selectionColumn: false
140
+ property bool selectionSlice: false
141
+ property bool selectionMulti: false
142
+
143
+ function checkValue(checkedVariable, variableText, expressionBase) {
144
+ var expressionStr = expressionBase
145
+ if (checkedVariable) {
146
+ if (expressionStr !== "") {
147
+ expressionStr += enumSeparator
148
+ }
149
+ expressionStr += enumScope
150
+ expressionStr += "."
151
+ expressionStr += variableText
152
+ checkedCount++
153
+ }
154
+ return expressionStr
155
+ }
156
+
157
+ function composeSelectionMode() {
158
+ var expressionStr = ""
159
+ checkedCount = 0
160
+ expressionStr = checkValue(selectionItem, "SelectionItem", expressionStr)
161
+ expressionStr = checkValue(selectionRow, "SelectionRow", expressionStr)
162
+ expressionStr = checkValue(selectionColumn, "SelectionColumn", expressionStr)
163
+ expressionStr = checkValue(selectionSlice, "SelectionSlice", expressionStr)
164
+ expressionStr = checkValue(selectionMulti, "SelectionMultiSeries", expressionStr)
165
+
166
+ if (checkedCount === 0)
167
+ backendValue.expression = enumScope + ".SelectionNone"
168
+ else
169
+ backendValue.expression = expressionStr
170
+ }
171
+
172
+ function evaluate() {
173
+ if (backendValue.value === undefined)
174
+ return
175
+
176
+ selectionItem = (backendValue.expression.indexOf("SelectionItem") !== -1)
177
+ selectionRow = (backendValue.expression.indexOf("SelectionRow") !== -1)
178
+ selectionColumn = (backendValue.expression.indexOf("SelectionColumn") !== -1)
179
+ selectionSlice = (backendValue.expression.indexOf("SelectionSlice") !== -1)
180
+ selectionMulti = (backendValue.expression.indexOf("SelectionMultiSeries") !== -1)
181
+
182
+ selectionItemBox.checked = selectionItem
183
+ selectionRowBox.checked = selectionRow
184
+ selectionColumnBox.checked = selectionColumn
185
+ selectionSliceBox.checked = selectionSlice
186
+ selectionMultiSeriesBox.checked = selectionMulti
187
+ }
188
+
189
+ onSelectionChangedFlagChanged: evaluate()
190
+
191
+ onIsInModelChanged: evaluate()
192
+
193
+ onIsInSubStateChanged: evaluate()
194
+
195
+ onBackendValueChanged: evaluate()
196
+
197
+ onValueFromBackendChanged: evaluate()
198
+
199
+ ColumnLayout {
200
+ anchors.fill: parent
201
+
202
+ Controls.CheckBox {
203
+ id: selectionItemBox
204
+ style: checkBox.style
205
+ text: "SelectionItem"
206
+ Layout.fillWidth: true
207
+ onClicked: {
208
+ selectionLayout.selectionItem = checked
209
+ selectionLayout.composeSelectionMode()
210
+ }
211
+ }
212
+ Controls.CheckBox {
213
+ id: selectionRowBox
214
+ style: checkBox.style
215
+ text: "SelectionRow"
216
+ Layout.fillWidth: true
217
+ onClicked: {
218
+ selectionLayout.selectionRow = checked
219
+ selectionLayout.composeSelectionMode()
220
+ }
221
+ }
222
+ Controls.CheckBox {
223
+ id: selectionColumnBox
224
+ style: checkBox.style
225
+ text: "SelectionColumn"
226
+ Layout.fillWidth: true
227
+ onClicked: {
228
+ selectionLayout.selectionColumn = checked
229
+ selectionLayout.composeSelectionMode()
230
+ }
231
+ }
232
+ Controls.CheckBox {
233
+ id: selectionSliceBox
234
+ style: checkBox.style
235
+ text: "SelectionSlice"
236
+ Layout.fillWidth: true
237
+ onClicked: {
238
+ selectionLayout.selectionSlice = checked
239
+ selectionLayout.composeSelectionMode()
240
+ }
241
+ }
242
+ Controls.CheckBox {
243
+ id: selectionMultiSeriesBox
244
+ style: checkBox.style
245
+ text: "SelectionMultiSeries"
246
+ Layout.fillWidth: true
247
+ onClicked: {
248
+ selectionLayout.selectionMulti = checked
249
+ selectionLayout.composeSelectionMode()
250
+ }
251
+ }
252
+ }
253
+ }
254
+ Label {
255
+ text: qsTr("measureFps")
256
+ tooltip: qsTr("Measure Frames Per Second")
257
+ Layout.fillWidth: true
258
+ }
259
+ SecondColumnLayout {
260
+ CheckBox {
261
+ backendValue: backendValues.measureFps
262
+ Layout.fillWidth: true
263
+ }
264
+ }
265
+ Label {
266
+ text: qsTr("orthoProjection")
267
+ tooltip: qsTr("Use Orthographic Projection")
268
+ Layout.fillWidth: true
269
+ }
270
+ SecondColumnLayout {
271
+ CheckBox {
272
+ backendValue: backendValues.orthoProjection
273
+ Layout.fillWidth: true
274
+ }
275
+ }
276
+ Label {
277
+ text: qsTr("aspectRatio")
278
+ tooltip: qsTr("Aspect Ratio")
279
+ Layout.fillWidth: true
280
+ }
281
+ SecondColumnLayout {
282
+ SpinBox {
283
+ backendValue: backendValues.aspectRatio
284
+ minimumValue: 0.01
285
+ maximumValue: 100.0
286
+ stepSize: 0.01
287
+ decimals: 2
288
+ Layout.fillWidth: true
289
+ }
290
+ }
291
+ Label {
292
+ text: qsTr("floorLevel")
293
+ tooltip: qsTr("Floor Level")
294
+ Layout.fillWidth: true
295
+ }
296
+ SecondColumnLayout {
297
+ LineEdit {
298
+ backendValue: backendValues.floorLevel
299
+ inputMethodHints: Qt.ImhFormattedNumbersOnly
300
+ Layout.fillWidth: true
301
+ }
302
+ }
303
+ Label {
304
+ text: qsTr("horizontalAspectRatio")
305
+ tooltip: qsTr("Horizontal Aspect Ratio")
306
+ Layout.fillWidth: true
307
+ }
308
+ SecondColumnLayout {
309
+ SpinBox {
310
+ backendValue: backendValues.horizontalAspectRatio
311
+ minimumValue: 0.0
312
+ maximumValue: 100.0
313
+ stepSize: 0.01
314
+ decimals: 2
315
+ Layout.fillWidth: true
316
+ }
317
+ }
318
+ Label {
319
+ text: qsTr("reflection")
320
+ tooltip: qsTr("Reflection")
321
+ Layout.fillWidth: true
322
+ }
323
+ SecondColumnLayout {
324
+ CheckBox {
325
+ id: reflectionCheckbox
326
+ backendValue: backendValues.reflection
327
+ Layout.fillWidth: true
328
+ }
329
+ }
330
+ Label {
331
+ text: qsTr("reflectivity")
332
+ tooltip: qsTr("Reflectivity")
333
+ Layout.fillWidth: true
334
+ visible: reflectionCheckbox.checked
335
+ }
336
+ SecondColumnLayout {
337
+ visible: reflectionCheckbox.checked
338
+ SpinBox {
339
+ backendValue: backendValues.reflectivity
340
+ minimumValue: 0.0
341
+ maximumValue: 1.0
342
+ stepSize: 0.01
343
+ decimals: 1
344
+ Layout.fillWidth: true
345
+ }
346
+ }
347
+ Label {
348
+ text: qsTr("margin")
349
+ tooltip: qsTr("Graph Margin")
350
+ Layout.fillWidth: true
351
+ }
352
+ SecondColumnLayout {
353
+ SpinBox {
354
+ backendValue: backendValues.margin
355
+ minimumValue: -1.0
356
+ maximumValue: 100.0
357
+ stepSize: 0.1
358
+ decimals: 1
359
+ Layout.fillWidth: true
360
+ }
361
+ }
362
+
363
+ // Kept for debugging
364
+ Label { }
365
+ SecondColumnLayout {
366
+ TextEdit {
367
+ id: debugLabel
368
+ Layout.fillWidth: true
369
+ wrapMode: TextEdit.WordWrap
370
+ textFormat: TextEdit.RichText
371
+ width: 400
372
+ visible: false
373
+ }
374
+ }
375
+ Controls.CheckBox {
376
+ property color textColor: colorLogic.textColor
377
+ id: checkBox
378
+ style: CustomCheckBoxStyle {}
379
+ visible: false
380
+ ColorLogic {
381
+ id: colorLogic
382
+ backendValue: backendValues.selectionMode
383
+ }
384
+ }
385
+ }
386
+ }
387
+ }
@@ -0,0 +1,183 @@
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
+
8
+ Column {
9
+ anchors.left: parent.left
10
+ anchors.right: parent.right
11
+
12
+ Section {
13
+ anchors.left: parent.left
14
+ anchors.right: parent.right
15
+ caption: qsTr("Scatter3D")
16
+
17
+ SectionLayout {
18
+ Label {
19
+ text: qsTr("renderingMode")
20
+ tooltip: qsTr("Rendering Mode")
21
+ Layout.fillWidth: true
22
+ }
23
+ SecondColumnLayout {
24
+ ComboBox {
25
+ backendValue: backendValues.renderingMode
26
+ model: ["RenderIndirect", "RenderDirectToBackground",
27
+ "RenderDirectToBackground_NoClear"]
28
+ Layout.fillWidth: true
29
+ scope: "AbstractGraph3D"
30
+ }
31
+ }
32
+ Label {
33
+ text: qsTr("msaaSamples")
34
+ tooltip: qsTr("MSAA Sample Count")
35
+ Layout.fillWidth: true
36
+ }
37
+ SpinBox {
38
+ suffix: " x MSAA"
39
+ backendValue: backendValues.msaaSamples
40
+ minimumValue: 0
41
+ maximumValue: 16
42
+ Layout.fillWidth: true
43
+ }
44
+ Label {
45
+ text: qsTr("shadowQuality")
46
+ tooltip: qsTr("Shadow Quality")
47
+ Layout.fillWidth: true
48
+ }
49
+ SecondColumnLayout {
50
+ ComboBox {
51
+ backendValue: backendValues.shadowQuality
52
+ model: ["ShadowQualityNone", "ShadowQualityLow", "ShadowQualityMedium",
53
+ "ShadowQualityHigh", "ShadowQualitySoftLow", "ShadowQualitySoftMedium",
54
+ "ShadowQualitySoftHigh"]
55
+ Layout.fillWidth: true
56
+ scope: "AbstractGraph3D"
57
+ }
58
+ }
59
+ Label {
60
+ text: qsTr("selectionMode")
61
+ tooltip: qsTr("Selection Mode")
62
+ Layout.fillWidth: true
63
+ }
64
+ SecondColumnLayout {
65
+ ComboBox {
66
+ backendValue: backendValues.selectionMode
67
+ model: ["SelectionNone", "SelectionItem"]
68
+ Layout.fillWidth: true
69
+ scope: "AbstractGraph3D"
70
+ }
71
+ }
72
+ Label {
73
+ text: qsTr("measureFps")
74
+ tooltip: qsTr("Measure Frames Per Second")
75
+ Layout.fillWidth: true
76
+ }
77
+ SecondColumnLayout {
78
+ CheckBox {
79
+ backendValue: backendValues.measureFps
80
+ Layout.fillWidth: true
81
+ }
82
+ }
83
+ Label {
84
+ text: qsTr("orthoProjection")
85
+ tooltip: qsTr("Use Orthographic Projection")
86
+ Layout.fillWidth: true
87
+ }
88
+ SecondColumnLayout {
89
+ CheckBox {
90
+ backendValue: backendValues.orthoProjection
91
+ Layout.fillWidth: true
92
+ }
93
+ }
94
+ Label {
95
+ text: qsTr("aspectRatio")
96
+ tooltip: qsTr("Horizontal to Vertical Aspect Ratio")
97
+ Layout.fillWidth: true
98
+ }
99
+ SecondColumnLayout {
100
+ SpinBox {
101
+ backendValue: backendValues.aspectRatio
102
+ minimumValue: 0.1
103
+ maximumValue: 10.0
104
+ stepSize: 0.1
105
+ decimals: 1
106
+ Layout.fillWidth: true
107
+ }
108
+ }
109
+ Label {
110
+ text: qsTr("optimizationHints")
111
+ tooltip: qsTr("Optimization Hints")
112
+ Layout.fillWidth: true
113
+ }
114
+ SecondColumnLayout {
115
+ ComboBox {
116
+ backendValue: backendValues.optimizationHints
117
+ model: ["OptimizationDefault", "OptimizationStatic"]
118
+ Layout.fillWidth: true
119
+ scope: "AbstractGraph3D"
120
+ }
121
+ }
122
+ Label {
123
+ text: qsTr("polar")
124
+ tooltip: qsTr("Use Polar Coordinates")
125
+ Layout.fillWidth: true
126
+ }
127
+ SecondColumnLayout {
128
+ CheckBox {
129
+ id: polarCheckbox
130
+ backendValue: backendValues.polar
131
+ Layout.fillWidth: true
132
+ }
133
+ }
134
+ Label {
135
+ text: qsTr("radialLabelOffset")
136
+ tooltip: qsTr("Radial Label Offset")
137
+ Layout.fillWidth: true
138
+ visible: polarCheckbox.checked
139
+ }
140
+ SecondColumnLayout {
141
+ visible: polarCheckbox.checked
142
+ SpinBox {
143
+ backendValue: backendValues.radialLabelOffset
144
+ minimumValue: 0.0
145
+ maximumValue: 1.0
146
+ stepSize: 0.01
147
+ decimals: 2
148
+ Layout.fillWidth: true
149
+ }
150
+ }
151
+ Label {
152
+ text: qsTr("horizontalAspectRatio")
153
+ tooltip: qsTr("Horizontal Aspect Ratio")
154
+ Layout.fillWidth: true
155
+ }
156
+ SecondColumnLayout {
157
+ SpinBox {
158
+ backendValue: backendValues.horizontalAspectRatio
159
+ minimumValue: 0.0
160
+ maximumValue: 100.0
161
+ stepSize: 0.01
162
+ decimals: 2
163
+ Layout.fillWidth: true
164
+ }
165
+ }
166
+ Label {
167
+ text: qsTr("margin")
168
+ tooltip: qsTr("Graph Margin")
169
+ Layout.fillWidth: true
170
+ }
171
+ SecondColumnLayout {
172
+ SpinBox {
173
+ backendValue: backendValues.margin
174
+ minimumValue: -1.0
175
+ maximumValue: 100.0
176
+ stepSize: 0.1
177
+ decimals: 1
178
+ Layout.fillWidth: true
179
+ }
180
+ }
181
+ }
182
+ }
183
+ }