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__()\n"
53 " __init__(integration_type)\n"
55 " Builds a unary 1D function using the default constructor\n"
56 " or the integration method given as an argument.\n"
58 " :arg integration_type: An integration method.\n"
59 " :type integration_type: :class:`IntegrationType`\n");
64 static const char *kwlist[] = {
"integration",
nullptr};
65 PyObject *obj =
nullptr;
67 if (!PyArg_ParseTupleAndKeywords(
80 self->uf1D_vec3f->py_uf1D = (PyObject *)
self;
87 delete self->uf1D_vec3f;
93 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf1D_vec3f);
100 static const char *kwlist[] = {
"inter",
nullptr};
101 PyObject *obj =
nullptr;
103 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"O!", (
char **)kwlist, &
Interface1D_Type, &obj)) {
108 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
112 if (!PyErr_Occurred()) {
113 string class_name(Py_TYPE(
self)->tp_name);
114 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
125 integration_type_doc,
126 "The integration method.\n"
128 ":type: :class:`IntegrationType`\n");
139 PyErr_SetString(PyExc_TypeError,
"value must be an IntegrationType");
150 integration_type_doc,
152 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
158 PyVarObject_HEAD_INIT(
nullptr, 0)
159 "UnaryFunction1DVec3f",
177 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
178 UnaryFunction1DVec3f___doc__,
IntegrationType IntegrationType_from_BPy_IntegrationType(PyObject *obj)
PyObject * Vector_from_Vec3f(Vec3f &vec)
PyObject * BPy_IntegrationType_from_IntegrationType(IntegrationType i)
PyTypeObject IntegrationType_Type
#define BPy_IntegrationType_Check(v)
PyTypeObject Interface1D_Type
PyTypeObject Orientation3DF1D_Type
static PyObject * integration_type_get(BPy_UnaryFunction1DDouble *self, void *)
static int integration_type_set(BPy_UnaryFunction1DDouble *self, PyObject *value, void *)
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
PyDoc_STRVAR(UnaryFunction1DVec3f___doc__, "Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DVec3f`\n" "\n" "Base class for unary functions (functors) that work on\n" ":class:`Interface1D` and return a 3D vector.\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")
static int integration_type_set(BPy_UnaryFunction1DVec3f *self, PyObject *value, void *)
static void UnaryFunction1DVec3f___dealloc__(BPy_UnaryFunction1DVec3f *self)
PyTypeObject UnaryFunction1D_Type
static struct PyModuleDef module