ndicapi 3.7.2__tar.gz → 3.7.4__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.
Files changed (33) hide show
  1. {ndicapi-3.7.2 → ndicapi-3.7.4}/CMakeLists.txt +2 -16
  2. {ndicapi-3.7.2 → ndicapi-3.7.4}/MANIFEST.in +0 -2
  3. {ndicapi-3.7.2/ndicapi.egg-info → ndicapi-3.7.4}/PKG-INFO +15 -5
  4. {ndicapi-3.7.2 → ndicapi-3.7.4/ndicapi.egg-info}/PKG-INFO +15 -5
  5. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi.egg-info/SOURCES.txt +0 -1
  6. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapiExport.h +0 -2
  7. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapimodule.cxx +89 -4
  8. {ndicapi-3.7.2 → ndicapi-3.7.4}/setup.py +5 -4
  9. ndicapi-3.7.2/ndicapiExport.h.in +0 -27
  10. {ndicapi-3.7.2 → ndicapi-3.7.4}/LICENSE +0 -0
  11. {ndicapi-3.7.2 → ndicapi-3.7.4}/README.md +0 -0
  12. {ndicapi-3.7.2 → ndicapi-3.7.4}/README.pypi.md +0 -0
  13. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi.cxx +0 -0
  14. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi.egg-info/dependency_links.txt +0 -0
  15. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi.egg-info/top_level.txt +0 -0
  16. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi.h +0 -0
  17. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapiConfig.cmake.in +0 -0
  18. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapiConfigVersion.cmake.in +0 -0
  19. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi_math.cxx +0 -0
  20. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi_math.h +0 -0
  21. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi_serial.cxx +0 -0
  22. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi_serial.h +0 -0
  23. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi_serial_apple.cxx +0 -0
  24. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi_serial_unix.cxx +0 -0
  25. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi_serial_win32.cxx +0 -0
  26. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi_socket.cxx +0 -0
  27. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi_socket.h +0 -0
  28. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi_socket_apple.cxx +0 -0
  29. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi_socket_unix.cxx +0 -0
  30. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi_socket_win32.cxx +0 -0
  31. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi_thread.cxx +0 -0
  32. {ndicapi-3.7.2 → ndicapi-3.7.4}/ndicapi_thread.h +0 -0
  33. {ndicapi-3.7.2 → ndicapi-3.7.4}/setup.cfg +0 -0
@@ -1,7 +1,7 @@
1
+ CMAKE_MINIMUM_REQUIRED(VERSION 4.0.0)
1
2
  PROJECT(ndicapi)
2
- CMAKE_MINIMUM_REQUIRED(VERSION 3.3.0)
3
3
 
4
- SET(ndicapi_VERSION 3.7.2)
4
+ SET(ndicapi_VERSION 3.7.4)
5
5
 
6
6
  # --------------------------------------------------------------------------
7
7
  # Configure output paths for libraries and executables.
@@ -65,20 +65,6 @@ IF(BUILD_PYTHON)
65
65
  " shared library (CMake option BUILD_SHARED_LIBS)."
66
66
  )
67
67
  ENDIF()
68
- SET(SETUP_PY_FILEPATH ${CMAKE_CURRENT_SOURCE_DIR}/setup.py)
69
- CONFIGURE_FILE(
70
- ${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in
71
- ${SETUP_PY_FILEPATH}
72
- )
73
- MESSAGE(
74
- "Successfully generated ${SETUP_PY_FILEPATH} for the Python"
75
- " extension module. To install the Python extension module:"
76
- "\n\t0) Install the C++ library: make && make install"
77
- " (might need admin access)"
78
- "\n\t1) Go to ${CMAKE_CURRENT_SOURCE_DIR}"
79
- "\n\t2) Build and install the Python extension:"
80
- " python setup.py install (might require admin access)"
81
- )
82
68
  ENDIF()
83
69
 
84
70
  FIND_PACKAGE(Threads)
@@ -1,8 +1,6 @@
1
1
  include *.cxx
2
2
  include *.h
3
3
  include README.pypi.md
4
- include ndicapiExport.h.in
5
4
  include CMakeLists.txt
6
5
  include ndicapiConfig.cmake.in
7
6
  include ndicapiConfigVersion.cmake.in
8
- include ndicapiExport.h.in
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: ndicapi
3
- Version: 3.7.2
3
+ Version: 3.7.4
4
4
  Summary: This package allows interfacing with NDI tracking devices
5
5
  Home-page: https://github.com/SciKit-Surgery/ndicapi
6
6
  Maintainer: Stephen Thompson
@@ -17,16 +17,26 @@ Classifier: Operating System :: MacOS
17
17
  Classifier: Operating System :: Microsoft :: Windows
18
18
  Classifier: Operating System :: POSIX
19
19
  Classifier: Operating System :: Unix
20
- Classifier: Programming Language :: Python :: 2.7
21
- Classifier: Programming Language :: Python :: 3.6
22
- Classifier: Programming Language :: Python :: 3.7
23
20
  Classifier: Programming Language :: Python :: 3.8
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
24
25
  Classifier: Programming Language :: C
25
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
26
27
  Classifier: Topic :: Scientific/Engineering
27
28
  Classifier: Topic :: System :: Hardware
28
29
  Description-Content-Type: text/markdown
29
30
  License-File: LICENSE
31
+ Dynamic: classifier
32
+ Dynamic: description
33
+ Dynamic: description-content-type
34
+ Dynamic: home-page
35
+ Dynamic: license
36
+ Dynamic: license-file
37
+ Dynamic: maintainer
38
+ Dynamic: maintainer-email
39
+ Dynamic: summary
30
40
 
31
41
  # History
32
42
  * Program: NDI Combined API C Interface Library
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: ndicapi
3
- Version: 3.7.2
3
+ Version: 3.7.4
4
4
  Summary: This package allows interfacing with NDI tracking devices
5
5
  Home-page: https://github.com/SciKit-Surgery/ndicapi
6
6
  Maintainer: Stephen Thompson
@@ -17,16 +17,26 @@ Classifier: Operating System :: MacOS
17
17
  Classifier: Operating System :: Microsoft :: Windows
18
18
  Classifier: Operating System :: POSIX
19
19
  Classifier: Operating System :: Unix
20
- Classifier: Programming Language :: Python :: 2.7
21
- Classifier: Programming Language :: Python :: 3.6
22
- Classifier: Programming Language :: Python :: 3.7
23
20
  Classifier: Programming Language :: Python :: 3.8
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
24
25
  Classifier: Programming Language :: C
25
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
26
27
  Classifier: Topic :: Scientific/Engineering
27
28
  Classifier: Topic :: System :: Hardware
28
29
  Description-Content-Type: text/markdown
29
30
  License-File: LICENSE
31
+ Dynamic: classifier
32
+ Dynamic: description
33
+ Dynamic: description-content-type
34
+ Dynamic: home-page
35
+ Dynamic: license
36
+ Dynamic: license-file
37
+ Dynamic: maintainer
38
+ Dynamic: maintainer-email
39
+ Dynamic: summary
30
40
 
31
41
  # History
32
42
  * Program: NDI Combined API C Interface Library
@@ -8,7 +8,6 @@ ndicapi.h
8
8
  ndicapiConfig.cmake.in
9
9
  ndicapiConfigVersion.cmake.in
10
10
  ndicapiExport.h
11
- ndicapiExport.h.in
12
11
  ndicapi_math.cxx
13
12
  ndicapi_math.h
14
13
  ndicapi_serial.cxx
@@ -12,8 +12,6 @@
12
12
  #ifndef __ndicapiExport_h
13
13
  #define __ndicapiExport_h
14
14
 
15
- /* #undef ndicapi_STATIC */
16
-
17
15
  #if defined(WIN32) && !defined(ndicapi_STATIC)
18
16
  #if defined(ndicapi_EXPORTS)
19
17
  #define ndicapiExport __declspec( dllexport )
@@ -1175,6 +1175,37 @@ static PyObject* Py_ndiGetTXFrame(PyObject* module, PyObject* args)
1175
1175
  return NULL;
1176
1176
  }
1177
1177
 
1178
+ static PyObject* Py_ndiGetTXNumberOfPassiveStrays(PyObject* module,
1179
+ PyObject* args)
1180
+ {
1181
+ int result;
1182
+ ndicapi* pol;
1183
+
1184
+ if (PyArg_ParseTuple(args, "O&:plGetTXNumberOfPassiveStrays",
1185
+ &_ndiConverter, &pol))
1186
+ {
1187
+ result = ndiGetTXNumberOfPassiveStrays(pol);
1188
+ return PyInt_FromLong(result);
1189
+ }
1190
+
1191
+ return NULL;
1192
+ }
1193
+
1194
+ static PyObject* Py_ndiGetBXNumberOfPassiveStrays(PyObject* module,
1195
+ PyObject* args)
1196
+ {
1197
+ int result;
1198
+ ndicapi* pol;
1199
+
1200
+ if (PyArg_ParseTuple(args, "O&:plGetBXNumberOfPassiveStrays",
1201
+ &_ndiConverter, &pol))
1202
+ {
1203
+ result = ndiGetBXNumberOfPassiveStrays(pol);
1204
+ return PyInt_FromLong(result);
1205
+ }
1206
+
1207
+ return NULL;
1208
+ }
1178
1209
 
1179
1210
  static PyObject* Py_ndiGetGXNumberOfPassiveStrays(PyObject* module,
1180
1211
  PyObject* args)
@@ -1219,6 +1250,60 @@ static PyObject* Py_ndiGetGXPassiveStray(PyObject* module, PyObject* args)
1219
1250
  return NULL;
1220
1251
  }
1221
1252
 
1253
+ static PyObject* Py_ndiGetBXPassiveStray(PyObject* module, PyObject* args)
1254
+ {
1255
+ int result;
1256
+ int i;
1257
+ float coord[3];
1258
+ ndicapi* pol;
1259
+
1260
+ if (PyArg_ParseTuple(args, "O&i:plGetBXPassiveStray",
1261
+ &_ndiConverter, &pol, &i))
1262
+ {
1263
+ result = ndiGetBXPassiveStray(pol, i, coord);
1264
+
1265
+ if (result == NDI_MISSING)
1266
+ {
1267
+ return PyString_FromString("MISSING");
1268
+ }
1269
+ else if (result == NDI_DISABLED)
1270
+ {
1271
+ return PyString_FromString("DISABLED");
1272
+ }
1273
+
1274
+ return Py_BuildValue("(ddd)", coord[0], coord[1], coord[2]);
1275
+ }
1276
+
1277
+ return NULL;
1278
+ }
1279
+
1280
+ static PyObject* Py_ndiGetTXPassiveStray(PyObject* module, PyObject* args)
1281
+ {
1282
+ int result;
1283
+ int i;
1284
+ double coord[3];
1285
+ ndicapi* pol;
1286
+
1287
+ if (PyArg_ParseTuple(args, "O&i:plGetTXPassiveStray",
1288
+ &_ndiConverter, &pol, &i))
1289
+ {
1290
+ result = ndiGetTXPassiveStray(pol, i, coord);
1291
+
1292
+ if (result == NDI_MISSING)
1293
+ {
1294
+ return PyString_FromString("MISSING");
1295
+ }
1296
+ else if (result == NDI_DISABLED)
1297
+ {
1298
+ return PyString_FromString("DISABLED");
1299
+ }
1300
+
1301
+ return Py_BuildValue("(ddd)", coord[0], coord[1], coord[2]);
1302
+ }
1303
+
1304
+ return NULL;
1305
+ }
1306
+
1222
1307
  static PyObject* Py_ndiGetPSTATPortStatus(PyObject* module, PyObject* args)
1223
1308
  {
1224
1309
  char port;
@@ -1657,8 +1742,8 @@ static PyMethodDef NdicapiMethods[] =
1657
1742
  //Py_NDIMethodMacro(ndiGetBXMarkerInfo),
1658
1743
  //Py_NDIMethodMacro(ndiGetBXSingleStray),
1659
1744
  Py_NDIMethodMacro(ndiGetBXFrame),
1660
- //Py_NDIMethodMacro(ndiGetBXNumberOfPassiveStrays),
1661
- //Py_NDIMethodMacro(ndiGetBXPassiveStray),
1745
+ Py_NDIMethodMacro(ndiGetBXNumberOfPassiveStrays),
1746
+ Py_NDIMethodMacro(ndiGetBXPassiveStray),
1662
1747
 
1663
1748
  Py_NDIMethodMacro(ndiTX),
1664
1749
 
@@ -1669,8 +1754,8 @@ static PyMethodDef NdicapiMethods[] =
1669
1754
  //Py_NDIMethodMacro(ndiGetTXMarkerInfo),
1670
1755
  //Py_NDIMethodMacro(ndiGetTXSingleStray),
1671
1756
  Py_NDIMethodMacro(ndiGetTXFrame),
1672
- //Py_NDIMethodMacro(ndiGetTXNumberOfPassiveStrays),
1673
- //Py_NDIMethodMacro(ndiGetTXPassiveStray),
1757
+ Py_NDIMethodMacro(ndiGetTXNumberOfPassiveStrays),
1758
+ Py_NDIMethodMacro(ndiGetTXPassiveStray),
1674
1759
 
1675
1760
 
1676
1761
  Py_NDIMethodMacro(ndiLED),
@@ -32,7 +32,7 @@ ndicapy = setuptools.Extension('ndicapy',
32
32
  )
33
33
 
34
34
  setuptools.setup(name='ndicapi',
35
- version='3.7.2',
35
+ version='3.7.4',
36
36
  url='https://github.com/SciKit-Surgery/ndicapi',
37
37
  license='MIT',
38
38
  description='This package allows interfacing with NDI tracking devices',
@@ -52,10 +52,11 @@ setuptools.setup(name='ndicapi',
52
52
  'Operating System :: Microsoft :: Windows',
53
53
  'Operating System :: POSIX',
54
54
  'Operating System :: Unix',
55
- 'Programming Language :: Python :: 2.7',
56
- 'Programming Language :: Python :: 3.6',
57
- 'Programming Language :: Python :: 3.7',
58
55
  'Programming Language :: Python :: 3.8',
56
+ 'Programming Language :: Python :: 3.9',
57
+ 'Programming Language :: Python :: 3.10',
58
+ 'Programming Language :: Python :: 3.11',
59
+ 'Programming Language :: Python :: 3.12',
59
60
  'Programming Language :: C',
60
61
  'Programming Language :: Python :: Implementation :: CPython',
61
62
  'Topic :: Scientific/Engineering',
@@ -1,27 +0,0 @@
1
- /*=Plus=header=begin======================================================
2
- Program: Plus
3
- Copyright (c) Laboratory for Percutaneous Surgery. All rights reserved.
4
- See License.txt for details.
5
- =========================================================Plus=header=end*/
6
-
7
- // .NAME __ndicapiExport - manage Windows system differences
8
- // .SECTION Description
9
- // The __ndicapiExport manages DLL export syntax differences
10
- // between different operating systems.
11
-
12
- #ifndef __ndicapiExport_h
13
- #define __ndicapiExport_h
14
-
15
- #cmakedefine ndicapi_STATIC
16
-
17
- #if defined(WIN32) && !defined(ndicapi_STATIC)
18
- #if defined(ndicapi_EXPORTS)
19
- #define ndicapiExport __declspec( dllexport )
20
- #else
21
- #define ndicapiExport __declspec( dllimport )
22
- #endif
23
- #else
24
- #define ndicapiExport
25
- #endif
26
-
27
- #endif
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes