37#define PyPolarScan_Type_NUM 0
39#define PyPolarScan_GetNative_NUM 1
40#define PyPolarScan_GetNative_RETURN PolarScan_t*
41#define PyPolarScan_GetNative_PROTO (PyPolarScan*)
43#define PyPolarScan_New_NUM 2
44#define PyPolarScan_New_RETURN PyPolarScan*
45#define PyPolarScan_New_PROTO (PolarScan_t*)
47#define PyPolarScan_API_pointers 3
49#define PyPolarScan_CAPSULE_NAME "_polarscan._C_API"
51#ifdef PYPOLARSCAN_MODULE
53extern PyTypeObject PyPolarScan_Type;
56#define PyPolarScan_Check(op) ((op)->ob_type == &PyPolarScan_Type)
66static void **PyPolarScan_API;
72#define PyPolarScan_GetNative \
73 (*(PyPolarScan_GetNative_RETURN (*)PyPolarScan_GetNative_PROTO) PyPolarScan_API[PyPolarScan_GetNative_NUM])
82#define PyPolarScan_New \
83 (*(PyPolarScan_New_RETURN (*)PyPolarScan_New_PROTO) PyPolarScan_API[PyPolarScan_New_NUM])
88#define PyPolarScan_Check(op) \
89 (Py_TYPE(op) == &PyPolarScan_Type)
91#define PyPolarScan_Type (*(PyTypeObject*)PyPolarScan_API[PyPolarScan_Type_NUM])
96#define import_pypolarscan() \
97 PyPolarScan_API = (void **)PyCapsule_Import(PyPolarScan_CAPSULE_NAME, 1);
Defines the functions available when working with polar scans.
#define PyPolarScan_New_RETURN
return type for New
Definition pypolarscan.h:44
#define PyPolarScan_GetNative_PROTO
arguments for GetNative
Definition pypolarscan.h:41
#define PyPolarScan_GetNative
Returns a pointer to the internal polar scan, remember to release the reference when done with the ob...
Definition pypolarscan.h:72
#define PyPolarScan_New_PROTO
arguments for New
Definition pypolarscan.h:45
#define PyPolarScan_New
Creates a new polar scan instance.
Definition pypolarscan.h:82
#define PyPolarScan_GetNative_RETURN
return type for GetNative
Definition pypolarscan.h:40
A polar scan.
Definition pypolarscan.h:32
PyObject_HEAD PolarScan_t * scan
the scan type
Definition pypolarscan.h:34
Represents one scan in a volume.
Definition polarscan.c:47