27 if (module ==
nullptr) {
44 PyModule_AddObjectRef(
59 UnaryFunction1DVoid___doc__,
60 "Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DVoid`\n"
62 "Base class for unary functions (functors) working on\n"
63 ":class:`Interface1D`.\n"
65 ".. method:: __init__()\n"
66 " __init__(integration_type)\n"
68 " Builds a unary 1D function using either a default constructor\n"
69 " or the integration method given as an argument.\n"
71 " :arg integration_type: An integration method.\n"
72 " :type integration_type: :class:`IntegrationType`\n");
78 static const char *kwlist[] = {
"integration",
nullptr};
79 PyObject *obj =
nullptr;
81 if (!PyArg_ParseTupleAndKeywords(
107 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(self)->tp_name, self->
uf1D_void);
114 static const char *kwlist[] = {
"inter",
nullptr};
115 PyObject *obj =
nullptr;
117 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"O!", (
char **)kwlist, &
Interface1D_Type, &obj)) {
122 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
126 if (!PyErr_Occurred()) {
127 string class_name(Py_TYPE(self)->tp_name);
128 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
139 integration_type_doc,
140 "The integration method.\n"
142 ":type: :class:`IntegrationType`");
152 PyErr_SetString(PyExc_TypeError,
"value must be an IntegrationType");
163 integration_type_doc,
165 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
171 PyVarObject_HEAD_INIT(
nullptr, 0)
172 "UnaryFunction1DVoid",
190 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
191 UnaryFunction1DVoid___doc__,
PyTypeObject ChainingTimeStampF1D_Type
IntegrationType IntegrationType_from_BPy_IntegrationType(PyObject *obj)
PyObject * BPy_IntegrationType_from_IntegrationType(IntegrationType i)
PyDoc_STRVAR(FalseBP1D___doc__, "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`FalseBP1D`\n" "\n" ".. method:: __call__(inter1, inter2)\n" "\n" " Always returns false.\n" "\n" " :arg inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :arg inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
PyTypeObject IncrementChainingTimeStampF1D_Type
PyTypeObject IntegrationType_Type
#define BPy_IntegrationType_Check(v)
PyTypeObject Interface1D_Type
PyTypeObject TimeStampF1D_Type
static int integration_type_set(BPy_UnaryFunction1DVoid *self, PyObject *value, void *)
static PyObject * UnaryFunction1DVoid___call__(BPy_UnaryFunction1DVoid *self, PyObject *args, PyObject *kwds)
int UnaryFunction1DVoid_Init(PyObject *module)
PyTypeObject UnaryFunction1DVoid_Type
static PyObject * integration_type_get(BPy_UnaryFunction1DVoid *self, void *)
static int UnaryFunction1DVoid___init__(BPy_UnaryFunction1DVoid *self, PyObject *args, PyObject *kwds)
static void UnaryFunction1DVoid___dealloc__(BPy_UnaryFunction1DVoid *self)
static PyGetSetDef BPy_UnaryFunction1DVoid_getseters[]
static PyObject * UnaryFunction1DVoid___repr__(BPy_UnaryFunction1DVoid *self)
PyTypeObject UnaryFunction1D_Type
void setIntegrationType(IntegrationType integration)
IntegrationType getIntegrationType() const
Freestyle::UnaryFunction1D_void * uf1D_void