25 if (module ==
nullptr) {
32 PyModule_AddObjectRef(
47 UnaryFunction1DEdgeNature___doc__,
48 "Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DEdgeNature`\n"
50 "Base class for unary functions (functors) that work on\n"
51 ":class:`Interface1D` and return a :class:`Nature` object.\n"
53 ".. method:: __init__(*args)\n"
55 " Accepted call signatures:\n"
58 " - ``__init__(integration_type)``\n"
60 " Builds a unary 1D function using the default constructor\n"
61 " or the integration method given as an argument.\n"
63 " :param integration_type: An integration method.\n"
64 " :type integration_type: :class:`IntegrationType`\n");
69 static const char *kwlist[] = {
"integration",
nullptr};
70 PyObject *obj =
nullptr;
72 if (!PyArg_ParseTupleAndKeywords(args,
105 return PyUnicode_FromFormat(
106 "type: %s - address: %p", Py_TYPE(self)->tp_name, self->
uf1D_edgenature);
113 static const char *kwlist[] = {
"inter",
nullptr};
114 PyObject *obj =
nullptr;
116 if (!PyArg_ParseTupleAndKeywords(args,
128 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
132 if (!PyErr_Occurred()) {
133 string class_name(Py_TYPE(self)->tp_name);
134 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
145 integration_type_doc,
146 "The integration method.\n"
148 ":type: :class:`IntegrationType`\n");
159 PyErr_SetString(PyExc_TypeError,
"value must be an IntegrationType");
170 integration_type_doc,
172 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
178 PyVarObject_HEAD_INIT(
nullptr, 0)
179 "UnaryFunction1DEdgeNature",
197 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
198 UnaryFunction1DEdgeNature___doc__,
PyObject * BPy_Nature_from_Nature(ushort n)
IntegrationType IntegrationType_from_BPy_IntegrationType(PyObject *obj)
PyObject * BPy_IntegrationType_from_IntegrationType(IntegrationType i)
PyTypeObject CurveNatureF1D_Type
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 UnaryFunction1DEdgeNature_Type
static void UnaryFunction1DEdgeNature___dealloc__(BPy_UnaryFunction1DEdgeNature *self)
static PyObject * integration_type_get(BPy_UnaryFunction1DEdgeNature *self, void *)
static PyGetSetDef BPy_UnaryFunction1DEdgeNature_getseters[]
int UnaryFunction1DEdgeNature_Init(PyObject *module)
static PyObject * UnaryFunction1DEdgeNature___repr__(BPy_UnaryFunction1DEdgeNature *self)
static int integration_type_set(BPy_UnaryFunction1DEdgeNature *self, PyObject *value, void *)
static PyObject * UnaryFunction1DEdgeNature___call__(BPy_UnaryFunction1DEdgeNature *self, PyObject *args, PyObject *kwds)
static int UnaryFunction1DEdgeNature___init__(BPy_UnaryFunction1DEdgeNature *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction1D_Type
IntegrationType getIntegrationType() const
void setIntegrationType(IntegrationType integration)
Freestyle::UnaryFunction1D< Freestyle::Nature::EdgeNature > * uf1D_edgenature