64 PyModule_AddObjectRef(
70 PyModule_AddObjectRef(
module,
71 "GetDirectionalViewMapDensityF1D",
92 PyModule_AddObjectRef(
98 PyModule_AddObjectRef(
133 UnaryFunction1DDouble___doc__,
134 "Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DDouble`\n"
136 "Base class for unary functions (functors) that work on\n"
137 ":class:`Interface1D` and return a float value.\n"
139 ".. method:: __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 " :arg integration_type: An integration method.\n"
146 " :type integration_type: :class:`IntegrationType`\n");
152 static const char *kwlist[] = {
"integration",
nullptr};
153 PyObject *obj =
nullptr;
155 if (!PyArg_ParseTupleAndKeywords(
168 self->uf1D_double->py_uf1D = (PyObject *)
self;
175 delete self->uf1D_double;
181 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf1D_double);
188 static const char *kwlist[] = {
"inter",
nullptr};
189 PyObject *obj =
nullptr;
191 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"O!", (
char **)kwlist, &
Interface1D_Type, &obj)) {
196 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
200 if (!PyErr_Occurred()) {
201 string class_name(Py_TYPE(
self)->tp_name);
202 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
206 return PyFloat_FromDouble(
self->uf1D_double->result);
213 integration_type_doc,
214 "The integration method.\n"
216 ":type: :class:`IntegrationType`");
228 PyErr_SetString(PyExc_TypeError,
"value must be an IntegrationType");
239 integration_type_doc,
241 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
247 PyVarObject_HEAD_INIT(
nullptr, 0)
248 "UnaryFunction1DDouble",
266 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
267 UnaryFunction1DDouble___doc__,
IntegrationType IntegrationType_from_BPy_IntegrationType(PyObject *obj)
PyObject * BPy_IntegrationType_from_IntegrationType(IntegrationType i)
PyTypeObject Curvature2DAngleF1D_Type
PyTypeObject DensityF1D_Type
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[]
PyDoc_STRVAR(UnaryFunction1DDouble___doc__, "Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DDouble`\n" "\n" "Base class for unary functions (functors) that work on\n" ":class:`Interface1D` and return a float value.\n" "\n" ".. method:: __init__()\n" " __init__(integration_type)\n" "\n" " Builds a unary 1D function using the default constructor\n" " or the integration method given as an argument.\n" "\n" " :arg integration_type: An integration method.\n" " :type integration_type: :class:`IntegrationType`\n")
PyTypeObject UnaryFunction1D_Type
PyTypeObject ZDiscontinuityF1D_Type
static struct PyModuleDef module