23 #include "../BPy_Convert.h"
24 #include "../Iterator/BPy_Interface0DIterator.h"
70 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DViewShape`\n"
72 "Base class for unary functions (functors) that work on\n"
73 ":class:`Interface0DIterator` and return a :class:`ViewShape` object.\n"
75 ".. method:: __init__()\n"
77 " Default constructor.\n";
83 static const char *kwlist[] = {
nullptr};
85 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
89 self->uf0D_viewshape->py_uf0D = (PyObject *)
self;
95 delete self->uf0D_viewshape;
101 return PyUnicode_FromFormat(
102 "type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_viewshape);
109 static const char *kwlist[] = {
"it",
nullptr};
112 if (!PyArg_ParseTupleAndKeywords(
118 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
122 if (!PyErr_Occurred()) {
123 string class_name(Py_TYPE(
self)->tp_name);
124 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
134 PyVarObject_HEAD_INIT(
nullptr, 0)
"UnaryFunction0DViewShape",
152 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
PyObject * BPy_ViewShape_from_ViewShape(ViewShape &vs)
PyTypeObject GetOccludeeF0D_Type
PyTypeObject GetShapeF0D_Type
PyTypeObject Interface0DIterator_Type
static int UnaryFunction0DViewShape___init__(BPy_UnaryFunction0DViewShape *self, PyObject *args, PyObject *kwds)
static void UnaryFunction0DViewShape___dealloc__(BPy_UnaryFunction0DViewShape *self)
static PyObject * UnaryFunction0DViewShape___repr__(BPy_UnaryFunction0DViewShape *self)
int UnaryFunction0DViewShape_Init(PyObject *module)
static char UnaryFunction0DViewShape___doc__[]
PyTypeObject UnaryFunction0DViewShape_Type
static PyObject * UnaryFunction0DViewShape___call__(BPy_UnaryFunction0DViewShape *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0D_Type
static struct PyModuleDef module