winrt-Windows.Perception.Spatial.Surfaces 2.0.0b2__tar.gz → 2.1.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.0.0b2 → winrt_windows_perception_spatial_surfaces-2.1.0}/PKG-INFO +8 -1
- winrt_windows_perception_spatial_surfaces-2.1.0/all-requirements.txt +8 -0
- {winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2 → winrt_windows_perception_spatial_surfaces-2.1.0}/py.Windows.Perception.Spatial.Surfaces.cpp +230 -247
- {winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2 → winrt_windows_perception_spatial_surfaces-2.1.0}/pyproject.toml +2 -2
- winrt_windows_perception_spatial_surfaces-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2 → winrt_windows_perception_spatial_surfaces-2.1.0}/requirements.txt +2 -2
- winrt_windows_perception_spatial_surfaces-2.1.0/setup.py +31 -0
- {winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2 → winrt_windows_perception_spatial_surfaces-2.1.0}/winrt/_winrt_windows_perception_spatial_surfaces.pyi +31 -31
- {winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2 → winrt_windows_perception_spatial_surfaces-2.1.0}/winrt/windows/perception/spatial/surfaces/__init__.py +1 -1
- winrt_windows_perception_spatial_surfaces-2.1.0/winrt/windows/perception/spatial/surfaces/py.typed +0 -0
- {winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2 → winrt_windows_perception_spatial_surfaces-2.1.0}/winrt_Windows.Perception.Spatial.Surfaces.egg-info/PKG-INFO +8 -1
- {winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2 → winrt_windows_perception_spatial_surfaces-2.1.0}/winrt_Windows.Perception.Spatial.Surfaces.egg-info/SOURCES.txt +1 -0
- winrt_windows_perception_spatial_surfaces-2.1.0/winrt_Windows.Perception.Spatial.Surfaces.egg-info/requires.txt +9 -0
- winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2/all-requirements.txt +0 -8
- winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2/setup.py +0 -16
- winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2/winrt_Windows.Perception.Spatial.Surfaces.egg-info/requires.txt +0 -9
- {winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2 → winrt_windows_perception_spatial_surfaces-2.1.0}/README.md +0 -0
- {winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2 → winrt_windows_perception_spatial_surfaces-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2 → winrt_windows_perception_spatial_surfaces-2.1.0}/winrt_Windows.Perception.Spatial.Surfaces.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.Perception.Spatial.Surfaces-2.0.0b2 → winrt_windows_perception_spatial_surfaces-2.1.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: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,14 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.1.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.1.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
|
|
16
23
|
|
|
17
24
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
25
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.Foundation[all]==2.1.0
|
|
4
|
+
winrt-Windows.Foundation.Collections[all]==2.1.0
|
|
5
|
+
winrt-Windows.Foundation.Numerics[all]==2.1.0
|
|
6
|
+
winrt-Windows.Graphics.DirectX[all]==2.1.0
|
|
7
|
+
winrt-Windows.Perception.Spatial[all]==2.1.0
|
|
8
|
+
winrt-Windows.Storage.Streams[all]==2.1.0
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Perception.Spatial.Surfaces.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
7
6
|
{
|
|
8
7
|
// ----- SpatialSurfaceInfo class --------------------
|
|
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 1)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"TryComputeLatestMeshAsync", 1))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(1);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"TryComputeLatestMeshAsync", 1))
|
|
33
|
+
{
|
|
34
|
+
py::set_arg_count_version_error(1);
|
|
35
|
+
return nullptr;
|
|
36
|
+
}
|
|
37
|
+
|
|
39
38
|
auto param0 = py::convert_to<double>(args, 0);
|
|
40
39
|
|
|
41
40
|
return py::convert(self->obj.TryComputeLatestMeshAsync(param0));
|
|
@@ -48,14 +47,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
48
47
|
}
|
|
49
48
|
else if (arg_count == 2)
|
|
50
49
|
{
|
|
51
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"TryComputeLatestMeshAsync", 2))
|
|
52
|
-
{
|
|
53
|
-
py::set_arg_count_version_error(2);
|
|
54
|
-
return nullptr;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
50
|
try
|
|
58
51
|
{
|
|
52
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"TryComputeLatestMeshAsync", 2))
|
|
53
|
+
{
|
|
54
|
+
py::set_arg_count_version_error(2);
|
|
55
|
+
return nullptr;
|
|
56
|
+
}
|
|
57
|
+
|
|
59
58
|
auto param0 = py::convert_to<double>(args, 0);
|
|
60
59
|
auto param1 = py::convert_to<winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions>(args, 1);
|
|
61
60
|
|
|
@@ -80,14 +79,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
80
79
|
|
|
81
80
|
if (arg_count == 1)
|
|
82
81
|
{
|
|
83
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"TryGetBounds", 1))
|
|
84
|
-
{
|
|
85
|
-
py::set_arg_count_version_error(1);
|
|
86
|
-
return nullptr;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
82
|
try
|
|
90
83
|
{
|
|
84
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"TryGetBounds", 1))
|
|
85
|
+
{
|
|
86
|
+
py::set_arg_count_version_error(1);
|
|
87
|
+
return nullptr;
|
|
88
|
+
}
|
|
89
|
+
|
|
91
90
|
auto param0 = py::convert_to<winrt::Windows::Perception::Spatial::SpatialCoordinateSystem>(args, 0);
|
|
92
91
|
|
|
93
92
|
return py::convert(self->obj.TryGetBounds(param0));
|
|
@@ -107,14 +106,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
107
106
|
|
|
108
107
|
static PyObject* SpatialSurfaceInfo_get_Id(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceInfo* self, void* /*unused*/) noexcept
|
|
109
108
|
{
|
|
110
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"Id"))
|
|
111
|
-
{
|
|
112
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
113
|
-
return nullptr;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
109
|
try
|
|
117
110
|
{
|
|
111
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"Id"))
|
|
112
|
+
{
|
|
113
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
114
|
+
return nullptr;
|
|
115
|
+
}
|
|
116
|
+
|
|
118
117
|
return py::convert(self->obj.Id());
|
|
119
118
|
}
|
|
120
119
|
catch (...)
|
|
@@ -126,14 +125,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
126
125
|
|
|
127
126
|
static PyObject* SpatialSurfaceInfo_get_UpdateTime(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceInfo* self, void* /*unused*/) noexcept
|
|
128
127
|
{
|
|
129
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"UpdateTime"))
|
|
130
|
-
{
|
|
131
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
132
|
-
return nullptr;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
128
|
try
|
|
136
129
|
{
|
|
130
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"UpdateTime"))
|
|
131
|
+
{
|
|
132
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
133
|
+
return nullptr;
|
|
134
|
+
}
|
|
135
|
+
|
|
137
136
|
return py::convert(self->obj.UpdateTime());
|
|
138
137
|
}
|
|
139
138
|
catch (...)
|
|
@@ -181,23 +180,20 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
181
180
|
{ }
|
|
182
181
|
};
|
|
183
182
|
|
|
184
|
-
static PyType_Slot _type_slots_SpatialSurfaceInfo[] =
|
|
185
|
-
{
|
|
183
|
+
static PyType_Slot _type_slots_SpatialSurfaceInfo[] = {
|
|
186
184
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SpatialSurfaceInfo) },
|
|
187
185
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SpatialSurfaceInfo) },
|
|
188
186
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SpatialSurfaceInfo) },
|
|
189
187
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SpatialSurfaceInfo) },
|
|
190
|
-
{ }
|
|
188
|
+
{ }
|
|
191
189
|
};
|
|
192
190
|
|
|
193
|
-
static PyType_Spec type_spec_SpatialSurfaceInfo =
|
|
194
|
-
{
|
|
191
|
+
static PyType_Spec type_spec_SpatialSurfaceInfo = {
|
|
195
192
|
"winrt._winrt_windows_perception_spatial_surfaces.SpatialSurfaceInfo",
|
|
196
193
|
sizeof(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceInfo),
|
|
197
194
|
0,
|
|
198
195
|
Py_TPFLAGS_DEFAULT,
|
|
199
|
-
_type_slots_SpatialSurfaceInfo
|
|
200
|
-
};
|
|
196
|
+
_type_slots_SpatialSurfaceInfo};
|
|
201
197
|
|
|
202
198
|
// ----- SpatialSurfaceMesh class --------------------
|
|
203
199
|
|
|
@@ -218,14 +214,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
218
214
|
|
|
219
215
|
static PyObject* SpatialSurfaceMesh_get_CoordinateSystem(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMesh* self, void* /*unused*/) noexcept
|
|
220
216
|
{
|
|
221
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"CoordinateSystem"))
|
|
222
|
-
{
|
|
223
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
224
|
-
return nullptr;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
217
|
try
|
|
228
218
|
{
|
|
219
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"CoordinateSystem"))
|
|
220
|
+
{
|
|
221
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
222
|
+
return nullptr;
|
|
223
|
+
}
|
|
224
|
+
|
|
229
225
|
return py::convert(self->obj.CoordinateSystem());
|
|
230
226
|
}
|
|
231
227
|
catch (...)
|
|
@@ -237,14 +233,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
237
233
|
|
|
238
234
|
static PyObject* SpatialSurfaceMesh_get_SurfaceInfo(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMesh* self, void* /*unused*/) noexcept
|
|
239
235
|
{
|
|
240
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"SurfaceInfo"))
|
|
241
|
-
{
|
|
242
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
243
|
-
return nullptr;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
236
|
try
|
|
247
237
|
{
|
|
238
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"SurfaceInfo"))
|
|
239
|
+
{
|
|
240
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
241
|
+
return nullptr;
|
|
242
|
+
}
|
|
243
|
+
|
|
248
244
|
return py::convert(self->obj.SurfaceInfo());
|
|
249
245
|
}
|
|
250
246
|
catch (...)
|
|
@@ -256,14 +252,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
256
252
|
|
|
257
253
|
static PyObject* SpatialSurfaceMesh_get_TriangleIndices(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMesh* self, void* /*unused*/) noexcept
|
|
258
254
|
{
|
|
259
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"TriangleIndices"))
|
|
260
|
-
{
|
|
261
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
262
|
-
return nullptr;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
255
|
try
|
|
266
256
|
{
|
|
257
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"TriangleIndices"))
|
|
258
|
+
{
|
|
259
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
260
|
+
return nullptr;
|
|
261
|
+
}
|
|
262
|
+
|
|
267
263
|
return py::convert(self->obj.TriangleIndices());
|
|
268
264
|
}
|
|
269
265
|
catch (...)
|
|
@@ -275,14 +271,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
275
271
|
|
|
276
272
|
static PyObject* SpatialSurfaceMesh_get_VertexNormals(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMesh* self, void* /*unused*/) noexcept
|
|
277
273
|
{
|
|
278
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"VertexNormals"))
|
|
279
|
-
{
|
|
280
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
281
|
-
return nullptr;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
274
|
try
|
|
285
275
|
{
|
|
276
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"VertexNormals"))
|
|
277
|
+
{
|
|
278
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
279
|
+
return nullptr;
|
|
280
|
+
}
|
|
281
|
+
|
|
286
282
|
return py::convert(self->obj.VertexNormals());
|
|
287
283
|
}
|
|
288
284
|
catch (...)
|
|
@@ -294,14 +290,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
294
290
|
|
|
295
291
|
static PyObject* SpatialSurfaceMesh_get_VertexPositionScale(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMesh* self, void* /*unused*/) noexcept
|
|
296
292
|
{
|
|
297
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"VertexPositionScale"))
|
|
298
|
-
{
|
|
299
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
300
|
-
return nullptr;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
293
|
try
|
|
304
294
|
{
|
|
295
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"VertexPositionScale"))
|
|
296
|
+
{
|
|
297
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
298
|
+
return nullptr;
|
|
299
|
+
}
|
|
300
|
+
|
|
305
301
|
return py::convert(self->obj.VertexPositionScale());
|
|
306
302
|
}
|
|
307
303
|
catch (...)
|
|
@@ -313,14 +309,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
313
309
|
|
|
314
310
|
static PyObject* SpatialSurfaceMesh_get_VertexPositions(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMesh* self, void* /*unused*/) noexcept
|
|
315
311
|
{
|
|
316
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"VertexPositions"))
|
|
317
|
-
{
|
|
318
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
319
|
-
return nullptr;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
312
|
try
|
|
323
313
|
{
|
|
314
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"VertexPositions"))
|
|
315
|
+
{
|
|
316
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
317
|
+
return nullptr;
|
|
318
|
+
}
|
|
319
|
+
|
|
324
320
|
return py::convert(self->obj.VertexPositions());
|
|
325
321
|
}
|
|
326
322
|
catch (...)
|
|
@@ -370,23 +366,20 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
370
366
|
{ }
|
|
371
367
|
};
|
|
372
368
|
|
|
373
|
-
static PyType_Slot _type_slots_SpatialSurfaceMesh[] =
|
|
374
|
-
{
|
|
369
|
+
static PyType_Slot _type_slots_SpatialSurfaceMesh[] = {
|
|
375
370
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SpatialSurfaceMesh) },
|
|
376
371
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SpatialSurfaceMesh) },
|
|
377
372
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SpatialSurfaceMesh) },
|
|
378
373
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SpatialSurfaceMesh) },
|
|
379
|
-
{ }
|
|
374
|
+
{ }
|
|
380
375
|
};
|
|
381
376
|
|
|
382
|
-
static PyType_Spec type_spec_SpatialSurfaceMesh =
|
|
383
|
-
{
|
|
377
|
+
static PyType_Spec type_spec_SpatialSurfaceMesh = {
|
|
384
378
|
"winrt._winrt_windows_perception_spatial_surfaces.SpatialSurfaceMesh",
|
|
385
379
|
sizeof(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMesh),
|
|
386
380
|
0,
|
|
387
381
|
Py_TPFLAGS_DEFAULT,
|
|
388
|
-
_type_slots_SpatialSurfaceMesh
|
|
389
|
-
};
|
|
382
|
+
_type_slots_SpatialSurfaceMesh};
|
|
390
383
|
|
|
391
384
|
// ----- SpatialSurfaceMeshBuffer class --------------------
|
|
392
385
|
|
|
@@ -407,14 +400,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
407
400
|
|
|
408
401
|
static PyObject* SpatialSurfaceMeshBuffer_get_Data(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshBuffer* self, void* /*unused*/) noexcept
|
|
409
402
|
{
|
|
410
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"Data"))
|
|
411
|
-
{
|
|
412
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
413
|
-
return nullptr;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
403
|
try
|
|
417
404
|
{
|
|
405
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"Data"))
|
|
406
|
+
{
|
|
407
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
408
|
+
return nullptr;
|
|
409
|
+
}
|
|
410
|
+
|
|
418
411
|
return py::convert(self->obj.Data());
|
|
419
412
|
}
|
|
420
413
|
catch (...)
|
|
@@ -426,14 +419,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
426
419
|
|
|
427
420
|
static PyObject* SpatialSurfaceMeshBuffer_get_ElementCount(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshBuffer* self, void* /*unused*/) noexcept
|
|
428
421
|
{
|
|
429
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"ElementCount"))
|
|
430
|
-
{
|
|
431
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
432
|
-
return nullptr;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
422
|
try
|
|
436
423
|
{
|
|
424
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"ElementCount"))
|
|
425
|
+
{
|
|
426
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
427
|
+
return nullptr;
|
|
428
|
+
}
|
|
429
|
+
|
|
437
430
|
return py::convert(self->obj.ElementCount());
|
|
438
431
|
}
|
|
439
432
|
catch (...)
|
|
@@ -445,14 +438,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
445
438
|
|
|
446
439
|
static PyObject* SpatialSurfaceMeshBuffer_get_Format(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshBuffer* self, void* /*unused*/) noexcept
|
|
447
440
|
{
|
|
448
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"Format"))
|
|
449
|
-
{
|
|
450
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
451
|
-
return nullptr;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
441
|
try
|
|
455
442
|
{
|
|
443
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"Format"))
|
|
444
|
+
{
|
|
445
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
446
|
+
return nullptr;
|
|
447
|
+
}
|
|
448
|
+
|
|
456
449
|
return py::convert(self->obj.Format());
|
|
457
450
|
}
|
|
458
451
|
catch (...)
|
|
@@ -464,14 +457,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
464
457
|
|
|
465
458
|
static PyObject* SpatialSurfaceMeshBuffer_get_Stride(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshBuffer* self, void* /*unused*/) noexcept
|
|
466
459
|
{
|
|
467
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"Stride"))
|
|
468
|
-
{
|
|
469
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
470
|
-
return nullptr;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
460
|
try
|
|
474
461
|
{
|
|
462
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"Stride"))
|
|
463
|
+
{
|
|
464
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
465
|
+
return nullptr;
|
|
466
|
+
}
|
|
467
|
+
|
|
475
468
|
return py::convert(self->obj.Stride());
|
|
476
469
|
}
|
|
477
470
|
catch (...)
|
|
@@ -519,23 +512,20 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
519
512
|
{ }
|
|
520
513
|
};
|
|
521
514
|
|
|
522
|
-
static PyType_Slot _type_slots_SpatialSurfaceMeshBuffer[] =
|
|
523
|
-
{
|
|
515
|
+
static PyType_Slot _type_slots_SpatialSurfaceMeshBuffer[] = {
|
|
524
516
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SpatialSurfaceMeshBuffer) },
|
|
525
517
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SpatialSurfaceMeshBuffer) },
|
|
526
518
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SpatialSurfaceMeshBuffer) },
|
|
527
519
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SpatialSurfaceMeshBuffer) },
|
|
528
|
-
{ }
|
|
520
|
+
{ }
|
|
529
521
|
};
|
|
530
522
|
|
|
531
|
-
static PyType_Spec type_spec_SpatialSurfaceMeshBuffer =
|
|
532
|
-
{
|
|
523
|
+
static PyType_Spec type_spec_SpatialSurfaceMeshBuffer = {
|
|
533
524
|
"winrt._winrt_windows_perception_spatial_surfaces.SpatialSurfaceMeshBuffer",
|
|
534
525
|
sizeof(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshBuffer),
|
|
535
526
|
0,
|
|
536
527
|
Py_TPFLAGS_DEFAULT,
|
|
537
|
-
_type_slots_SpatialSurfaceMeshBuffer
|
|
538
|
-
};
|
|
528
|
+
_type_slots_SpatialSurfaceMeshBuffer};
|
|
539
529
|
|
|
540
530
|
// ----- SpatialSurfaceMeshOptions class --------------------
|
|
541
531
|
|
|
@@ -578,14 +568,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
578
568
|
|
|
579
569
|
static PyObject* SpatialSurfaceMeshOptions_get_VertexPositionFormat(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions* self, void* /*unused*/) noexcept
|
|
580
570
|
{
|
|
581
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexPositionFormat"))
|
|
582
|
-
{
|
|
583
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
584
|
-
return nullptr;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
571
|
try
|
|
588
572
|
{
|
|
573
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexPositionFormat"))
|
|
574
|
+
{
|
|
575
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
576
|
+
return nullptr;
|
|
577
|
+
}
|
|
578
|
+
|
|
589
579
|
return py::convert(self->obj.VertexPositionFormat());
|
|
590
580
|
}
|
|
591
581
|
catch (...)
|
|
@@ -597,12 +587,6 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
597
587
|
|
|
598
588
|
static int SpatialSurfaceMeshOptions_put_VertexPositionFormat(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
599
589
|
{
|
|
600
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexPositionFormat"))
|
|
601
|
-
{
|
|
602
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
603
|
-
return -1;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
590
|
if (arg == nullptr)
|
|
607
591
|
{
|
|
608
592
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -611,6 +595,12 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
611
595
|
|
|
612
596
|
try
|
|
613
597
|
{
|
|
598
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexPositionFormat"))
|
|
599
|
+
{
|
|
600
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
601
|
+
return -1;
|
|
602
|
+
}
|
|
603
|
+
|
|
614
604
|
auto param0 = py::convert_to<winrt::Windows::Graphics::DirectX::DirectXPixelFormat>(arg);
|
|
615
605
|
|
|
616
606
|
self->obj.VertexPositionFormat(param0);
|
|
@@ -625,14 +615,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
625
615
|
|
|
626
616
|
static PyObject* SpatialSurfaceMeshOptions_get_VertexNormalFormat(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions* self, void* /*unused*/) noexcept
|
|
627
617
|
{
|
|
628
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexNormalFormat"))
|
|
629
|
-
{
|
|
630
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
631
|
-
return nullptr;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
618
|
try
|
|
635
619
|
{
|
|
620
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexNormalFormat"))
|
|
621
|
+
{
|
|
622
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
623
|
+
return nullptr;
|
|
624
|
+
}
|
|
625
|
+
|
|
636
626
|
return py::convert(self->obj.VertexNormalFormat());
|
|
637
627
|
}
|
|
638
628
|
catch (...)
|
|
@@ -644,12 +634,6 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
644
634
|
|
|
645
635
|
static int SpatialSurfaceMeshOptions_put_VertexNormalFormat(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
646
636
|
{
|
|
647
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexNormalFormat"))
|
|
648
|
-
{
|
|
649
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
650
|
-
return -1;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
637
|
if (arg == nullptr)
|
|
654
638
|
{
|
|
655
639
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -658,6 +642,12 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
658
642
|
|
|
659
643
|
try
|
|
660
644
|
{
|
|
645
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexNormalFormat"))
|
|
646
|
+
{
|
|
647
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
648
|
+
return -1;
|
|
649
|
+
}
|
|
650
|
+
|
|
661
651
|
auto param0 = py::convert_to<winrt::Windows::Graphics::DirectX::DirectXPixelFormat>(arg);
|
|
662
652
|
|
|
663
653
|
self->obj.VertexNormalFormat(param0);
|
|
@@ -672,14 +662,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
672
662
|
|
|
673
663
|
static PyObject* SpatialSurfaceMeshOptions_get_TriangleIndexFormat(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions* self, void* /*unused*/) noexcept
|
|
674
664
|
{
|
|
675
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"TriangleIndexFormat"))
|
|
676
|
-
{
|
|
677
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
678
|
-
return nullptr;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
665
|
try
|
|
682
666
|
{
|
|
667
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"TriangleIndexFormat"))
|
|
668
|
+
{
|
|
669
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
670
|
+
return nullptr;
|
|
671
|
+
}
|
|
672
|
+
|
|
683
673
|
return py::convert(self->obj.TriangleIndexFormat());
|
|
684
674
|
}
|
|
685
675
|
catch (...)
|
|
@@ -691,12 +681,6 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
691
681
|
|
|
692
682
|
static int SpatialSurfaceMeshOptions_put_TriangleIndexFormat(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
693
683
|
{
|
|
694
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"TriangleIndexFormat"))
|
|
695
|
-
{
|
|
696
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
697
|
-
return -1;
|
|
698
|
-
}
|
|
699
|
-
|
|
700
684
|
if (arg == nullptr)
|
|
701
685
|
{
|
|
702
686
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -705,6 +689,12 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
705
689
|
|
|
706
690
|
try
|
|
707
691
|
{
|
|
692
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"TriangleIndexFormat"))
|
|
693
|
+
{
|
|
694
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
695
|
+
return -1;
|
|
696
|
+
}
|
|
697
|
+
|
|
708
698
|
auto param0 = py::convert_to<winrt::Windows::Graphics::DirectX::DirectXPixelFormat>(arg);
|
|
709
699
|
|
|
710
700
|
self->obj.TriangleIndexFormat(param0);
|
|
@@ -719,14 +709,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
719
709
|
|
|
720
710
|
static PyObject* SpatialSurfaceMeshOptions_get_IncludeVertexNormals(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions* self, void* /*unused*/) noexcept
|
|
721
711
|
{
|
|
722
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"IncludeVertexNormals"))
|
|
723
|
-
{
|
|
724
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
725
|
-
return nullptr;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
712
|
try
|
|
729
713
|
{
|
|
714
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"IncludeVertexNormals"))
|
|
715
|
+
{
|
|
716
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
717
|
+
return nullptr;
|
|
718
|
+
}
|
|
719
|
+
|
|
730
720
|
return py::convert(self->obj.IncludeVertexNormals());
|
|
731
721
|
}
|
|
732
722
|
catch (...)
|
|
@@ -738,12 +728,6 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
738
728
|
|
|
739
729
|
static int SpatialSurfaceMeshOptions_put_IncludeVertexNormals(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
740
730
|
{
|
|
741
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"IncludeVertexNormals"))
|
|
742
|
-
{
|
|
743
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
744
|
-
return -1;
|
|
745
|
-
}
|
|
746
|
-
|
|
747
731
|
if (arg == nullptr)
|
|
748
732
|
{
|
|
749
733
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -752,6 +736,12 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
752
736
|
|
|
753
737
|
try
|
|
754
738
|
{
|
|
739
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"IncludeVertexNormals"))
|
|
740
|
+
{
|
|
741
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
742
|
+
return -1;
|
|
743
|
+
}
|
|
744
|
+
|
|
755
745
|
auto param0 = py::convert_to<bool>(arg);
|
|
756
746
|
|
|
757
747
|
self->obj.IncludeVertexNormals(param0);
|
|
@@ -766,14 +756,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
766
756
|
|
|
767
757
|
static PyObject* SpatialSurfaceMeshOptions_get_SupportedTriangleIndexFormats(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
768
758
|
{
|
|
769
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"SupportedTriangleIndexFormats"))
|
|
770
|
-
{
|
|
771
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
772
|
-
return nullptr;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
759
|
try
|
|
776
760
|
{
|
|
761
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"SupportedTriangleIndexFormats"))
|
|
762
|
+
{
|
|
763
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
764
|
+
return nullptr;
|
|
765
|
+
}
|
|
766
|
+
|
|
777
767
|
return py::convert(winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions::SupportedTriangleIndexFormats());
|
|
778
768
|
}
|
|
779
769
|
catch (...)
|
|
@@ -785,14 +775,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
785
775
|
|
|
786
776
|
static PyObject* SpatialSurfaceMeshOptions_get_SupportedVertexNormalFormats(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
787
777
|
{
|
|
788
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"SupportedVertexNormalFormats"))
|
|
789
|
-
{
|
|
790
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
791
|
-
return nullptr;
|
|
792
|
-
}
|
|
793
|
-
|
|
794
778
|
try
|
|
795
779
|
{
|
|
780
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"SupportedVertexNormalFormats"))
|
|
781
|
+
{
|
|
782
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
783
|
+
return nullptr;
|
|
784
|
+
}
|
|
785
|
+
|
|
796
786
|
return py::convert(winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions::SupportedVertexNormalFormats());
|
|
797
787
|
}
|
|
798
788
|
catch (...)
|
|
@@ -804,14 +794,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
804
794
|
|
|
805
795
|
static PyObject* SpatialSurfaceMeshOptions_get_SupportedVertexPositionFormats(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
806
796
|
{
|
|
807
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"SupportedVertexPositionFormats"))
|
|
808
|
-
{
|
|
809
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
810
|
-
return nullptr;
|
|
811
|
-
}
|
|
812
|
-
|
|
813
797
|
try
|
|
814
798
|
{
|
|
799
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"SupportedVertexPositionFormats"))
|
|
800
|
+
{
|
|
801
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
802
|
+
return nullptr;
|
|
803
|
+
}
|
|
804
|
+
|
|
815
805
|
return py::convert(winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions::SupportedVertexPositionFormats());
|
|
816
806
|
}
|
|
817
807
|
catch (...)
|
|
@@ -859,23 +849,20 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
859
849
|
{ }
|
|
860
850
|
};
|
|
861
851
|
|
|
862
|
-
static PyType_Slot _type_slots_SpatialSurfaceMeshOptions[] =
|
|
863
|
-
{
|
|
852
|
+
static PyType_Slot _type_slots_SpatialSurfaceMeshOptions[] = {
|
|
864
853
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SpatialSurfaceMeshOptions) },
|
|
865
854
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SpatialSurfaceMeshOptions) },
|
|
866
855
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SpatialSurfaceMeshOptions) },
|
|
867
856
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SpatialSurfaceMeshOptions) },
|
|
868
|
-
{ }
|
|
857
|
+
{ }
|
|
869
858
|
};
|
|
870
859
|
|
|
871
|
-
static PyType_Spec type_spec_SpatialSurfaceMeshOptions =
|
|
872
|
-
{
|
|
860
|
+
static PyType_Spec type_spec_SpatialSurfaceMeshOptions = {
|
|
873
861
|
"winrt._winrt_windows_perception_spatial_surfaces.SpatialSurfaceMeshOptions",
|
|
874
862
|
sizeof(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions),
|
|
875
863
|
0,
|
|
876
864
|
Py_TPFLAGS_DEFAULT,
|
|
877
|
-
_type_slots_SpatialSurfaceMeshOptions
|
|
878
|
-
};
|
|
865
|
+
_type_slots_SpatialSurfaceMeshOptions};
|
|
879
866
|
|
|
880
867
|
static PyGetSetDef getset_SpatialSurfaceMeshOptions_Static[] = {
|
|
881
868
|
{ "supported_triangle_index_formats", reinterpret_cast<getter>(SpatialSurfaceMeshOptions_get_SupportedTriangleIndexFormats), nullptr, nullptr, nullptr },
|
|
@@ -950,14 +937,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
950
937
|
|
|
951
938
|
if (arg_count == 0)
|
|
952
939
|
{
|
|
953
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"GetObservedSurfaces", 0))
|
|
954
|
-
{
|
|
955
|
-
py::set_arg_count_version_error(0);
|
|
956
|
-
return nullptr;
|
|
957
|
-
}
|
|
958
|
-
|
|
959
940
|
try
|
|
960
941
|
{
|
|
942
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"GetObservedSurfaces", 0))
|
|
943
|
+
{
|
|
944
|
+
py::set_arg_count_version_error(0);
|
|
945
|
+
return nullptr;
|
|
946
|
+
}
|
|
947
|
+
|
|
961
948
|
return py::convert(self->obj.GetObservedSurfaces());
|
|
962
949
|
}
|
|
963
950
|
catch (...)
|
|
@@ -979,14 +966,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
979
966
|
|
|
980
967
|
if (arg_count == 0)
|
|
981
968
|
{
|
|
982
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"IsSupported", 0))
|
|
983
|
-
{
|
|
984
|
-
py::set_arg_count_version_error(0);
|
|
985
|
-
return nullptr;
|
|
986
|
-
}
|
|
987
|
-
|
|
988
969
|
try
|
|
989
970
|
{
|
|
971
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"IsSupported", 0))
|
|
972
|
+
{
|
|
973
|
+
py::set_arg_count_version_error(0);
|
|
974
|
+
return nullptr;
|
|
975
|
+
}
|
|
976
|
+
|
|
990
977
|
return py::convert(winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceObserver::IsSupported());
|
|
991
978
|
}
|
|
992
979
|
catch (...)
|
|
@@ -1008,14 +995,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1008
995
|
|
|
1009
996
|
if (arg_count == 0)
|
|
1010
997
|
{
|
|
1011
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"RequestAccessAsync", 0))
|
|
1012
|
-
{
|
|
1013
|
-
py::set_arg_count_version_error(0);
|
|
1014
|
-
return nullptr;
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
998
|
try
|
|
1018
999
|
{
|
|
1000
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"RequestAccessAsync", 0))
|
|
1001
|
+
{
|
|
1002
|
+
py::set_arg_count_version_error(0);
|
|
1003
|
+
return nullptr;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1019
1006
|
return py::convert(winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceObserver::RequestAccessAsync());
|
|
1020
1007
|
}
|
|
1021
1008
|
catch (...)
|
|
@@ -1037,14 +1024,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1037
1024
|
|
|
1038
1025
|
if (arg_count == 1)
|
|
1039
1026
|
{
|
|
1040
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"SetBoundingVolume", 1))
|
|
1041
|
-
{
|
|
1042
|
-
py::set_arg_count_version_error(1);
|
|
1043
|
-
return nullptr;
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
1027
|
try
|
|
1047
1028
|
{
|
|
1029
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"SetBoundingVolume", 1))
|
|
1030
|
+
{
|
|
1031
|
+
py::set_arg_count_version_error(1);
|
|
1032
|
+
return nullptr;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1048
1035
|
auto param0 = py::convert_to<winrt::Windows::Perception::Spatial::SpatialBoundingVolume>(args, 0);
|
|
1049
1036
|
|
|
1050
1037
|
self->obj.SetBoundingVolume(param0);
|
|
@@ -1069,14 +1056,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1069
1056
|
|
|
1070
1057
|
if (arg_count == 1)
|
|
1071
1058
|
{
|
|
1072
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"SetBoundingVolumes", 1))
|
|
1073
|
-
{
|
|
1074
|
-
py::set_arg_count_version_error(1);
|
|
1075
|
-
return nullptr;
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
1059
|
try
|
|
1079
1060
|
{
|
|
1061
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"SetBoundingVolumes", 1))
|
|
1062
|
+
{
|
|
1063
|
+
py::set_arg_count_version_error(1);
|
|
1064
|
+
return nullptr;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1080
1067
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Perception::Spatial::SpatialBoundingVolume>>(args, 0);
|
|
1081
1068
|
|
|
1082
1069
|
self->obj.SetBoundingVolumes(param0);
|
|
@@ -1097,14 +1084,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1097
1084
|
|
|
1098
1085
|
static PyObject* SpatialSurfaceObserver_add_ObservedSurfacesChanged(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceObserver* self, PyObject* arg) noexcept
|
|
1099
1086
|
{
|
|
1100
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"ObservedSurfacesChanged"))
|
|
1101
|
-
{
|
|
1102
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1103
|
-
return nullptr;
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
1087
|
try
|
|
1107
1088
|
{
|
|
1089
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"ObservedSurfacesChanged"))
|
|
1090
|
+
{
|
|
1091
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1092
|
+
return nullptr;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1108
1095
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceObserver, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
1109
1096
|
|
|
1110
1097
|
return py::convert(self->obj.ObservedSurfacesChanged(param0));
|
|
@@ -1118,14 +1105,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1118
1105
|
|
|
1119
1106
|
static PyObject* SpatialSurfaceObserver_remove_ObservedSurfacesChanged(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceObserver* self, PyObject* arg) noexcept
|
|
1120
1107
|
{
|
|
1121
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"ObservedSurfacesChanged"))
|
|
1122
|
-
{
|
|
1123
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1124
|
-
return nullptr;
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
1108
|
try
|
|
1128
1109
|
{
|
|
1110
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"ObservedSurfacesChanged"))
|
|
1111
|
+
{
|
|
1112
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1113
|
+
return nullptr;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1129
1116
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1130
1117
|
|
|
1131
1118
|
self->obj.ObservedSurfacesChanged(param0);
|
|
@@ -1177,23 +1164,20 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1177
1164
|
{ }
|
|
1178
1165
|
};
|
|
1179
1166
|
|
|
1180
|
-
static PyType_Slot _type_slots_SpatialSurfaceObserver[] =
|
|
1181
|
-
{
|
|
1167
|
+
static PyType_Slot _type_slots_SpatialSurfaceObserver[] = {
|
|
1182
1168
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SpatialSurfaceObserver) },
|
|
1183
1169
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SpatialSurfaceObserver) },
|
|
1184
1170
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SpatialSurfaceObserver) },
|
|
1185
1171
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SpatialSurfaceObserver) },
|
|
1186
|
-
{ }
|
|
1172
|
+
{ }
|
|
1187
1173
|
};
|
|
1188
1174
|
|
|
1189
|
-
static PyType_Spec type_spec_SpatialSurfaceObserver =
|
|
1190
|
-
{
|
|
1175
|
+
static PyType_Spec type_spec_SpatialSurfaceObserver = {
|
|
1191
1176
|
"winrt._winrt_windows_perception_spatial_surfaces.SpatialSurfaceObserver",
|
|
1192
1177
|
sizeof(py::wrapper::Windows::Perception::Spatial::Surfaces::SpatialSurfaceObserver),
|
|
1193
1178
|
0,
|
|
1194
1179
|
Py_TPFLAGS_DEFAULT,
|
|
1195
|
-
_type_slots_SpatialSurfaceObserver
|
|
1196
|
-
};
|
|
1180
|
+
_type_slots_SpatialSurfaceObserver};
|
|
1197
1181
|
|
|
1198
1182
|
static PyGetSetDef getset_SpatialSurfaceObserver_Static[] = {
|
|
1199
1183
|
{ }
|
|
@@ -1223,20 +1207,19 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
|
|
|
1223
1207
|
};
|
|
1224
1208
|
|
|
1225
1209
|
// ----- Windows.Perception.Spatial.Surfaces Initialization --------------------
|
|
1226
|
-
PyDoc_STRVAR(module_doc, "Windows::Perception::Spatial::Surfaces");
|
|
1227
1210
|
|
|
1211
|
+
PyDoc_STRVAR(module_doc, "Windows.Perception.Spatial.Surfaces");
|
|
1228
1212
|
|
|
1229
|
-
static PyModuleDef module_def
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1213
|
+
static PyModuleDef module_def = {
|
|
1214
|
+
PyModuleDef_HEAD_INIT,
|
|
1215
|
+
"_winrt_windows_perception_spatial_surfaces",
|
|
1216
|
+
module_doc,
|
|
1217
|
+
0,
|
|
1218
|
+
nullptr,
|
|
1219
|
+
nullptr,
|
|
1220
|
+
nullptr,
|
|
1221
|
+
nullptr,
|
|
1222
|
+
nullptr};
|
|
1240
1223
|
} // py::cpp::Windows::Perception::Spatial::Surfaces
|
|
1241
1224
|
|
|
1242
1225
|
PyMODINIT_FUNC PyInit__winrt_windows_perception_spatial_surfaces(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_perception_spatial_surfaces",
|
|
26
|
+
sources=["py.Windows.Perception.Spatial.Surfaces.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,12 +9,12 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.foundation.collections
|
|
14
|
-
import winrt.windows.foundation.numerics
|
|
15
|
-
import winrt.windows.graphics.directx
|
|
16
|
-
import winrt.windows.perception.spatial
|
|
17
|
-
import winrt.windows.storage.streams
|
|
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
18
|
|
|
19
19
|
Self = typing.TypeVar('Self')
|
|
20
20
|
|
|
@@ -23,10 +23,10 @@ class SpatialSurfaceInfo(winrt.system.Object):
|
|
|
23
23
|
@staticmethod
|
|
24
24
|
def _from(obj: winrt.system.Object, /) -> SpatialSurfaceInfo: ...
|
|
25
25
|
@typing.overload
|
|
26
|
-
def try_compute_latest_mesh_async(self, max_triangles_per_cubic_meter: winrt.system.Double, /) ->
|
|
26
|
+
def try_compute_latest_mesh_async(self, max_triangles_per_cubic_meter: winrt.system.Double, /) -> windows_foundation.IAsyncOperation[SpatialSurfaceMesh]: ...
|
|
27
27
|
@typing.overload
|
|
28
|
-
def try_compute_latest_mesh_async(self, max_triangles_per_cubic_meter: winrt.system.Double, options: typing.Optional[SpatialSurfaceMeshOptions], /) ->
|
|
29
|
-
def try_get_bounds(self, coordinate_system: typing.Optional[
|
|
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
30
|
@_property
|
|
31
31
|
def id(self) -> _uuid.UUID: ...
|
|
32
32
|
@_property
|
|
@@ -37,7 +37,7 @@ class SpatialSurfaceMesh(winrt.system.Object):
|
|
|
37
37
|
@staticmethod
|
|
38
38
|
def _from(obj: winrt.system.Object, /) -> SpatialSurfaceMesh: ...
|
|
39
39
|
@_property
|
|
40
|
-
def coordinate_system(self) -> typing.Optional[
|
|
40
|
+
def coordinate_system(self) -> typing.Optional[windows_perception_spatial.SpatialCoordinateSystem]: ...
|
|
41
41
|
@_property
|
|
42
42
|
def surface_info(self) -> typing.Optional[SpatialSurfaceInfo]: ...
|
|
43
43
|
@_property
|
|
@@ -45,7 +45,7 @@ class SpatialSurfaceMesh(winrt.system.Object):
|
|
|
45
45
|
@_property
|
|
46
46
|
def vertex_normals(self) -> typing.Optional[SpatialSurfaceMeshBuffer]: ...
|
|
47
47
|
@_property
|
|
48
|
-
def vertex_position_scale(self) ->
|
|
48
|
+
def vertex_position_scale(self) -> windows_foundation_numerics.Vector3: ...
|
|
49
49
|
@_property
|
|
50
50
|
def vertex_positions(self) -> typing.Optional[SpatialSurfaceMeshBuffer]: ...
|
|
51
51
|
|
|
@@ -54,40 +54,40 @@ class SpatialSurfaceMeshBuffer(winrt.system.Object):
|
|
|
54
54
|
@staticmethod
|
|
55
55
|
def _from(obj: winrt.system.Object, /) -> SpatialSurfaceMeshBuffer: ...
|
|
56
56
|
@_property
|
|
57
|
-
def data(self) -> typing.Optional[
|
|
57
|
+
def data(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
|
|
58
58
|
@_property
|
|
59
59
|
def element_count(self) -> winrt.system.UInt32: ...
|
|
60
60
|
@_property
|
|
61
|
-
def format(self) ->
|
|
61
|
+
def format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
|
|
62
62
|
@_property
|
|
63
63
|
def stride(self) -> winrt.system.UInt32: ...
|
|
64
64
|
|
|
65
65
|
@typing.final
|
|
66
66
|
class SpatialSurfaceMeshOptions_Static(type):
|
|
67
67
|
@_property
|
|
68
|
-
def supported_triangle_index_formats(cls) -> typing.Optional[
|
|
68
|
+
def supported_triangle_index_formats(cls) -> typing.Optional[windows_foundation_collections.IVectorView[windows_graphics_directx.DirectXPixelFormat]]: ...
|
|
69
69
|
@_property
|
|
70
|
-
def supported_vertex_normal_formats(cls) -> typing.Optional[
|
|
70
|
+
def supported_vertex_normal_formats(cls) -> typing.Optional[windows_foundation_collections.IVectorView[windows_graphics_directx.DirectXPixelFormat]]: ...
|
|
71
71
|
@_property
|
|
72
|
-
def supported_vertex_position_formats(cls) -> typing.Optional[
|
|
72
|
+
def supported_vertex_position_formats(cls) -> typing.Optional[windows_foundation_collections.IVectorView[windows_graphics_directx.DirectXPixelFormat]]: ...
|
|
73
73
|
|
|
74
74
|
@typing.final
|
|
75
75
|
class SpatialSurfaceMeshOptions(winrt.system.Object, metaclass=SpatialSurfaceMeshOptions_Static):
|
|
76
76
|
@staticmethod
|
|
77
77
|
def _from(obj: winrt.system.Object, /) -> SpatialSurfaceMeshOptions: ...
|
|
78
|
-
def __new__(cls: typing.Type[SpatialSurfaceMeshOptions]) -> SpatialSurfaceMeshOptions
|
|
78
|
+
def __new__(cls: typing.Type[SpatialSurfaceMeshOptions]) -> SpatialSurfaceMeshOptions: ...
|
|
79
79
|
@_property
|
|
80
|
-
def vertex_position_format(self) ->
|
|
80
|
+
def vertex_position_format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
|
|
81
81
|
@vertex_position_format.setter
|
|
82
|
-
def vertex_position_format(self, value:
|
|
82
|
+
def vertex_position_format(self, value: windows_graphics_directx.DirectXPixelFormat) -> None: ...
|
|
83
83
|
@_property
|
|
84
|
-
def vertex_normal_format(self) ->
|
|
84
|
+
def vertex_normal_format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
|
|
85
85
|
@vertex_normal_format.setter
|
|
86
|
-
def vertex_normal_format(self, value:
|
|
86
|
+
def vertex_normal_format(self, value: windows_graphics_directx.DirectXPixelFormat) -> None: ...
|
|
87
87
|
@_property
|
|
88
|
-
def triangle_index_format(self) ->
|
|
88
|
+
def triangle_index_format(self) -> windows_graphics_directx.DirectXPixelFormat: ...
|
|
89
89
|
@triangle_index_format.setter
|
|
90
|
-
def triangle_index_format(self, value:
|
|
90
|
+
def triangle_index_format(self, value: windows_graphics_directx.DirectXPixelFormat) -> None: ...
|
|
91
91
|
@_property
|
|
92
92
|
def include_vertex_normals(self) -> bool: ...
|
|
93
93
|
@include_vertex_normals.setter
|
|
@@ -96,16 +96,16 @@ class SpatialSurfaceMeshOptions(winrt.system.Object, metaclass=SpatialSurfaceMes
|
|
|
96
96
|
@typing.final
|
|
97
97
|
class SpatialSurfaceObserver_Static(type):
|
|
98
98
|
def is_supported(cls) -> bool: ...
|
|
99
|
-
def request_access_async(cls) ->
|
|
99
|
+
def request_access_async(cls) -> windows_foundation.IAsyncOperation[windows_perception_spatial.SpatialPerceptionAccessStatus]: ...
|
|
100
100
|
|
|
101
101
|
@typing.final
|
|
102
102
|
class SpatialSurfaceObserver(winrt.system.Object, metaclass=SpatialSurfaceObserver_Static):
|
|
103
103
|
@staticmethod
|
|
104
104
|
def _from(obj: winrt.system.Object, /) -> SpatialSurfaceObserver: ...
|
|
105
|
-
def __new__(cls: typing.Type[SpatialSurfaceObserver]) -> SpatialSurfaceObserver
|
|
106
|
-
def get_observed_surfaces(self) -> typing.Optional[
|
|
107
|
-
def set_bounding_volume(self, bounds: typing.Optional[
|
|
108
|
-
def set_bounding_volumes(self, bounds: typing.Iterable[
|
|
109
|
-
def add_observed_surfaces_changed(self, handler:
|
|
110
|
-
def remove_observed_surfaces_changed(self, token:
|
|
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
111
|
|
winrt_windows_perception_spatial_surfaces-2.1.0/winrt/windows/perception/spatial/surfaces/py.typed
ADDED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Perception.Spatial.Surfaces
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,14 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.1.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.1.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
|
|
16
23
|
|
|
17
24
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
25
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_perception_spatial_surfaces.pyi
|
|
9
9
|
winrt/windows/perception/spatial/surfaces/__init__.py
|
|
10
|
+
winrt/windows/perception/spatial/surfaces/py.typed
|
|
10
11
|
winrt_Windows.Perception.Spatial.Surfaces.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.Perception.Spatial.Surfaces.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.Perception.Spatial.Surfaces.egg-info/dependency_links.txt
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
winrt-runtime==2.1.0
|
|
2
|
+
|
|
3
|
+
[all]
|
|
4
|
+
winrt-Windows.Foundation[all]==2.1.0
|
|
5
|
+
winrt-Windows.Foundation.Collections[all]==2.1.0
|
|
6
|
+
winrt-Windows.Foundation.Numerics[all]==2.1.0
|
|
7
|
+
winrt-Windows.Graphics.DirectX[all]==2.1.0
|
|
8
|
+
winrt-Windows.Perception.Spatial[all]==2.1.0
|
|
9
|
+
winrt-Windows.Storage.Streams[all]==2.1.0
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
|
|
2
|
-
|
|
3
|
-
winrt-Windows.Foundation[all]==2.0.0-beta.2
|
|
4
|
-
winrt-Windows.Foundation.Collections[all]==2.0.0-beta.2
|
|
5
|
-
winrt-Windows.Foundation.Numerics[all]==2.0.0-beta.2
|
|
6
|
-
winrt-Windows.Graphics.DirectX[all]==2.0.0-beta.2
|
|
7
|
-
winrt-Windows.Perception.Spatial[all]==2.0.0-beta.2
|
|
8
|
-
winrt-Windows.Storage.Streams[all]==2.0.0-beta.2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_perception_spatial_surfaces",
|
|
10
|
-
sources=["py.Windows.Perception.Spatial.Surfaces.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.0.0-beta.2
|
|
2
|
-
|
|
3
|
-
[all]
|
|
4
|
-
winrt-Windows.Foundation[all]==2.0.0-beta.2
|
|
5
|
-
winrt-Windows.Foundation.Collections[all]==2.0.0-beta.2
|
|
6
|
-
winrt-Windows.Foundation.Numerics[all]==2.0.0-beta.2
|
|
7
|
-
winrt-Windows.Graphics.DirectX[all]==2.0.0-beta.2
|
|
8
|
-
winrt-Windows.Perception.Spatial[all]==2.0.0-beta.2
|
|
9
|
-
winrt-Windows.Storage.Streams[all]==2.0.0-beta.2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|