38 if (module ==
nullptr) {
50 PyModule_AddObjectRef(module,
"DensityF1D", (PyObject *)&
DensityF1D_Type);
60 PyModule_AddObjectRef(
66 PyModule_AddObjectRef(module,
67 "GetDirectionalViewMapDensityF1D",
88 PyModule_AddObjectRef(
94 PyModule_AddObjectRef(
100 PyModule_AddObjectRef(module,
"GetXF1D", (PyObject *)&
GetXF1D_Type);
105 PyModule_AddObjectRef(module,
"GetYF1D", (PyObject *)&
GetYF1D_Type);
110 PyModule_AddObjectRef(module,
"GetZF1D", (PyObject *)&
GetZF1D_Type);
129 UnaryFunction1DDouble___doc__,
130 "Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DDouble`\n"
132 "Base class for unary functions (functors) that work on\n"
133 ":class:`Interface1D` and return a float value.\n"
135 ".. method:: __init__(*args)\n"
137 " Accepted call signatures:\n"
139 " - ``__init__()``\n"
140 " - ``__init__(integration_type)``\n"
142 " Builds a unary 1D function using the default constructor\n"
143 " or the integration method given as an argument.\n"
145 " :param integration_type: An integration method.\n"
146 " :type integration_type: :class:`IntegrationType`\n");
151 static const char *kwlist[] = {
"integration",
nullptr};
152 PyObject *obj =
nullptr;
154 if (!PyArg_ParseTupleAndKeywords(args,
186 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(self)->tp_name, self->
uf1D_double);
193 static const char *kwlist[] = {
"inter",
nullptr};
194 PyObject *obj =
nullptr;
196 if (!PyArg_ParseTupleAndKeywords(args,
208 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
212 if (!PyErr_Occurred()) {
213 string class_name(Py_TYPE(self)->tp_name);
214 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
225 integration_type_doc,
226 "The integration method.\n"
228 ":type: :class:`IntegrationType`\n");
239 PyErr_SetString(PyExc_TypeError,
"value must be an IntegrationType");
250 integration_type_doc,
252 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
258 PyVarObject_HEAD_INIT(
nullptr, 0)
259 "UnaryFunction1DDouble",
277 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
278 UnaryFunction1DDouble___doc__,
IntegrationType IntegrationType_from_BPy_IntegrationType(PyObject *obj)
PyObject * BPy_IntegrationType_from_IntegrationType(IntegrationType i)
PyTypeObject Curvature2DAngleF1D_Type
PyTypeObject DensityF1D_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 GetCompleteViewMapDensityF1D_Type
PyTypeObject GetDirectionalViewMapDensityF1D_Type
PyTypeObject GetProjectedXF1D_Type
PyTypeObject GetProjectedYF1D_Type
PyTypeObject GetProjectedZF1D_Type
PyTypeObject GetSteerableViewMapDensityF1D_Type
PyTypeObject GetViewMapGradientNormF1D_Type
PyTypeObject GetXF1D_Type
PyTypeObject GetYF1D_Type
PyTypeObject GetZF1D_Type
PyTypeObject IntegrationType_Type
#define BPy_IntegrationType_Check(v)
PyTypeObject Interface1D_Type
PyTypeObject LocalAverageDepthF1D_Type
static int UnaryFunction1DDouble___init__(BPy_UnaryFunction1DDouble *self, PyObject *args, PyObject *kwds)
static void UnaryFunction1DDouble___dealloc__(BPy_UnaryFunction1DDouble *self)
int UnaryFunction1DDouble_Init(PyObject *module)
static PyObject * UnaryFunction1DDouble___call__(BPy_UnaryFunction1DDouble *self, PyObject *args, PyObject *kwds)
static PyObject * integration_type_get(BPy_UnaryFunction1DDouble *self, void *)
PyTypeObject UnaryFunction1DDouble_Type
static int integration_type_set(BPy_UnaryFunction1DDouble *self, PyObject *value, void *)
static PyObject * UnaryFunction1DDouble___repr__(BPy_UnaryFunction1DDouble *self)
static PyGetSetDef BPy_UnaryFunction1DDouble_getseters[]
PyTypeObject UnaryFunction1D_Type
PyTypeObject ZDiscontinuityF1D_Type
IntegrationType getIntegrationType() const
void setIntegrationType(IntegrationType integration)
Freestyle::UnaryFunction1D< double > * uf1D_double