26 if (module ==
nullptr) {
52 UnaryFunction1DVec2f___doc__,
53 "Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DVec2f`\n"
55 "Base class for unary functions (functors) that work on\n"
56 ":class:`Interface1D` and return a 2D vector.\n"
58 ".. method:: __init__(*args)\n"
60 " Accepted call signatures:\n"
63 " - ``__init__(integration_type)``\n"
65 " Builds a unary 1D function using the default constructor\n"
66 " or the integration method given as an argument.\n"
68 " :param integration_type: An integration method.\n"
69 " :type integration_type: :class:`IntegrationType`\n");
74 static const char *kwlist[] = {
"integration",
nullptr};
75 PyObject *obj =
nullptr;
77 if (!PyArg_ParseTupleAndKeywords(args,
109 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(self)->tp_name, self->
uf1D_vec2f);
116 static const char *kwlist[] = {
"inter",
nullptr};
117 PyObject *obj =
nullptr;
119 if (!PyArg_ParseTupleAndKeywords(args,
131 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
135 if (!PyErr_Occurred()) {
136 string class_name(Py_TYPE(self)->tp_name);
137 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
148 integration_type_doc,
149 "The integration method.\n"
151 ":type: :class:`IntegrationType`\n");
162 PyErr_SetString(PyExc_TypeError,
"value must be an IntegrationType");
173 integration_type_doc,
175 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
181 PyVarObject_HEAD_INIT(
nullptr, 0)
182 "UnaryFunction1DVec2f",
200 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
201 UnaryFunction1DVec2f___doc__,
IntegrationType IntegrationType_from_BPy_IntegrationType(PyObject *obj)
PyObject * Vector_from_Vec2f(Vec2f &vec)
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 Normal2DF1D_Type
PyTypeObject Orientation2DF1D_Type
static PyObject * integration_type_get(BPy_UnaryFunction1DVec2f *self, void *)
static PyGetSetDef BPy_UnaryFunction1DVec2f_getseters[]
static int UnaryFunction1DVec2f___init__(BPy_UnaryFunction1DVec2f *self, PyObject *args, PyObject *kwds)
static int integration_type_set(BPy_UnaryFunction1DVec2f *self, PyObject *value, void *)
static void UnaryFunction1DVec2f___dealloc__(BPy_UnaryFunction1DVec2f *self)
static PyObject * UnaryFunction1DVec2f___repr__(BPy_UnaryFunction1DVec2f *self)
PyTypeObject UnaryFunction1DVec2f_Type
int UnaryFunction1DVec2f_Init(PyObject *module)
static PyObject * UnaryFunction1DVec2f___call__(BPy_UnaryFunction1DVec2f *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction1D_Type
Freestyle::UnaryFunction1D< Freestyle::Geometry::Vec2f > * uf1D_vec2f