winrt-Windows.Perception.Spatial.Surfaces 2.2.0__tar.gz → 3.0.0__tar.gz
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.
- {winrt_windows_perception_spatial_surfaces-2.2.0 → winrt_windows_perception_spatial_surfaces-3.0.0}/PKG-INFO +9 -9
- winrt_windows_perception_spatial_surfaces-3.0.0/all-requirements.txt +8 -0
- {winrt_windows_perception_spatial_surfaces-2.2.0 → winrt_windows_perception_spatial_surfaces-3.0.0}/py.Windows.Perception.Spatial.Surfaces.cpp +240 -101
- {winrt_windows_perception_spatial_surfaces-2.2.0 → winrt_windows_perception_spatial_surfaces-3.0.0}/pyproject.toml +2 -2
- winrt_windows_perception_spatial_surfaces-3.0.0/pywinrt-version.txt +1 -0
- {winrt_windows_perception_spatial_surfaces-2.2.0 → winrt_windows_perception_spatial_surfaces-3.0.0}/requirements.txt +2 -2
- {winrt_windows_perception_spatial_surfaces-2.2.0 → winrt_windows_perception_spatial_surfaces-3.0.0}/setup.py +1 -1
- winrt_windows_perception_spatial_surfaces-3.0.0/winrt/_winrt_windows_perception_spatial_surfaces.pyi +132 -0
- winrt_windows_perception_spatial_surfaces-3.0.0/winrt/windows/perception/spatial/surfaces/__init__.py +19 -0
- {winrt_windows_perception_spatial_surfaces-2.2.0 → winrt_windows_perception_spatial_surfaces-3.0.0}/winrt_Windows.Perception.Spatial.Surfaces.egg-info/PKG-INFO +9 -9
- winrt_windows_perception_spatial_surfaces-3.0.0/winrt_Windows.Perception.Spatial.Surfaces.egg-info/requires.txt +9 -0
- winrt_windows_perception_spatial_surfaces-2.2.0/all-requirements.txt +0 -8
- winrt_windows_perception_spatial_surfaces-2.2.0/pywinrt-version.txt +0 -1
- winrt_windows_perception_spatial_surfaces-2.2.0/winrt/_winrt_windows_perception_spatial_surfaces.pyi +0 -111
- winrt_windows_perception_spatial_surfaces-2.2.0/winrt/windows/perception/spatial/surfaces/__init__.py +0 -18
- winrt_windows_perception_spatial_surfaces-2.2.0/winrt_Windows.Perception.Spatial.Surfaces.egg-info/requires.txt +0 -9
- {winrt_windows_perception_spatial_surfaces-2.2.0 → winrt_windows_perception_spatial_surfaces-3.0.0}/README.md +0 -0
- {winrt_windows_perception_spatial_surfaces-2.2.0 → winrt_windows_perception_spatial_surfaces-3.0.0}/setup.cfg +0 -0
- {winrt_windows_perception_spatial_surfaces-2.2.0 → winrt_windows_perception_spatial_surfaces-3.0.0}/winrt/windows/perception/spatial/surfaces/py.typed +0 -0
- {winrt_windows_perception_spatial_surfaces-2.2.0 → winrt_windows_perception_spatial_surfaces-3.0.0}/winrt_Windows.Perception.Spatial.Surfaces.egg-info/SOURCES.txt +0 -0
- {winrt_windows_perception_spatial_surfaces-2.2.0 → winrt_windows_perception_spatial_surfaces-3.0.0}/winrt_Windows.Perception.Spatial.Surfaces.egg-info/dependency_links.txt +0 -0
- {winrt_windows_perception_spatial_surfaces-2.2.0 → winrt_windows_perception_spatial_surfaces-3.0.0}/winrt_Windows.Perception.Spatial.Surfaces.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Perception.Spatial.Surfaces
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,16 +10,16 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Numerics[all]==
|
|
20
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==
|
|
21
|
-
Requires-Dist: winrt-Windows.Perception.Spatial[all]==
|
|
22
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Numerics[all]==3.0.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==3.0.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Perception.Spatial[all]==3.0.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.0.0; extra == "all"
|
|
23
23
|
|
|
24
24
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
25
25
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.Foundation[all]==3.0.0
|
|
4
|
+
winrt-Windows.Foundation.Collections[all]==3.0.0
|
|
5
|
+
winrt-Windows.Foundation.Numerics[all]==3.0.0
|
|
6
|
+
winrt-Windows.Graphics.DirectX[all]==3.0.0
|
|
7
|
+
winrt-Windows.Perception.Spatial[all]==3.0.0
|
|
8
|
+
winrt-Windows.Storage.Streams[all]==3.0.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Perception.Spatial.Surfaces.h"
|
|
4
4
|
|
|
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
23
23
|
|
|
24
24
|
static PyObject* SpatialSurfaceInfo_TryComputeLatestMeshAsync(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceInfo* self, PyObject* args) noexcept
|
|
25
25
|
{
|
|
26
|
-
auto arg_count =
|
|
26
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
27
27
|
|
|
28
28
|
if (arg_count == 1)
|
|
29
29
|
{
|
|
@@ -44,7 +44,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
44
44
|
|
|
45
45
|
auto param0 = py::convert_to<double>(args, 0);
|
|
46
46
|
|
|
47
|
-
return py::convert(
|
|
47
|
+
return py::convert([&]()
|
|
48
|
+
{
|
|
49
|
+
auto _gil = release_gil();
|
|
50
|
+
return self->obj.TryComputeLatestMeshAsync(param0);
|
|
51
|
+
}());
|
|
48
52
|
}
|
|
49
53
|
catch (...)
|
|
50
54
|
{
|
|
@@ -52,7 +56,18 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
52
56
|
return nullptr;
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
|
-
else
|
|
59
|
+
else
|
|
60
|
+
{
|
|
61
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
62
|
+
return nullptr;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
static PyObject* SpatialSurfaceInfo_TryComputeLatestMeshWithOptionsAsync(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceInfo* self, PyObject* args) noexcept
|
|
67
|
+
{
|
|
68
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
69
|
+
|
|
70
|
+
if (arg_count == 2)
|
|
56
71
|
{
|
|
57
72
|
try
|
|
58
73
|
{
|
|
@@ -72,7 +87,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
72
87
|
auto param0 = py::convert_to<double>(args, 0);
|
|
73
88
|
auto param1 = py::convert_to<winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions>(args, 1);
|
|
74
89
|
|
|
75
|
-
return py::convert(
|
|
90
|
+
return py::convert([&]()
|
|
91
|
+
{
|
|
92
|
+
auto _gil = release_gil();
|
|
93
|
+
return self->obj.TryComputeLatestMeshAsync(param0, param1);
|
|
94
|
+
}());
|
|
76
95
|
}
|
|
77
96
|
catch (...)
|
|
78
97
|
{
|
|
@@ -89,7 +108,7 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
89
108
|
|
|
90
109
|
static PyObject* SpatialSurfaceInfo_TryGetBounds(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceInfo* self, PyObject* args) noexcept
|
|
91
110
|
{
|
|
92
|
-
auto arg_count =
|
|
111
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
93
112
|
|
|
94
113
|
if (arg_count == 1)
|
|
95
114
|
{
|
|
@@ -110,7 +129,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
110
129
|
|
|
111
130
|
auto param0 = py::convert_to<winrt::Windows::Perception::Spatial::SpatialCoordinateSystem>(args, 0);
|
|
112
131
|
|
|
113
|
-
return py::convert(
|
|
132
|
+
return py::convert([&]()
|
|
133
|
+
{
|
|
134
|
+
auto _gil = release_gil();
|
|
135
|
+
return self->obj.TryGetBounds(param0);
|
|
136
|
+
}());
|
|
114
137
|
}
|
|
115
138
|
catch (...)
|
|
116
139
|
{
|
|
@@ -142,7 +165,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
142
165
|
return nullptr;
|
|
143
166
|
}
|
|
144
167
|
|
|
145
|
-
return py::convert(
|
|
168
|
+
return py::convert([&]()
|
|
169
|
+
{
|
|
170
|
+
auto _gil = release_gil();
|
|
171
|
+
return self->obj.Id();
|
|
172
|
+
}());
|
|
146
173
|
}
|
|
147
174
|
catch (...)
|
|
148
175
|
{
|
|
@@ -168,7 +195,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
168
195
|
return nullptr;
|
|
169
196
|
}
|
|
170
197
|
|
|
171
|
-
return py::convert(
|
|
198
|
+
return py::convert([&]()
|
|
199
|
+
{
|
|
200
|
+
auto _gil = release_gil();
|
|
201
|
+
return self->obj.UpdateTime();
|
|
202
|
+
}());
|
|
172
203
|
}
|
|
173
204
|
catch (...)
|
|
174
205
|
{
|
|
@@ -203,25 +234,23 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
203
234
|
|
|
204
235
|
static PyMethodDef _methods_SpatialSurfaceInfo[] = {
|
|
205
236
|
{ "try_compute_latest_mesh_async", reinterpret_cast<PyCFunction>(SpatialSurfaceInfo_TryComputeLatestMeshAsync), METH_VARARGS, nullptr },
|
|
237
|
+
{ "try_compute_latest_mesh_with_options_async", reinterpret_cast<PyCFunction>(SpatialSurfaceInfo_TryComputeLatestMeshWithOptionsAsync), METH_VARARGS, nullptr },
|
|
206
238
|
{ "try_get_bounds", reinterpret_cast<PyCFunction>(SpatialSurfaceInfo_TryGetBounds), METH_VARARGS, nullptr },
|
|
207
239
|
{ "_assign_array_", _assign_array_SpatialSurfaceInfo, METH_O | METH_STATIC, nullptr },
|
|
208
240
|
{ "_from", reinterpret_cast<PyCFunction>(_from_SpatialSurfaceInfo), METH_O | METH_STATIC, nullptr },
|
|
209
|
-
{ }
|
|
210
|
-
};
|
|
241
|
+
{ }};
|
|
211
242
|
|
|
212
243
|
static PyGetSetDef _getset_SpatialSurfaceInfo[] = {
|
|
213
244
|
{ "id", reinterpret_cast<getter>(SpatialSurfaceInfo_get_Id), nullptr, nullptr, nullptr },
|
|
214
245
|
{ "update_time", reinterpret_cast<getter>(SpatialSurfaceInfo_get_UpdateTime), nullptr, nullptr, nullptr },
|
|
215
|
-
{ }
|
|
216
|
-
};
|
|
246
|
+
{ }};
|
|
217
247
|
|
|
218
248
|
static PyType_Slot _type_slots_SpatialSurfaceInfo[] = {
|
|
219
249
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SpatialSurfaceInfo) },
|
|
220
250
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SpatialSurfaceInfo) },
|
|
221
251
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SpatialSurfaceInfo) },
|
|
222
252
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SpatialSurfaceInfo) },
|
|
223
|
-
{ }
|
|
224
|
-
};
|
|
253
|
+
{ }};
|
|
225
254
|
|
|
226
255
|
static PyType_Spec type_spec_SpatialSurfaceInfo = {
|
|
227
256
|
"winrt._winrt_windows_perception_spatial_surfaces.SpatialSurfaceInfo",
|
|
@@ -264,7 +293,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
264
293
|
return nullptr;
|
|
265
294
|
}
|
|
266
295
|
|
|
267
|
-
return py::convert(
|
|
296
|
+
return py::convert([&]()
|
|
297
|
+
{
|
|
298
|
+
auto _gil = release_gil();
|
|
299
|
+
return self->obj.CoordinateSystem();
|
|
300
|
+
}());
|
|
268
301
|
}
|
|
269
302
|
catch (...)
|
|
270
303
|
{
|
|
@@ -290,7 +323,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
290
323
|
return nullptr;
|
|
291
324
|
}
|
|
292
325
|
|
|
293
|
-
return py::convert(
|
|
326
|
+
return py::convert([&]()
|
|
327
|
+
{
|
|
328
|
+
auto _gil = release_gil();
|
|
329
|
+
return self->obj.SurfaceInfo();
|
|
330
|
+
}());
|
|
294
331
|
}
|
|
295
332
|
catch (...)
|
|
296
333
|
{
|
|
@@ -316,7 +353,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
316
353
|
return nullptr;
|
|
317
354
|
}
|
|
318
355
|
|
|
319
|
-
return py::convert(
|
|
356
|
+
return py::convert([&]()
|
|
357
|
+
{
|
|
358
|
+
auto _gil = release_gil();
|
|
359
|
+
return self->obj.TriangleIndices();
|
|
360
|
+
}());
|
|
320
361
|
}
|
|
321
362
|
catch (...)
|
|
322
363
|
{
|
|
@@ -342,7 +383,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
342
383
|
return nullptr;
|
|
343
384
|
}
|
|
344
385
|
|
|
345
|
-
return py::convert(
|
|
386
|
+
return py::convert([&]()
|
|
387
|
+
{
|
|
388
|
+
auto _gil = release_gil();
|
|
389
|
+
return self->obj.VertexNormals();
|
|
390
|
+
}());
|
|
346
391
|
}
|
|
347
392
|
catch (...)
|
|
348
393
|
{
|
|
@@ -368,7 +413,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
368
413
|
return nullptr;
|
|
369
414
|
}
|
|
370
415
|
|
|
371
|
-
return py::convert(
|
|
416
|
+
return py::convert([&]()
|
|
417
|
+
{
|
|
418
|
+
auto _gil = release_gil();
|
|
419
|
+
return self->obj.VertexPositionScale();
|
|
420
|
+
}());
|
|
372
421
|
}
|
|
373
422
|
catch (...)
|
|
374
423
|
{
|
|
@@ -394,7 +443,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
394
443
|
return nullptr;
|
|
395
444
|
}
|
|
396
445
|
|
|
397
|
-
return py::convert(
|
|
446
|
+
return py::convert([&]()
|
|
447
|
+
{
|
|
448
|
+
auto _gil = release_gil();
|
|
449
|
+
return self->obj.VertexPositions();
|
|
450
|
+
}());
|
|
398
451
|
}
|
|
399
452
|
catch (...)
|
|
400
453
|
{
|
|
@@ -430,8 +483,7 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
430
483
|
static PyMethodDef _methods_SpatialSurfaceMesh[] = {
|
|
431
484
|
{ "_assign_array_", _assign_array_SpatialSurfaceMesh, METH_O | METH_STATIC, nullptr },
|
|
432
485
|
{ "_from", reinterpret_cast<PyCFunction>(_from_SpatialSurfaceMesh), METH_O | METH_STATIC, nullptr },
|
|
433
|
-
{ }
|
|
434
|
-
};
|
|
486
|
+
{ }};
|
|
435
487
|
|
|
436
488
|
static PyGetSetDef _getset_SpatialSurfaceMesh[] = {
|
|
437
489
|
{ "coordinate_system", reinterpret_cast<getter>(SpatialSurfaceMesh_get_CoordinateSystem), nullptr, nullptr, nullptr },
|
|
@@ -440,16 +492,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
440
492
|
{ "vertex_normals", reinterpret_cast<getter>(SpatialSurfaceMesh_get_VertexNormals), nullptr, nullptr, nullptr },
|
|
441
493
|
{ "vertex_position_scale", reinterpret_cast<getter>(SpatialSurfaceMesh_get_VertexPositionScale), nullptr, nullptr, nullptr },
|
|
442
494
|
{ "vertex_positions", reinterpret_cast<getter>(SpatialSurfaceMesh_get_VertexPositions), nullptr, nullptr, nullptr },
|
|
443
|
-
{ }
|
|
444
|
-
};
|
|
495
|
+
{ }};
|
|
445
496
|
|
|
446
497
|
static PyType_Slot _type_slots_SpatialSurfaceMesh[] = {
|
|
447
498
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SpatialSurfaceMesh) },
|
|
448
499
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SpatialSurfaceMesh) },
|
|
449
500
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SpatialSurfaceMesh) },
|
|
450
501
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SpatialSurfaceMesh) },
|
|
451
|
-
{ }
|
|
452
|
-
};
|
|
502
|
+
{ }};
|
|
453
503
|
|
|
454
504
|
static PyType_Spec type_spec_SpatialSurfaceMesh = {
|
|
455
505
|
"winrt._winrt_windows_perception_spatial_surfaces.SpatialSurfaceMesh",
|
|
@@ -492,7 +542,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
492
542
|
return nullptr;
|
|
493
543
|
}
|
|
494
544
|
|
|
495
|
-
return py::convert(
|
|
545
|
+
return py::convert([&]()
|
|
546
|
+
{
|
|
547
|
+
auto _gil = release_gil();
|
|
548
|
+
return self->obj.Data();
|
|
549
|
+
}());
|
|
496
550
|
}
|
|
497
551
|
catch (...)
|
|
498
552
|
{
|
|
@@ -518,7 +572,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
518
572
|
return nullptr;
|
|
519
573
|
}
|
|
520
574
|
|
|
521
|
-
return py::convert(
|
|
575
|
+
return py::convert([&]()
|
|
576
|
+
{
|
|
577
|
+
auto _gil = release_gil();
|
|
578
|
+
return self->obj.ElementCount();
|
|
579
|
+
}());
|
|
522
580
|
}
|
|
523
581
|
catch (...)
|
|
524
582
|
{
|
|
@@ -544,7 +602,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
544
602
|
return nullptr;
|
|
545
603
|
}
|
|
546
604
|
|
|
547
|
-
return py::convert(
|
|
605
|
+
return py::convert([&]()
|
|
606
|
+
{
|
|
607
|
+
auto _gil = release_gil();
|
|
608
|
+
return self->obj.Format();
|
|
609
|
+
}());
|
|
548
610
|
}
|
|
549
611
|
catch (...)
|
|
550
612
|
{
|
|
@@ -570,7 +632,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
570
632
|
return nullptr;
|
|
571
633
|
}
|
|
572
634
|
|
|
573
|
-
return py::convert(
|
|
635
|
+
return py::convert([&]()
|
|
636
|
+
{
|
|
637
|
+
auto _gil = release_gil();
|
|
638
|
+
return self->obj.Stride();
|
|
639
|
+
}());
|
|
574
640
|
}
|
|
575
641
|
catch (...)
|
|
576
642
|
{
|
|
@@ -606,24 +672,21 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
606
672
|
static PyMethodDef _methods_SpatialSurfaceMeshBuffer[] = {
|
|
607
673
|
{ "_assign_array_", _assign_array_SpatialSurfaceMeshBuffer, METH_O | METH_STATIC, nullptr },
|
|
608
674
|
{ "_from", reinterpret_cast<PyCFunction>(_from_SpatialSurfaceMeshBuffer), METH_O | METH_STATIC, nullptr },
|
|
609
|
-
{ }
|
|
610
|
-
};
|
|
675
|
+
{ }};
|
|
611
676
|
|
|
612
677
|
static PyGetSetDef _getset_SpatialSurfaceMeshBuffer[] = {
|
|
613
678
|
{ "data", reinterpret_cast<getter>(SpatialSurfaceMeshBuffer_get_Data), nullptr, nullptr, nullptr },
|
|
614
679
|
{ "element_count", reinterpret_cast<getter>(SpatialSurfaceMeshBuffer_get_ElementCount), nullptr, nullptr, nullptr },
|
|
615
680
|
{ "format", reinterpret_cast<getter>(SpatialSurfaceMeshBuffer_get_Format), nullptr, nullptr, nullptr },
|
|
616
681
|
{ "stride", reinterpret_cast<getter>(SpatialSurfaceMeshBuffer_get_Stride), nullptr, nullptr, nullptr },
|
|
617
|
-
{ }
|
|
618
|
-
};
|
|
682
|
+
{ }};
|
|
619
683
|
|
|
620
684
|
static PyType_Slot _type_slots_SpatialSurfaceMeshBuffer[] = {
|
|
621
685
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SpatialSurfaceMeshBuffer) },
|
|
622
686
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SpatialSurfaceMeshBuffer) },
|
|
623
687
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SpatialSurfaceMeshBuffer) },
|
|
624
688
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SpatialSurfaceMeshBuffer) },
|
|
625
|
-
{ }
|
|
626
|
-
};
|
|
689
|
+
{ }};
|
|
627
690
|
|
|
628
691
|
static PyType_Spec type_spec_SpatialSurfaceMeshBuffer = {
|
|
629
692
|
"winrt._winrt_windows_perception_spatial_surfaces.SpatialSurfaceMeshBuffer",
|
|
@@ -636,13 +699,13 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
636
699
|
|
|
637
700
|
static PyObject* _new_SpatialSurfaceMeshOptions(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
638
701
|
{
|
|
639
|
-
if (kwds
|
|
702
|
+
if (kwds)
|
|
640
703
|
{
|
|
641
704
|
py::set_invalid_kwd_args_error();
|
|
642
705
|
return nullptr;
|
|
643
706
|
}
|
|
644
707
|
|
|
645
|
-
auto arg_count =
|
|
708
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
646
709
|
if (arg_count == 0)
|
|
647
710
|
{
|
|
648
711
|
try
|
|
@@ -688,7 +751,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
688
751
|
return nullptr;
|
|
689
752
|
}
|
|
690
753
|
|
|
691
|
-
return py::convert(
|
|
754
|
+
return py::convert([&]()
|
|
755
|
+
{
|
|
756
|
+
auto _gil = release_gil();
|
|
757
|
+
return self->obj.VertexPositionFormat();
|
|
758
|
+
}());
|
|
692
759
|
}
|
|
693
760
|
catch (...)
|
|
694
761
|
{
|
|
@@ -699,7 +766,7 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
699
766
|
|
|
700
767
|
static int SpatialSurfaceMeshOptions_put_VertexPositionFormat(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
701
768
|
{
|
|
702
|
-
if (arg
|
|
769
|
+
if (!arg)
|
|
703
770
|
{
|
|
704
771
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
705
772
|
return -1;
|
|
@@ -722,7 +789,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
722
789
|
|
|
723
790
|
auto param0 = py::convert_to<winrt::Windows::Graphics::DirectX::DirectXPixelFormat>(arg);
|
|
724
791
|
|
|
725
|
-
|
|
792
|
+
{
|
|
793
|
+
auto _gil = release_gil();
|
|
794
|
+
self->obj.VertexPositionFormat(param0);
|
|
795
|
+
}
|
|
796
|
+
|
|
726
797
|
return 0;
|
|
727
798
|
}
|
|
728
799
|
catch (...)
|
|
@@ -749,7 +820,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
749
820
|
return nullptr;
|
|
750
821
|
}
|
|
751
822
|
|
|
752
|
-
return py::convert(
|
|
823
|
+
return py::convert([&]()
|
|
824
|
+
{
|
|
825
|
+
auto _gil = release_gil();
|
|
826
|
+
return self->obj.VertexNormalFormat();
|
|
827
|
+
}());
|
|
753
828
|
}
|
|
754
829
|
catch (...)
|
|
755
830
|
{
|
|
@@ -760,7 +835,7 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
760
835
|
|
|
761
836
|
static int SpatialSurfaceMeshOptions_put_VertexNormalFormat(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
762
837
|
{
|
|
763
|
-
if (arg
|
|
838
|
+
if (!arg)
|
|
764
839
|
{
|
|
765
840
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
766
841
|
return -1;
|
|
@@ -783,7 +858,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
783
858
|
|
|
784
859
|
auto param0 = py::convert_to<winrt::Windows::Graphics::DirectX::DirectXPixelFormat>(arg);
|
|
785
860
|
|
|
786
|
-
|
|
861
|
+
{
|
|
862
|
+
auto _gil = release_gil();
|
|
863
|
+
self->obj.VertexNormalFormat(param0);
|
|
864
|
+
}
|
|
865
|
+
|
|
787
866
|
return 0;
|
|
788
867
|
}
|
|
789
868
|
catch (...)
|
|
@@ -810,7 +889,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
810
889
|
return nullptr;
|
|
811
890
|
}
|
|
812
891
|
|
|
813
|
-
return py::convert(
|
|
892
|
+
return py::convert([&]()
|
|
893
|
+
{
|
|
894
|
+
auto _gil = release_gil();
|
|
895
|
+
return self->obj.TriangleIndexFormat();
|
|
896
|
+
}());
|
|
814
897
|
}
|
|
815
898
|
catch (...)
|
|
816
899
|
{
|
|
@@ -821,7 +904,7 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
821
904
|
|
|
822
905
|
static int SpatialSurfaceMeshOptions_put_TriangleIndexFormat(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
823
906
|
{
|
|
824
|
-
if (arg
|
|
907
|
+
if (!arg)
|
|
825
908
|
{
|
|
826
909
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
827
910
|
return -1;
|
|
@@ -844,7 +927,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
844
927
|
|
|
845
928
|
auto param0 = py::convert_to<winrt::Windows::Graphics::DirectX::DirectXPixelFormat>(arg);
|
|
846
929
|
|
|
847
|
-
|
|
930
|
+
{
|
|
931
|
+
auto _gil = release_gil();
|
|
932
|
+
self->obj.TriangleIndexFormat(param0);
|
|
933
|
+
}
|
|
934
|
+
|
|
848
935
|
return 0;
|
|
849
936
|
}
|
|
850
937
|
catch (...)
|
|
@@ -871,7 +958,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
871
958
|
return nullptr;
|
|
872
959
|
}
|
|
873
960
|
|
|
874
|
-
return py::convert(
|
|
961
|
+
return py::convert([&]()
|
|
962
|
+
{
|
|
963
|
+
auto _gil = release_gil();
|
|
964
|
+
return self->obj.IncludeVertexNormals();
|
|
965
|
+
}());
|
|
875
966
|
}
|
|
876
967
|
catch (...)
|
|
877
968
|
{
|
|
@@ -882,7 +973,7 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
882
973
|
|
|
883
974
|
static int SpatialSurfaceMeshOptions_put_IncludeVertexNormals(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
884
975
|
{
|
|
885
|
-
if (arg
|
|
976
|
+
if (!arg)
|
|
886
977
|
{
|
|
887
978
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
888
979
|
return -1;
|
|
@@ -905,7 +996,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
905
996
|
|
|
906
997
|
auto param0 = py::convert_to<bool>(arg);
|
|
907
998
|
|
|
908
|
-
|
|
999
|
+
{
|
|
1000
|
+
auto _gil = release_gil();
|
|
1001
|
+
self->obj.IncludeVertexNormals(param0);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
909
1004
|
return 0;
|
|
910
1005
|
}
|
|
911
1006
|
catch (...)
|
|
@@ -932,7 +1027,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
932
1027
|
return nullptr;
|
|
933
1028
|
}
|
|
934
1029
|
|
|
935
|
-
return py::convert(
|
|
1030
|
+
return py::convert([&]()
|
|
1031
|
+
{
|
|
1032
|
+
auto _gil = release_gil();
|
|
1033
|
+
return winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions::SupportedTriangleIndexFormats();
|
|
1034
|
+
}());
|
|
936
1035
|
}
|
|
937
1036
|
catch (...)
|
|
938
1037
|
{
|
|
@@ -958,7 +1057,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
958
1057
|
return nullptr;
|
|
959
1058
|
}
|
|
960
1059
|
|
|
961
|
-
return py::convert(
|
|
1060
|
+
return py::convert([&]()
|
|
1061
|
+
{
|
|
1062
|
+
auto _gil = release_gil();
|
|
1063
|
+
return winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions::SupportedVertexNormalFormats();
|
|
1064
|
+
}());
|
|
962
1065
|
}
|
|
963
1066
|
catch (...)
|
|
964
1067
|
{
|
|
@@ -984,7 +1087,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
984
1087
|
return nullptr;
|
|
985
1088
|
}
|
|
986
1089
|
|
|
987
|
-
return py::convert(
|
|
1090
|
+
return py::convert([&]()
|
|
1091
|
+
{
|
|
1092
|
+
auto _gil = release_gil();
|
|
1093
|
+
return winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions::SupportedVertexPositionFormats();
|
|
1094
|
+
}());
|
|
988
1095
|
}
|
|
989
1096
|
catch (...)
|
|
990
1097
|
{
|
|
@@ -1020,24 +1127,21 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1020
1127
|
static PyMethodDef _methods_SpatialSurfaceMeshOptions[] = {
|
|
1021
1128
|
{ "_assign_array_", _assign_array_SpatialSurfaceMeshOptions, METH_O | METH_STATIC, nullptr },
|
|
1022
1129
|
{ "_from", reinterpret_cast<PyCFunction>(_from_SpatialSurfaceMeshOptions), METH_O | METH_STATIC, nullptr },
|
|
1023
|
-
{ }
|
|
1024
|
-
};
|
|
1130
|
+
{ }};
|
|
1025
1131
|
|
|
1026
1132
|
static PyGetSetDef _getset_SpatialSurfaceMeshOptions[] = {
|
|
1027
1133
|
{ "vertex_position_format", reinterpret_cast<getter>(SpatialSurfaceMeshOptions_get_VertexPositionFormat), reinterpret_cast<setter>(SpatialSurfaceMeshOptions_put_VertexPositionFormat), nullptr, nullptr },
|
|
1028
1134
|
{ "vertex_normal_format", reinterpret_cast<getter>(SpatialSurfaceMeshOptions_get_VertexNormalFormat), reinterpret_cast<setter>(SpatialSurfaceMeshOptions_put_VertexNormalFormat), nullptr, nullptr },
|
|
1029
1135
|
{ "triangle_index_format", reinterpret_cast<getter>(SpatialSurfaceMeshOptions_get_TriangleIndexFormat), reinterpret_cast<setter>(SpatialSurfaceMeshOptions_put_TriangleIndexFormat), nullptr, nullptr },
|
|
1030
1136
|
{ "include_vertex_normals", reinterpret_cast<getter>(SpatialSurfaceMeshOptions_get_IncludeVertexNormals), reinterpret_cast<setter>(SpatialSurfaceMeshOptions_put_IncludeVertexNormals), nullptr, nullptr },
|
|
1031
|
-
{ }
|
|
1032
|
-
};
|
|
1137
|
+
{ }};
|
|
1033
1138
|
|
|
1034
1139
|
static PyType_Slot _type_slots_SpatialSurfaceMeshOptions[] = {
|
|
1035
1140
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SpatialSurfaceMeshOptions) },
|
|
1036
1141
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SpatialSurfaceMeshOptions) },
|
|
1037
1142
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SpatialSurfaceMeshOptions) },
|
|
1038
1143
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SpatialSurfaceMeshOptions) },
|
|
1039
|
-
{ }
|
|
1040
|
-
};
|
|
1144
|
+
{ }};
|
|
1041
1145
|
|
|
1042
1146
|
static PyType_Spec type_spec_SpatialSurfaceMeshOptions = {
|
|
1043
1147
|
"winrt._winrt_windows_perception_spatial_surfaces.SpatialSurfaceMeshOptions",
|
|
@@ -1050,12 +1154,10 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1050
1154
|
{ "supported_triangle_index_formats", reinterpret_cast<getter>(SpatialSurfaceMeshOptions_get_SupportedTriangleIndexFormats), nullptr, nullptr, nullptr },
|
|
1051
1155
|
{ "supported_vertex_normal_formats", reinterpret_cast<getter>(SpatialSurfaceMeshOptions_get_SupportedVertexNormalFormats), nullptr, nullptr, nullptr },
|
|
1052
1156
|
{ "supported_vertex_position_formats", reinterpret_cast<getter>(SpatialSurfaceMeshOptions_get_SupportedVertexPositionFormats), nullptr, nullptr, nullptr },
|
|
1053
|
-
{ }
|
|
1054
|
-
};
|
|
1157
|
+
{ }};
|
|
1055
1158
|
|
|
1056
1159
|
static PyMethodDef methods_SpatialSurfaceMeshOptions_Static[] = {
|
|
1057
|
-
{ }
|
|
1058
|
-
};
|
|
1160
|
+
{ }};
|
|
1059
1161
|
|
|
1060
1162
|
static PyType_Slot type_slots_SpatialSurfaceMeshOptions_Static[] =
|
|
1061
1163
|
{
|
|
@@ -1065,26 +1167,24 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1065
1167
|
{ }
|
|
1066
1168
|
};
|
|
1067
1169
|
|
|
1068
|
-
static PyType_Spec type_spec_SpatialSurfaceMeshOptions_Static =
|
|
1069
|
-
{
|
|
1170
|
+
static PyType_Spec type_spec_SpatialSurfaceMeshOptions_Static = {
|
|
1070
1171
|
"winrt._winrt_windows_perception_spatial_surfaces.SpatialSurfaceMeshOptions_Static",
|
|
1071
1172
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
1072
1173
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
1073
1174
|
Py_TPFLAGS_DEFAULT,
|
|
1074
|
-
type_slots_SpatialSurfaceMeshOptions_Static
|
|
1075
|
-
};
|
|
1175
|
+
type_slots_SpatialSurfaceMeshOptions_Static};
|
|
1076
1176
|
|
|
1077
1177
|
// ----- SpatialSurfaceObserver class --------------------
|
|
1078
1178
|
|
|
1079
1179
|
static PyObject* _new_SpatialSurfaceObserver(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
1080
1180
|
{
|
|
1081
|
-
if (kwds
|
|
1181
|
+
if (kwds)
|
|
1082
1182
|
{
|
|
1083
1183
|
py::set_invalid_kwd_args_error();
|
|
1084
1184
|
return nullptr;
|
|
1085
1185
|
}
|
|
1086
1186
|
|
|
1087
|
-
auto arg_count =
|
|
1187
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
1088
1188
|
if (arg_count == 0)
|
|
1089
1189
|
{
|
|
1090
1190
|
try
|
|
@@ -1115,7 +1215,7 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1115
1215
|
|
|
1116
1216
|
static PyObject* SpatialSurfaceObserver_GetObservedSurfaces(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceObserver* self, PyObject* args) noexcept
|
|
1117
1217
|
{
|
|
1118
|
-
auto arg_count =
|
|
1218
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
1119
1219
|
|
|
1120
1220
|
if (arg_count == 0)
|
|
1121
1221
|
{
|
|
@@ -1134,7 +1234,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1134
1234
|
return nullptr;
|
|
1135
1235
|
}
|
|
1136
1236
|
|
|
1137
|
-
return py::convert(
|
|
1237
|
+
return py::convert([&]()
|
|
1238
|
+
{
|
|
1239
|
+
auto _gil = release_gil();
|
|
1240
|
+
return self->obj.GetObservedSurfaces();
|
|
1241
|
+
}());
|
|
1138
1242
|
}
|
|
1139
1243
|
catch (...)
|
|
1140
1244
|
{
|
|
@@ -1151,7 +1255,7 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1151
1255
|
|
|
1152
1256
|
static PyObject* SpatialSurfaceObserver_IsSupported(PyObject* /*unused*/, PyObject* args) noexcept
|
|
1153
1257
|
{
|
|
1154
|
-
auto arg_count =
|
|
1258
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
1155
1259
|
|
|
1156
1260
|
if (arg_count == 0)
|
|
1157
1261
|
{
|
|
@@ -1170,7 +1274,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1170
1274
|
return nullptr;
|
|
1171
1275
|
}
|
|
1172
1276
|
|
|
1173
|
-
return py::convert(
|
|
1277
|
+
return py::convert([&]()
|
|
1278
|
+
{
|
|
1279
|
+
auto _gil = release_gil();
|
|
1280
|
+
return winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceObserver::IsSupported();
|
|
1281
|
+
}());
|
|
1174
1282
|
}
|
|
1175
1283
|
catch (...)
|
|
1176
1284
|
{
|
|
@@ -1187,7 +1295,7 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1187
1295
|
|
|
1188
1296
|
static PyObject* SpatialSurfaceObserver_RequestAccessAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
1189
1297
|
{
|
|
1190
|
-
auto arg_count =
|
|
1298
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
1191
1299
|
|
|
1192
1300
|
if (arg_count == 0)
|
|
1193
1301
|
{
|
|
@@ -1206,7 +1314,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1206
1314
|
return nullptr;
|
|
1207
1315
|
}
|
|
1208
1316
|
|
|
1209
|
-
return py::convert(
|
|
1317
|
+
return py::convert([&]()
|
|
1318
|
+
{
|
|
1319
|
+
auto _gil = release_gil();
|
|
1320
|
+
return winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceObserver::RequestAccessAsync();
|
|
1321
|
+
}());
|
|
1210
1322
|
}
|
|
1211
1323
|
catch (...)
|
|
1212
1324
|
{
|
|
@@ -1223,7 +1335,7 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1223
1335
|
|
|
1224
1336
|
static PyObject* SpatialSurfaceObserver_SetBoundingVolume(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceObserver* self, PyObject* args) noexcept
|
|
1225
1337
|
{
|
|
1226
|
-
auto arg_count =
|
|
1338
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
1227
1339
|
|
|
1228
1340
|
if (arg_count == 1)
|
|
1229
1341
|
{
|
|
@@ -1244,7 +1356,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1244
1356
|
|
|
1245
1357
|
auto param0 = py::convert_to<winrt::Windows::Perception::Spatial::SpatialBoundingVolume>(args, 0);
|
|
1246
1358
|
|
|
1247
|
-
|
|
1359
|
+
{
|
|
1360
|
+
auto _gil = release_gil();
|
|
1361
|
+
self->obj.SetBoundingVolume(param0);
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1248
1364
|
Py_RETURN_NONE;
|
|
1249
1365
|
}
|
|
1250
1366
|
catch (...)
|
|
@@ -1262,7 +1378,7 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1262
1378
|
|
|
1263
1379
|
static PyObject* SpatialSurfaceObserver_SetBoundingVolumes(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceObserver* self, PyObject* args) noexcept
|
|
1264
1380
|
{
|
|
1265
|
-
auto arg_count =
|
|
1381
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
1266
1382
|
|
|
1267
1383
|
if (arg_count == 1)
|
|
1268
1384
|
{
|
|
@@ -1283,7 +1399,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1283
1399
|
|
|
1284
1400
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Perception::Spatial::SpatialBoundingVolume>>(args, 0);
|
|
1285
1401
|
|
|
1286
|
-
|
|
1402
|
+
{
|
|
1403
|
+
auto _gil = release_gil();
|
|
1404
|
+
self->obj.SetBoundingVolumes(param0);
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1287
1407
|
Py_RETURN_NONE;
|
|
1288
1408
|
}
|
|
1289
1409
|
catch (...)
|
|
@@ -1318,7 +1438,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1318
1438
|
|
|
1319
1439
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceObserver, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
1320
1440
|
|
|
1321
|
-
return py::convert(
|
|
1441
|
+
return py::convert([&]()
|
|
1442
|
+
{
|
|
1443
|
+
auto _gil = release_gil();
|
|
1444
|
+
return self->obj.ObservedSurfacesChanged(param0);
|
|
1445
|
+
}());
|
|
1322
1446
|
}
|
|
1323
1447
|
catch (...)
|
|
1324
1448
|
{
|
|
@@ -1346,7 +1470,11 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1346
1470
|
|
|
1347
1471
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1348
1472
|
|
|
1349
|
-
|
|
1473
|
+
{
|
|
1474
|
+
auto _gil = release_gil();
|
|
1475
|
+
self->obj.ObservedSurfacesChanged(param0);
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1350
1478
|
Py_RETURN_NONE;
|
|
1351
1479
|
}
|
|
1352
1480
|
catch (...)
|
|
@@ -1388,20 +1516,17 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1388
1516
|
{ "remove_observed_surfaces_changed", reinterpret_cast<PyCFunction>(SpatialSurfaceObserver_remove_ObservedSurfacesChanged), METH_O, nullptr },
|
|
1389
1517
|
{ "_assign_array_", _assign_array_SpatialSurfaceObserver, METH_O | METH_STATIC, nullptr },
|
|
1390
1518
|
{ "_from", reinterpret_cast<PyCFunction>(_from_SpatialSurfaceObserver), METH_O | METH_STATIC, nullptr },
|
|
1391
|
-
{ }
|
|
1392
|
-
};
|
|
1519
|
+
{ }};
|
|
1393
1520
|
|
|
1394
1521
|
static PyGetSetDef _getset_SpatialSurfaceObserver[] = {
|
|
1395
|
-
{ }
|
|
1396
|
-
};
|
|
1522
|
+
{ }};
|
|
1397
1523
|
|
|
1398
1524
|
static PyType_Slot _type_slots_SpatialSurfaceObserver[] = {
|
|
1399
1525
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SpatialSurfaceObserver) },
|
|
1400
1526
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SpatialSurfaceObserver) },
|
|
1401
1527
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SpatialSurfaceObserver) },
|
|
1402
1528
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SpatialSurfaceObserver) },
|
|
1403
|
-
{ }
|
|
1404
|
-
};
|
|
1529
|
+
{ }};
|
|
1405
1530
|
|
|
1406
1531
|
static PyType_Spec type_spec_SpatialSurfaceObserver = {
|
|
1407
1532
|
"winrt._winrt_windows_perception_spatial_surfaces.SpatialSurfaceObserver",
|
|
@@ -1411,14 +1536,12 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1411
1536
|
_type_slots_SpatialSurfaceObserver};
|
|
1412
1537
|
|
|
1413
1538
|
static PyGetSetDef getset_SpatialSurfaceObserver_Static[] = {
|
|
1414
|
-
{ }
|
|
1415
|
-
};
|
|
1539
|
+
{ }};
|
|
1416
1540
|
|
|
1417
1541
|
static PyMethodDef methods_SpatialSurfaceObserver_Static[] = {
|
|
1418
1542
|
{ "is_supported", reinterpret_cast<PyCFunction>(SpatialSurfaceObserver_IsSupported), METH_VARARGS, nullptr },
|
|
1419
1543
|
{ "request_access_async", reinterpret_cast<PyCFunction>(SpatialSurfaceObserver_RequestAccessAsync), METH_VARARGS, nullptr },
|
|
1420
|
-
{ }
|
|
1421
|
-
};
|
|
1544
|
+
{ }};
|
|
1422
1545
|
|
|
1423
1546
|
static PyType_Slot type_slots_SpatialSurfaceObserver_Static[] =
|
|
1424
1547
|
{
|
|
@@ -1428,14 +1551,12 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1428
1551
|
{ }
|
|
1429
1552
|
};
|
|
1430
1553
|
|
|
1431
|
-
static PyType_Spec type_spec_SpatialSurfaceObserver_Static =
|
|
1432
|
-
{
|
|
1554
|
+
static PyType_Spec type_spec_SpatialSurfaceObserver_Static = {
|
|
1433
1555
|
"winrt._winrt_windows_perception_spatial_surfaces.SpatialSurfaceObserver_Static",
|
|
1434
1556
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
1435
1557
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
1436
1558
|
Py_TPFLAGS_DEFAULT,
|
|
1437
|
-
type_slots_SpatialSurfaceObserver_Static
|
|
1438
|
-
};
|
|
1559
|
+
type_slots_SpatialSurfaceObserver_Static};
|
|
1439
1560
|
|
|
1440
1561
|
// ----- Windows.Perception.Spatial.Surfaces Initialization --------------------
|
|
1441
1562
|
|
|
@@ -1469,6 +1590,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_perception_spatial_surfaces(void) noexcept
|
|
|
1469
1590
|
return nullptr;
|
|
1470
1591
|
}
|
|
1471
1592
|
|
|
1593
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
1594
|
+
if (!inspectable_meta_type)
|
|
1595
|
+
{
|
|
1596
|
+
return nullptr;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1472
1599
|
auto object_type = py::get_object_type();
|
|
1473
1600
|
if (!object_type)
|
|
1474
1601
|
{
|
|
@@ -1482,25 +1609,31 @@ PyMODINIT_FUNC PyInit__winrt_windows_perception_spatial_surfaces(void) noexcept
|
|
|
1482
1609
|
return nullptr;
|
|
1483
1610
|
}
|
|
1484
1611
|
|
|
1485
|
-
py::pytype_handle SpatialSurfaceInfo_type{py::register_python_type(module.get(), &type_spec_SpatialSurfaceInfo, object_bases.get(),
|
|
1612
|
+
py::pytype_handle SpatialSurfaceInfo_type{py::register_python_type(module.get(), &type_spec_SpatialSurfaceInfo, object_bases.get(), inspectable_meta_type)};
|
|
1486
1613
|
if (!SpatialSurfaceInfo_type)
|
|
1487
1614
|
{
|
|
1488
1615
|
return nullptr;
|
|
1489
1616
|
}
|
|
1490
1617
|
|
|
1491
|
-
py::pytype_handle SpatialSurfaceMesh_type{py::register_python_type(module.get(), &type_spec_SpatialSurfaceMesh, object_bases.get(),
|
|
1618
|
+
py::pytype_handle SpatialSurfaceMesh_type{py::register_python_type(module.get(), &type_spec_SpatialSurfaceMesh, object_bases.get(), inspectable_meta_type)};
|
|
1492
1619
|
if (!SpatialSurfaceMesh_type)
|
|
1493
1620
|
{
|
|
1494
1621
|
return nullptr;
|
|
1495
1622
|
}
|
|
1496
1623
|
|
|
1497
|
-
py::pytype_handle SpatialSurfaceMeshBuffer_type{py::register_python_type(module.get(), &type_spec_SpatialSurfaceMeshBuffer, object_bases.get(),
|
|
1624
|
+
py::pytype_handle SpatialSurfaceMeshBuffer_type{py::register_python_type(module.get(), &type_spec_SpatialSurfaceMeshBuffer, object_bases.get(), inspectable_meta_type)};
|
|
1498
1625
|
if (!SpatialSurfaceMeshBuffer_type)
|
|
1499
1626
|
{
|
|
1500
1627
|
return nullptr;
|
|
1501
1628
|
}
|
|
1502
1629
|
|
|
1503
|
-
py::pyobj_handle
|
|
1630
|
+
py::pyobj_handle SpatialSurfaceMeshOptions_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
1631
|
+
if (!SpatialSurfaceMeshOptions_Static_bases)
|
|
1632
|
+
{
|
|
1633
|
+
return nullptr;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
py::pyobj_handle type_SpatialSurfaceMeshOptions_Static{PyType_FromSpecWithBases(&type_spec_SpatialSurfaceMeshOptions_Static, SpatialSurfaceMeshOptions_Static_bases.get())};
|
|
1504
1637
|
if (!type_SpatialSurfaceMeshOptions_Static)
|
|
1505
1638
|
{
|
|
1506
1639
|
return nullptr;
|
|
@@ -1512,7 +1645,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_perception_spatial_surfaces(void) noexcept
|
|
|
1512
1645
|
return nullptr;
|
|
1513
1646
|
}
|
|
1514
1647
|
|
|
1515
|
-
py::pyobj_handle
|
|
1648
|
+
py::pyobj_handle SpatialSurfaceObserver_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
1649
|
+
if (!SpatialSurfaceObserver_Static_bases)
|
|
1650
|
+
{
|
|
1651
|
+
return nullptr;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
py::pyobj_handle type_SpatialSurfaceObserver_Static{PyType_FromSpecWithBases(&type_spec_SpatialSurfaceObserver_Static, SpatialSurfaceObserver_Static_bases.get())};
|
|
1516
1655
|
if (!type_SpatialSurfaceObserver_Static)
|
|
1517
1656
|
{
|
|
1518
1657
|
return nullptr;
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
|
-
environment = { PYTHONPATH="
|
|
37
|
+
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
39
|
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
40
|
before-build = "uv pip install setuptools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.0.0
|
winrt_windows_perception_spatial_surfaces-3.0.0/winrt/_winrt_windows_perception_spatial_surfaces.pyi
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
import winrt.windows.foundation.numerics as windows_foundation_numerics
|
|
15
|
+
import winrt.windows.graphics.directx as windows_graphics_directx
|
|
16
|
+
import winrt.windows.perception.spatial as windows_perception_spatial
|
|
17
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
18
|
+
|
|
19
|
+
Self = typing.TypeVar('Self')
|
|
20
|
+
|
|
21
|
+
@typing.final
|
|
22
|
+
class SpatialSurfaceInfo(winrt.system.Object):
|
|
23
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh> Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo::TryComputeLatestMeshAsync(System.Double)
|
|
24
|
+
def try_compute_latest_mesh_async(self, max_triangles_per_cubic_meter: winrt.system.Double, /) -> windows_foundation.IAsyncOperation[typing.Optional[SpatialSurfaceMesh]]: ...
|
|
25
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh> Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo::TryComputeLatestMeshAsync(System.Double,Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions)
|
|
26
|
+
def try_compute_latest_mesh_with_options_async(self, max_triangles_per_cubic_meter: winrt.system.Double, options: SpatialSurfaceMeshOptions, /) -> windows_foundation.IAsyncOperation[typing.Optional[SpatialSurfaceMesh]]: ...
|
|
27
|
+
# Windows.Foundation.IReference`1<Windows.Perception.Spatial.SpatialBoundingOrientedBox> Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo::TryGetBounds(Windows.Perception.Spatial.SpatialCoordinateSystem)
|
|
28
|
+
def try_get_bounds(self, coordinate_system: windows_perception_spatial.SpatialCoordinateSystem, /) -> typing.Optional[windows_perception_spatial.SpatialBoundingOrientedBox]: ...
|
|
29
|
+
# System.Guid Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo::get_Id()
|
|
30
|
+
@_property
|
|
31
|
+
def id(self) -> _uuid.UUID: ...
|
|
32
|
+
# Windows.Foundation.DateTime Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo::get_UpdateTime()
|
|
33
|
+
@_property
|
|
34
|
+
def update_time(self) -> datetime.datetime: ...
|
|
35
|
+
|
|
36
|
+
@typing.final
|
|
37
|
+
class SpatialSurfaceMesh(winrt.system.Object):
|
|
38
|
+
# Windows.Perception.Spatial.SpatialCoordinateSystem Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh::get_CoordinateSystem()
|
|
39
|
+
@_property
|
|
40
|
+
def coordinate_system(self) -> windows_perception_spatial.SpatialCoordinateSystem: ...
|
|
41
|
+
# Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh::get_SurfaceInfo()
|
|
42
|
+
@_property
|
|
43
|
+
def surface_info(self) -> SpatialSurfaceInfo: ...
|
|
44
|
+
# Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh::get_TriangleIndices()
|
|
45
|
+
@_property
|
|
46
|
+
def triangle_indices(self) -> SpatialSurfaceMeshBuffer: ...
|
|
47
|
+
# Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh::get_VertexNormals()
|
|
48
|
+
@_property
|
|
49
|
+
def vertex_normals(self) -> SpatialSurfaceMeshBuffer: ...
|
|
50
|
+
# Windows.Foundation.Numerics.Vector3 Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh::get_VertexPositionScale()
|
|
51
|
+
@_property
|
|
52
|
+
def vertex_position_scale(self) -> windows_foundation_numerics.Vector3: ...
|
|
53
|
+
# Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh::get_VertexPositions()
|
|
54
|
+
@_property
|
|
55
|
+
def vertex_positions(self) -> SpatialSurfaceMeshBuffer: ...
|
|
56
|
+
|
|
57
|
+
@typing.final
|
|
58
|
+
class SpatialSurfaceMeshBuffer(winrt.system.Object):
|
|
59
|
+
# Windows.Storage.Streams.IBuffer Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer::get_Data()
|
|
60
|
+
@_property
|
|
61
|
+
def data(self) -> windows_storage_streams.IBuffer: ...
|
|
62
|
+
# System.UInt32 Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer::get_ElementCount()
|
|
63
|
+
@_property
|
|
64
|
+
def element_count(self) -> winrt.system.UInt32: ...
|
|
65
|
+
# Windows.Graphics.DirectX.DirectXPixelFormat Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer::get_Format()
|
|
66
|
+
@_property
|
|
67
|
+
def format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
|
|
68
|
+
# System.UInt32 Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer::get_Stride()
|
|
69
|
+
@_property
|
|
70
|
+
def stride(self) -> winrt.system.UInt32: ...
|
|
71
|
+
|
|
72
|
+
@typing.final
|
|
73
|
+
class SpatialSurfaceMeshOptions_Static(winrt._winrt.IInspectable_Static):
|
|
74
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.Graphics.DirectX.DirectXPixelFormat> Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions::get_SupportedTriangleIndexFormats()
|
|
75
|
+
@_property
|
|
76
|
+
def supported_triangle_index_formats(cls) -> typing.Sequence[windows_graphics_directx.DirectXPixelFormat]: ...
|
|
77
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.Graphics.DirectX.DirectXPixelFormat> Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions::get_SupportedVertexNormalFormats()
|
|
78
|
+
@_property
|
|
79
|
+
def supported_vertex_normal_formats(cls) -> typing.Sequence[windows_graphics_directx.DirectXPixelFormat]: ...
|
|
80
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.Graphics.DirectX.DirectXPixelFormat> Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions::get_SupportedVertexPositionFormats()
|
|
81
|
+
@_property
|
|
82
|
+
def supported_vertex_position_formats(cls) -> typing.Sequence[windows_graphics_directx.DirectXPixelFormat]: ...
|
|
83
|
+
|
|
84
|
+
@typing.final
|
|
85
|
+
class SpatialSurfaceMeshOptions(winrt.system.Object, metaclass=SpatialSurfaceMeshOptions_Static):
|
|
86
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
87
|
+
# Windows.Graphics.DirectX.DirectXPixelFormat Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions::get_VertexPositionFormat()
|
|
88
|
+
@_property
|
|
89
|
+
def vertex_position_format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
|
|
90
|
+
# System.Void Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions::put_VertexPositionFormat(Windows.Graphics.DirectX.DirectXPixelFormat)
|
|
91
|
+
@vertex_position_format.setter
|
|
92
|
+
def vertex_position_format(self, value: windows_graphics_directx.DirectXPixelFormat) -> None: ...
|
|
93
|
+
# Windows.Graphics.DirectX.DirectXPixelFormat Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions::get_VertexNormalFormat()
|
|
94
|
+
@_property
|
|
95
|
+
def vertex_normal_format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
|
|
96
|
+
# System.Void Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions::put_VertexNormalFormat(Windows.Graphics.DirectX.DirectXPixelFormat)
|
|
97
|
+
@vertex_normal_format.setter
|
|
98
|
+
def vertex_normal_format(self, value: windows_graphics_directx.DirectXPixelFormat) -> None: ...
|
|
99
|
+
# Windows.Graphics.DirectX.DirectXPixelFormat Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions::get_TriangleIndexFormat()
|
|
100
|
+
@_property
|
|
101
|
+
def triangle_index_format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
|
|
102
|
+
# System.Void Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions::put_TriangleIndexFormat(Windows.Graphics.DirectX.DirectXPixelFormat)
|
|
103
|
+
@triangle_index_format.setter
|
|
104
|
+
def triangle_index_format(self, value: windows_graphics_directx.DirectXPixelFormat) -> None: ...
|
|
105
|
+
# System.Boolean Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions::get_IncludeVertexNormals()
|
|
106
|
+
@_property
|
|
107
|
+
def include_vertex_normals(self) -> bool: ...
|
|
108
|
+
# System.Void Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions::put_IncludeVertexNormals(System.Boolean)
|
|
109
|
+
@include_vertex_normals.setter
|
|
110
|
+
def include_vertex_normals(self, value: bool) -> None: ...
|
|
111
|
+
|
|
112
|
+
@typing.final
|
|
113
|
+
class SpatialSurfaceObserver_Static(winrt._winrt.IInspectable_Static):
|
|
114
|
+
# System.Boolean Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver::IsSupported()
|
|
115
|
+
def is_supported(cls) -> bool: ...
|
|
116
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Perception.Spatial.SpatialPerceptionAccessStatus> Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver::RequestAccessAsync()
|
|
117
|
+
def request_access_async(cls) -> windows_foundation.IAsyncOperation[windows_perception_spatial.SpatialPerceptionAccessStatus]: ...
|
|
118
|
+
|
|
119
|
+
@typing.final
|
|
120
|
+
class SpatialSurfaceObserver(winrt.system.Object, metaclass=SpatialSurfaceObserver_Static):
|
|
121
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
122
|
+
# Windows.Foundation.Collections.IMapView`2<System.Guid,Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo> Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver::GetObservedSurfaces()
|
|
123
|
+
def get_observed_surfaces(self) -> typing.Mapping[_uuid.UUID, SpatialSurfaceInfo]: ...
|
|
124
|
+
# System.Void Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver::SetBoundingVolume(Windows.Perception.Spatial.SpatialBoundingVolume)
|
|
125
|
+
def set_bounding_volume(self, bounds: windows_perception_spatial.SpatialBoundingVolume, /) -> None: ...
|
|
126
|
+
# System.Void Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver::SetBoundingVolumes(Windows.Foundation.Collections.IIterable`1<Windows.Perception.Spatial.SpatialBoundingVolume>)
|
|
127
|
+
def set_bounding_volumes(self, bounds: typing.Iterable[windows_perception_spatial.SpatialBoundingVolume], /) -> None: ...
|
|
128
|
+
# Windows.Foundation.EventRegistrationToken Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver::add_ObservedSurfacesChanged(Windows.Foundation.TypedEventHandler`2<Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver,System.Object>)
|
|
129
|
+
def add_observed_surfaces_changed(self, handler: windows_foundation.TypedEventHandler[SpatialSurfaceObserver, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
130
|
+
# System.Void Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver::remove_ObservedSurfacesChanged(Windows.Foundation.EventRegistrationToken)
|
|
131
|
+
def remove_observed_surfaces_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
132
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
|
+
|
|
3
|
+
import winrt.system
|
|
4
|
+
from winrt._winrt_windows_perception_spatial_surfaces import (
|
|
5
|
+
SpatialSurfaceInfo,
|
|
6
|
+
SpatialSurfaceMesh,
|
|
7
|
+
SpatialSurfaceMeshBuffer,
|
|
8
|
+
SpatialSurfaceMeshOptions,
|
|
9
|
+
SpatialSurfaceObserver,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"SpatialSurfaceInfo",
|
|
14
|
+
"SpatialSurfaceMesh",
|
|
15
|
+
"SpatialSurfaceMeshBuffer",
|
|
16
|
+
"SpatialSurfaceMeshOptions",
|
|
17
|
+
"SpatialSurfaceObserver",
|
|
18
|
+
]
|
|
19
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Perception.Spatial.Surfaces
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,16 +10,16 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Numerics[all]==
|
|
20
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==
|
|
21
|
-
Requires-Dist: winrt-Windows.Perception.Spatial[all]==
|
|
22
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Numerics[all]==3.0.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==3.0.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Perception.Spatial[all]==3.0.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.0.0; extra == "all"
|
|
23
23
|
|
|
24
24
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
25
25
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
winrt-runtime==3.0.0
|
|
2
|
+
|
|
3
|
+
[all]
|
|
4
|
+
winrt-Windows.Foundation[all]==3.0.0
|
|
5
|
+
winrt-Windows.Foundation.Collections[all]==3.0.0
|
|
6
|
+
winrt-Windows.Foundation.Numerics[all]==3.0.0
|
|
7
|
+
winrt-Windows.Graphics.DirectX[all]==3.0.0
|
|
8
|
+
winrt-Windows.Perception.Spatial[all]==3.0.0
|
|
9
|
+
winrt-Windows.Storage.Streams[all]==3.0.0
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
-
|
|
3
|
-
winrt-Windows.Foundation[all]==2.2.0
|
|
4
|
-
winrt-Windows.Foundation.Collections[all]==2.2.0
|
|
5
|
-
winrt-Windows.Foundation.Numerics[all]==2.2.0
|
|
6
|
-
winrt-Windows.Graphics.DirectX[all]==2.2.0
|
|
7
|
-
winrt-Windows.Perception.Spatial[all]==2.2.0
|
|
8
|
-
winrt-Windows.Storage.Streams[all]==2.2.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.2.0
|
winrt_windows_perception_spatial_surfaces-2.2.0/winrt/_winrt_windows_perception_spatial_surfaces.pyi
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
-
|
|
3
|
-
import datetime
|
|
4
|
-
import sys
|
|
5
|
-
import types
|
|
6
|
-
import typing
|
|
7
|
-
import uuid as _uuid
|
|
8
|
-
from builtins import property as _property
|
|
9
|
-
|
|
10
|
-
import winrt._winrt
|
|
11
|
-
import winrt.system
|
|
12
|
-
import winrt.windows.foundation as windows_foundation
|
|
13
|
-
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
-
import winrt.windows.foundation.numerics as windows_foundation_numerics
|
|
15
|
-
import winrt.windows.graphics.directx as windows_graphics_directx
|
|
16
|
-
import winrt.windows.perception.spatial as windows_perception_spatial
|
|
17
|
-
import winrt.windows.storage.streams as windows_storage_streams
|
|
18
|
-
|
|
19
|
-
Self = typing.TypeVar('Self')
|
|
20
|
-
|
|
21
|
-
@typing.final
|
|
22
|
-
class SpatialSurfaceInfo(winrt.system.Object):
|
|
23
|
-
@staticmethod
|
|
24
|
-
def _from(obj: winrt.system.Object, /) -> SpatialSurfaceInfo: ...
|
|
25
|
-
@typing.overload
|
|
26
|
-
def try_compute_latest_mesh_async(self, max_triangles_per_cubic_meter: winrt.system.Double, /) -> windows_foundation.IAsyncOperation[SpatialSurfaceMesh]: ...
|
|
27
|
-
@typing.overload
|
|
28
|
-
def try_compute_latest_mesh_async(self, max_triangles_per_cubic_meter: winrt.system.Double, options: typing.Optional[SpatialSurfaceMeshOptions], /) -> windows_foundation.IAsyncOperation[SpatialSurfaceMesh]: ...
|
|
29
|
-
def try_get_bounds(self, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], /) -> typing.Optional[typing.Optional[windows_perception_spatial.SpatialBoundingOrientedBox]]: ...
|
|
30
|
-
@_property
|
|
31
|
-
def id(self) -> _uuid.UUID: ...
|
|
32
|
-
@_property
|
|
33
|
-
def update_time(self) -> datetime.datetime: ...
|
|
34
|
-
|
|
35
|
-
@typing.final
|
|
36
|
-
class SpatialSurfaceMesh(winrt.system.Object):
|
|
37
|
-
@staticmethod
|
|
38
|
-
def _from(obj: winrt.system.Object, /) -> SpatialSurfaceMesh: ...
|
|
39
|
-
@_property
|
|
40
|
-
def coordinate_system(self) -> typing.Optional[windows_perception_spatial.SpatialCoordinateSystem]: ...
|
|
41
|
-
@_property
|
|
42
|
-
def surface_info(self) -> typing.Optional[SpatialSurfaceInfo]: ...
|
|
43
|
-
@_property
|
|
44
|
-
def triangle_indices(self) -> typing.Optional[SpatialSurfaceMeshBuffer]: ...
|
|
45
|
-
@_property
|
|
46
|
-
def vertex_normals(self) -> typing.Optional[SpatialSurfaceMeshBuffer]: ...
|
|
47
|
-
@_property
|
|
48
|
-
def vertex_position_scale(self) -> windows_foundation_numerics.Vector3: ...
|
|
49
|
-
@_property
|
|
50
|
-
def vertex_positions(self) -> typing.Optional[SpatialSurfaceMeshBuffer]: ...
|
|
51
|
-
|
|
52
|
-
@typing.final
|
|
53
|
-
class SpatialSurfaceMeshBuffer(winrt.system.Object):
|
|
54
|
-
@staticmethod
|
|
55
|
-
def _from(obj: winrt.system.Object, /) -> SpatialSurfaceMeshBuffer: ...
|
|
56
|
-
@_property
|
|
57
|
-
def data(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
|
|
58
|
-
@_property
|
|
59
|
-
def element_count(self) -> winrt.system.UInt32: ...
|
|
60
|
-
@_property
|
|
61
|
-
def format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
|
|
62
|
-
@_property
|
|
63
|
-
def stride(self) -> winrt.system.UInt32: ...
|
|
64
|
-
|
|
65
|
-
@typing.final
|
|
66
|
-
class SpatialSurfaceMeshOptions_Static(type):
|
|
67
|
-
@_property
|
|
68
|
-
def supported_triangle_index_formats(cls) -> typing.Optional[windows_foundation_collections.IVectorView[windows_graphics_directx.DirectXPixelFormat]]: ...
|
|
69
|
-
@_property
|
|
70
|
-
def supported_vertex_normal_formats(cls) -> typing.Optional[windows_foundation_collections.IVectorView[windows_graphics_directx.DirectXPixelFormat]]: ...
|
|
71
|
-
@_property
|
|
72
|
-
def supported_vertex_position_formats(cls) -> typing.Optional[windows_foundation_collections.IVectorView[windows_graphics_directx.DirectXPixelFormat]]: ...
|
|
73
|
-
|
|
74
|
-
@typing.final
|
|
75
|
-
class SpatialSurfaceMeshOptions(winrt.system.Object, metaclass=SpatialSurfaceMeshOptions_Static):
|
|
76
|
-
@staticmethod
|
|
77
|
-
def _from(obj: winrt.system.Object, /) -> SpatialSurfaceMeshOptions: ...
|
|
78
|
-
def __new__(cls: typing.Type[SpatialSurfaceMeshOptions]) -> SpatialSurfaceMeshOptions: ...
|
|
79
|
-
@_property
|
|
80
|
-
def vertex_position_format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
|
|
81
|
-
@vertex_position_format.setter
|
|
82
|
-
def vertex_position_format(self, value: windows_graphics_directx.DirectXPixelFormat) -> None: ...
|
|
83
|
-
@_property
|
|
84
|
-
def vertex_normal_format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
|
|
85
|
-
@vertex_normal_format.setter
|
|
86
|
-
def vertex_normal_format(self, value: windows_graphics_directx.DirectXPixelFormat) -> None: ...
|
|
87
|
-
@_property
|
|
88
|
-
def triangle_index_format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
|
|
89
|
-
@triangle_index_format.setter
|
|
90
|
-
def triangle_index_format(self, value: windows_graphics_directx.DirectXPixelFormat) -> None: ...
|
|
91
|
-
@_property
|
|
92
|
-
def include_vertex_normals(self) -> bool: ...
|
|
93
|
-
@include_vertex_normals.setter
|
|
94
|
-
def include_vertex_normals(self, value: bool) -> None: ...
|
|
95
|
-
|
|
96
|
-
@typing.final
|
|
97
|
-
class SpatialSurfaceObserver_Static(type):
|
|
98
|
-
def is_supported(cls) -> bool: ...
|
|
99
|
-
def request_access_async(cls) -> windows_foundation.IAsyncOperation[windows_perception_spatial.SpatialPerceptionAccessStatus]: ...
|
|
100
|
-
|
|
101
|
-
@typing.final
|
|
102
|
-
class SpatialSurfaceObserver(winrt.system.Object, metaclass=SpatialSurfaceObserver_Static):
|
|
103
|
-
@staticmethod
|
|
104
|
-
def _from(obj: winrt.system.Object, /) -> SpatialSurfaceObserver: ...
|
|
105
|
-
def __new__(cls: typing.Type[SpatialSurfaceObserver]) -> SpatialSurfaceObserver: ...
|
|
106
|
-
def get_observed_surfaces(self) -> typing.Optional[windows_foundation_collections.IMapView[_uuid.UUID, SpatialSurfaceInfo]]: ...
|
|
107
|
-
def set_bounding_volume(self, bounds: typing.Optional[windows_perception_spatial.SpatialBoundingVolume], /) -> None: ...
|
|
108
|
-
def set_bounding_volumes(self, bounds: typing.Iterable[windows_perception_spatial.SpatialBoundingVolume], /) -> None: ...
|
|
109
|
-
def add_observed_surfaces_changed(self, handler: windows_foundation.TypedEventHandler[SpatialSurfaceObserver, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
110
|
-
def remove_observed_surfaces_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
111
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
-
|
|
3
|
-
import winrt.system
|
|
4
|
-
from winrt import _winrt_windows_perception_spatial_surfaces
|
|
5
|
-
|
|
6
|
-
__all__ = [
|
|
7
|
-
"SpatialSurfaceInfo",
|
|
8
|
-
"SpatialSurfaceMesh",
|
|
9
|
-
"SpatialSurfaceMeshBuffer",
|
|
10
|
-
"SpatialSurfaceMeshOptions",
|
|
11
|
-
"SpatialSurfaceObserver",
|
|
12
|
-
]
|
|
13
|
-
|
|
14
|
-
SpatialSurfaceInfo = _winrt_windows_perception_spatial_surfaces.SpatialSurfaceInfo
|
|
15
|
-
SpatialSurfaceMesh = _winrt_windows_perception_spatial_surfaces.SpatialSurfaceMesh
|
|
16
|
-
SpatialSurfaceMeshBuffer = _winrt_windows_perception_spatial_surfaces.SpatialSurfaceMeshBuffer
|
|
17
|
-
SpatialSurfaceMeshOptions = _winrt_windows_perception_spatial_surfaces.SpatialSurfaceMeshOptions
|
|
18
|
-
SpatialSurfaceObserver = _winrt_windows_perception_spatial_surfaces.SpatialSurfaceObserver
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.2.0
|
|
2
|
-
|
|
3
|
-
[all]
|
|
4
|
-
winrt-Windows.Foundation[all]==2.2.0
|
|
5
|
-
winrt-Windows.Foundation.Collections[all]==2.2.0
|
|
6
|
-
winrt-Windows.Foundation.Numerics[all]==2.2.0
|
|
7
|
-
winrt-Windows.Graphics.DirectX[all]==2.2.0
|
|
8
|
-
winrt-Windows.Perception.Spatial[all]==2.2.0
|
|
9
|
-
winrt-Windows.Storage.Streams[all]==2.2.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|