23 if (module ==
nullptr) {
39 UnaryFunction1DFloat___doc__,
40 "Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DFloat`\n"
42 "Base class for unary functions (functors) that work on\n"
43 ":class:`Interface1D` and return a float value.\n"
45 ".. method:: __init__(*args)\n"
47 " Accepted call signatures:\n"
50 " - ``__init__(integration_type)``\n"
52 " Builds a unary 1D function using the default constructor\n"
53 " or the integration method given as an argument.\n"
55 " :param integration_type: An integration method.\n"
56 " :type integration_type: :class:`IntegrationType`\n");
61 static const char *kwlist[] = {
"integration",
nullptr};
62 PyObject *obj =
nullptr;
64 if (!PyArg_ParseTupleAndKeywords(args,
96 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(self)->tp_name, self->
uf1D_float);
103 static const char *kwlist[] = {
"inter",
nullptr};
104 PyObject *obj =
nullptr;
106 if (!PyArg_ParseTupleAndKeywords(args,
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());
135 integration_type_doc,
136 "The integration method.\n"
138 ":type: :class:`IntegrationType`\n");
149 PyErr_SetString(PyExc_TypeError,
"value must be an IntegrationType");
160 integration_type_doc,
162 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
168 PyVarObject_HEAD_INIT(
nullptr, 0)
169 "UnaryFunction1DFloat",
187 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
188 UnaryFunction1DFloat___doc__,
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" " :param inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :param inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
PyTypeObject IntegrationType_Type
#define BPy_IntegrationType_Check(v)
PyTypeObject Interface1D_Type
PyTypeObject UnaryFunction1DFloat_Type
static int UnaryFunction1DFloat___init__(BPy_UnaryFunction1DFloat *self, PyObject *args, PyObject *kwds)
int UnaryFunction1DFloat_Init(PyObject *module)
static PyObject * UnaryFunction1DFloat___call__(BPy_UnaryFunction1DFloat *self, PyObject *args, PyObject *kwds)
static PyGetSetDef BPy_UnaryFunction1DFloat_getseters[]
static void UnaryFunction1DFloat___dealloc__(BPy_UnaryFunction1DFloat *self)
static PyObject * UnaryFunction1DFloat___repr__(BPy_UnaryFunction1DFloat *self)
static PyObject * integration_type_get(BPy_UnaryFunction1DFloat *self, void *)
static int integration_type_set(BPy_UnaryFunction1DFloat *self, PyObject *value, void *)
PyTypeObject UnaryFunction1D_Type
IntegrationType getIntegrationType() const
void setIntegrationType(IntegrationType integration)
Freestyle::UnaryFunction1D< float > * uf1D_float