|
Blender V4.5
|
#include "BPy_IntegrationType.h"#include "BPy_Convert.h"#include "Iterator/BPy_Interface0DIterator.h"#include "UnaryFunction0D/BPy_UnaryFunction0DDouble.h"#include "UnaryFunction0D/BPy_UnaryFunction0DFloat.h"#include "UnaryFunction0D/BPy_UnaryFunction0DUnsigned.h"#include "BLI_sys_types.h"Go to the source code of this file.
Macros | |
| #define | ADD_TYPE_CONST(id) |
Functions | |
| 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 | 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) |
Variables | |
| static PyMethodDef | module_functions [] |
| static PyModuleDef | module_definition |
| PyTypeObject | IntegrationType_Type |
| #define ADD_TYPE_CONST | ( | id | ) |
Referenced by IntegrationType_Init(), Interface1D_Init(), and Nature_Init().
| int IntegrationType_Init | ( | PyObject * | module | ) |
Definition at line 214 of file BPy_IntegrationType.cpp.
References ADD_TYPE_CONST, FIRST, IntegrationType_Init(), IntegrationType_Type, LAST, Freestyle::MAX, Freestyle::MEAN, MIN, module_definition, and module_functions.
Referenced by Freestyle_Init(), and IntegrationType_Init().
|
static |
Definition at line 52 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, Integrator_integrate(), Interface0DIterator_Type, Freestyle::MEAN, and UnaryFunction0D_Type.
Referenced by Integrator_integrate().
| 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." | ) |
References PyDoc_STRVAR().
| 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|float" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | module_docstring | , |
| "The Blender Freestyle.Integrator submodule\n" "\n" | ) |
References PyDoc_STRVAR().
| PyTypeObject IntegrationType_Type |
Definition at line 170 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__().
|
static |
Definition at line 136 of file BPy_IntegrationType.cpp.
Referenced by IntegrationType_Init().
|
static |
Definition at line 118 of file BPy_IntegrationType.cpp.
Referenced by IntegrationType_Init().