33 if (module ==
nullptr) {
45 PyModule_AddObjectRef(module,
"DensityF0D", (PyObject *)&
DensityF0D_Type);
75 PyModule_AddObjectRef(module,
"GetXF0D", (PyObject *)&
GetXF0D_Type);
80 PyModule_AddObjectRef(module,
"GetYF0D", (PyObject *)&
GetYF0D_Type);
85 PyModule_AddObjectRef(module,
"GetZF0D", (PyObject *)&
GetZF0D_Type);
99 UnaryFunction0DDouble___doc__,
100 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DDouble`\n"
102 "Base class for unary functions (functors) that work on\n"
103 ":class:`Interface0DIterator` and return a float value.\n"
105 ".. method:: __init__()\n"
107 " Default constructor.\n");
113 static const char *kwlist[] = {
nullptr};
115 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
131 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(self)->tp_name, self->
uf0D_double);
138 static const char *kwlist[] = {
"it",
nullptr};
141 if (!PyArg_ParseTupleAndKeywords(
148 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
152 if (!PyErr_Occurred()) {
153 string class_name(Py_TYPE(self)->tp_name);
154 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
164 PyVarObject_HEAD_INIT(
nullptr, 0)
165 "UnaryFunction0DDouble",
183 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
184 UnaryFunction0DDouble___doc__,
PyTypeObject Curvature2DAngleF0D_Type
PyTypeObject DensityF0D_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" " :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 GetProjectedXF0D_Type
PyTypeObject GetProjectedYF0D_Type
PyTypeObject GetProjectedZF0D_Type
PyTypeObject GetXF0D_Type
PyTypeObject GetYF0D_Type
PyTypeObject GetZF0D_Type
PyTypeObject Interface0DIterator_Type
PyTypeObject LocalAverageDepthF0D_Type
static PyObject * UnaryFunction0DDouble___call__(BPy_UnaryFunction0DDouble *self, PyObject *args, PyObject *kwds)
static void UnaryFunction0DDouble___dealloc__(BPy_UnaryFunction0DDouble *self)
int UnaryFunction0DDouble_Init(PyObject *module)
static int UnaryFunction0DDouble___init__(BPy_UnaryFunction0DDouble *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0DDouble_Type
static PyObject * UnaryFunction0DDouble___repr__(BPy_UnaryFunction0DDouble *self)
PyTypeObject UnaryFunction0D_Type
PyTypeObject ZDiscontinuityF0D_Type
Freestyle::UnaryFunction0D< double > * uf0D_double