25 if (module ==
nullptr) {
46 UnaryFunction1DVec3f___doc__,
47 "Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DVec3f`\n"
49 "Base class for unary functions (functors) that work on\n"
50 ":class:`Interface1D` and return a 3D vector.\n"
52 ".. method:: __init__(*args)\n"
54 " Accepted call signatures:\n"
57 " - ``__init__(integration_type)``\n"
59 " Builds a unary 1D function using the default constructor\n"
60 " or the integration method given as an argument.\n"
62 " :param integration_type: An integration method.\n"
63 " :type integration_type: :class:`IntegrationType`\n");
68 static const char *kwlist[] = {
"integration",
nullptr};
69 PyObject *obj =
nullptr;
71 if (!PyArg_ParseTupleAndKeywords(args,
103 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(self)->tp_name, self->
uf1D_vec3f);
110 static const char *kwlist[] = {
"inter",
nullptr};
111 PyObject *obj =
nullptr;
113 if (!PyArg_ParseTupleAndKeywords(args,
125 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
129 if (!PyErr_Occurred()) {
130 string class_name(Py_TYPE(self)->tp_name);
131 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
142 integration_type_doc,
143 "The integration method.\n"
145 ":type: :class:`IntegrationType`\n");
156 PyErr_SetString(PyExc_TypeError,
"value must be an IntegrationType");
167 integration_type_doc,
169 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
175 PyVarObject_HEAD_INIT(
nullptr, 0)
176 "UnaryFunction1DVec3f",
194 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
195 UnaryFunction1DVec3f___doc__,
IntegrationType IntegrationType_from_BPy_IntegrationType(PyObject *obj)
PyObject * Vector_from_Vec3f(Vec3f &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 Orientation3DF1D_Type
static PyObject * UnaryFunction1DVec3f___repr__(BPy_UnaryFunction1DVec3f *self)
static PyObject * integration_type_get(BPy_UnaryFunction1DVec3f *self, void *)
int UnaryFunction1DVec3f_Init(PyObject *module)
static PyObject * UnaryFunction1DVec3f___call__(BPy_UnaryFunction1DVec3f *self, PyObject *args, PyObject *kwds)
static int UnaryFunction1DVec3f___init__(BPy_UnaryFunction1DVec3f *self, PyObject *args, PyObject *kwds)
static PyGetSetDef BPy_UnaryFunction1DVec3f_getseters[]
PyTypeObject UnaryFunction1DVec3f_Type
static int integration_type_set(BPy_UnaryFunction1DVec3f *self, PyObject *value, void *)
static void UnaryFunction1DVec3f___dealloc__(BPy_UnaryFunction1DVec3f *self)
PyTypeObject UnaryFunction1D_Type
Freestyle::UnaryFunction1D< Freestyle::Geometry::Vec3f > * uf1D_vec3f