Go to the source code of this file.
|
| PyDoc_STRVAR (Integrator_integrate_doc, ".. function:: integrate(func, it, it_end, integration_type)\n" "\n" " Returns a single value from a set of values evaluated at each 0D\n" " element of this 1D element.\n" "\n" " :arg func: The UnaryFunction0D used to compute a value at each\n" " Interface0D.\n" " :type func: :class:`UnaryFunction0D`\n" " :arg it: The Interface0DIterator used to iterate over the 0D\n" " elements of this 1D element. The integration will occur over\n" " the 0D elements starting from the one pointed by it.\n" " :type it: :class:`Interface0DIterator`\n" " :arg it_end: The Interface0DIterator pointing the end of the 0D\n" " elements of the 1D element.\n" " :type it_end: :class:`Interface0DIterator`\n" " :arg integration_type: The integration method used to compute a\n" " single value from a set of values.\n" " :type integration_type: :class:`IntegrationType`\n" " :return: The single value obtained for the 1D element. The return\n" " value type is float if func is of the :class:`UnaryFunction0DDouble`\n" " or :class:`UnaryFunction0DFloat` type, and int if func is of the\n" " :class:`UnaryFunction0DUnsigned` type.\n" " :rtype: int or float") |
|
static PyObject * | Integrator_integrate (PyObject *, PyObject *args, PyObject *kwds) |
|
| PyDoc_STRVAR (module_docstring, "The Blender Freestyle.Integrator submodule\n\n") |
|
| PyDoc_STRVAR (IntegrationType_doc, "Class hierarchy: int > :class:`IntegrationType`\n" "\n" "Different integration methods that can be invoked to integrate into a\n" "single value the set of values obtained from each 0D element of an 1D\n" "element:\n" "\n" "* IntegrationType.MEAN: The value computed for the 1D element is the\n" " mean of the values obtained for the 0D elements.\n" "* IntegrationType.MIN: The value computed for the 1D element is the\n" " minimum of the values obtained for the 0D elements.\n" "* IntegrationType.MAX: The value computed for the 1D element is the\n" " maximum of the values obtained for the 0D elements.\n" "* IntegrationType.FIRST: The value computed for the 1D element is the\n" " first of the values obtained for the 0D elements.\n" "* IntegrationType.LAST: The value computed for the 1D element is the\n" " last of the values obtained for the 0D elements.") |
|
int | IntegrationType_Init (PyObject *module) |
|
◆ BPy_IntegrationType_FIRST
◆ BPy_IntegrationType_LAST
◆ BPy_IntegrationType_MAX
◆ BPy_IntegrationType_MEAN
◆ BPy_IntegrationType_MIN
◆ IntegrationType_Init()
int IntegrationType_Init |
( |
PyObject * |
module | ) |
|
◆ Integrator_integrate()
static PyObject* Integrator_integrate |
( |
PyObject * |
, |
|
|
PyObject * |
args, |
|
|
PyObject * |
kwds |
|
) |
| |
|
static |
Definition at line 50 of file BPy_IntegrationType.cpp.
References BPy_UnaryFunction0DDouble_Check, BPy_UnaryFunction0DFloat_Check, BPy_UnaryFunction0DUnsigned_Check, BPy_Interface0DIterator::if0D_it, Freestyle::integrate(), IntegrationType_from_BPy_IntegrationType(), IntegrationType_Type, Interface0DIterator_Type, Freestyle::MEAN, t, and UnaryFunction0D_Type.
◆ PyDoc_STRVAR() [1/3]
PyDoc_STRVAR |
( |
IntegrationType_doc |
, |
|
|
"Class hierarchy: int |
, |
|
|
:class:`IntegrationType`\n" "\n" "Different integration methods that can be invoked to integrate into a\n" "single value the set of values obtained from each 0D element of an 1D\n" "element:\n" "\n" " *IntegrationType.MEAN:The value computed for the 1D element is the\n" " mean of the values obtained for the 0D elements.\n" " *IntegrationType.MIN:The value computed for the 1D element is the\n" " minimum of the values obtained for the 0D elements.\n" " *IntegrationType.MAX:The value computed for the 1D element is the\n" " maximum of the values obtained for the 0D elements.\n" " *IntegrationType.FIRST:The value computed for the 1D element is the\n" " first of the values obtained for the 0D elements.\n" " *IntegrationType.LAST:The value computed for the 1D element is the\n" " last of the values obtained for the 0D elements." |
|
|
) |
| |
◆ PyDoc_STRVAR() [2/3]
PyDoc_STRVAR |
( |
Integrator_integrate_doc |
, |
|
|
".. function:: integrate(func, it, it_end, integration_type)\n" "\n" " Returns a single value from a set of values evaluated at each 0D\n" " element of this 1D element.\n" "\n" " :arg func: The UnaryFunction0D used to compute a value at each\n" " Interface0D.\n" " :type func: :class:`UnaryFunction0D`\n" " :arg it: The Interface0DIterator used to iterate over the 0D\n" " elements of this 1D element. The integration will occur over\n" " the 0D elements starting from the one pointed by it.\n" " :type it: :class:`Interface0DIterator`\n" " :arg it_end: The Interface0DIterator pointing the end of the 0D\n" " elements of the 1D element.\n" " :type it_end: :class:`Interface0DIterator`\n" " :arg integration_type: The integration method used to compute a\n" " single value from a set of values.\n" " :type integration_type: :class:`IntegrationType`\n" " :return: The single value obtained for the 1D element. The return\n" " value type is float if func is of the :class:`UnaryFunction0DDouble`\n" " or :class:`UnaryFunction0DFloat` |
type, |
|
|
and int if func is of the\n" " :class:`UnaryFunction0DUnsigned` type.\n" " :rtype:int or float" |
|
|
) |
| |
◆ PyDoc_STRVAR() [3/3]
PyDoc_STRVAR |
( |
module_docstring |
, |
|
|
"The Blender Freestyle.Integrator submodule\n\n" |
|
|
) |
| |
◆ _IntegrationType_FIRST
PyLongObject _IntegrationType_FIRST |
|
static |
◆ _IntegrationType_LAST
PyLongObject _IntegrationType_LAST |
|
static |
◆ _IntegrationType_MAX
◆ _IntegrationType_MEAN
PyLongObject _IntegrationType_MEAN |
|
static |
◆ _IntegrationType_MIN
◆ IntegrationType_Type
PyTypeObject IntegrationType_Type |
Definition at line 139 of file BPy_IntegrationType.cpp.
Referenced by BPy_IntegrationType_from_IntegrationType(), Curvature2DAngleF1D___init__(), CurveNatureF1D___init__(), DensityF1D___init__(), GetCompleteViewMapDensityF1D___init__(), GetDirectionalViewMapDensityF1D___init__(), GetProjectedXF1D___init__(), GetProjectedYF1D___init__(), GetProjectedZF1D___init__(), GetSteerableViewMapDensityF1D___init__(), GetViewMapGradientNormF1D___init__(), GetXF1D___init__(), GetYF1D___init__(), GetZF1D___init__(), IntegrationType_Init(), Integrator_integrate(), LocalAverageDepthF1D___init__(), Normal2DF1D___init__(), Orientation2DF1D___init__(), Orientation3DF1D___init__(), QuantitativeInvisibilityF1D___init__(), UnaryFunction1DDouble___init__(), UnaryFunction1DEdgeNature___init__(), UnaryFunction1DFloat___init__(), UnaryFunction1DUnsigned___init__(), UnaryFunction1DVec2f___init__(), UnaryFunction1DVec3f___init__(), UnaryFunction1DVectorViewShape___init__(), UnaryFunction1DVoid___init__(), ViewMapGradientNormBP1D___init__(), and ZDiscontinuityF1D___init__().
◆ module_definition
PyModuleDef module_definition |
|
static |
◆ module_functions
PyMethodDef module_functions[] |
|
static |
Initial value:= {
{"integrate",
METH_VARARGS | METH_KEYWORDS,
Integrator_integrate_doc},
{nullptr, nullptr, 0, nullptr},
}
static PyObject * Integrator_integrate(PyObject *, PyObject *args, PyObject *kwds)
Definition at line 101 of file BPy_IntegrationType.cpp.
Referenced by IntegrationType_Init().