|
Blender V5.3
|
#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.hh"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" " :param func: The UnaryFunction0D used to compute a value at each\n" " Interface0D.\n" " :type func: :class:`UnaryFunction0D`\n" " :param 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" " :param it_end: The Interface0DIterator pointing the end of the 0D\n" " elements of the 1D element.\n" " :type it_end: :class:`Interface0DIterator`\n" " :param 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\n") | |
| 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" ".. attribute:: MEAN\n" "\n" " The value computed for the 1D element is the mean of the values\n" " obtained for the 0D elements.\n" "\n" ".. attribute:: MIN\n" "\n" " The value computed for the 1D element is the minimum of the values\n" " obtained for the 0D elements.\n" "\n" ".. attribute:: MAX\n" "\n" " The value computed for the 1D element is the maximum of the values\n" " obtained for the 0D elements.\n" "\n" ".. attribute:: FIRST\n" "\n" " The value computed for the 1D element is the first of the values\n" " obtained for the 0D elements.\n" "\n" ".. attribute:: LAST\n" "\n" " The value computed for the 1D element is the last of the values\n" " obtained for the 0D elements.\n") | |
| 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 231 of file BPy_IntegrationType.cpp.
References ADD_TYPE_CONST, Freestyle::FIRST, IntegrationType_Init(), IntegrationType_Type, Freestyle::LAST, Freestyle::MAX, Freestyle::MEAN, MIN, module_definition, and module_functions.
Referenced by Freestyle_Init(), and IntegrationType_Init().
|
static |
Definition at line 51 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" ".. attribute::MEAN\n" "\n" " The value computed for the 1D element is the mean of the values\n" " obtained for the 0D elements.\n" "\n" ".. attribute::MIN\n" "\n" " The value computed for the 1D element is the minimum of the values\n" " obtained for the 0D elements.\n" "\n" ".. attribute::MAX\n" "\n" " The value computed for the 1D element is the maximum of the values\n" " obtained for the 0D elements.\n" "\n" ".. attribute::FIRST\n" "\n" " The value computed for the 1D element is the first of the values\n" " obtained for the 0D elements.\n" "\n" ".. attribute::LAST\n" "\n" " The value computed for the 1D element is the last of the values\n" " obtained for the 0D elements.\n" | ) |
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" " :param func: The UnaryFunction0D used to compute a value at each\n" " Interface0D.\n" " :type func: :class:`UnaryFunction0D`\n" " :param 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" " :param it_end: The Interface0DIterator pointing the end of the 0D\n" " elements of the 1D element.\n" " :type it_end: :class:`Interface0DIterator`\n" " :param 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\n" | ) |
References PyDoc_STRVAR().
| PyDoc_STRVAR | ( | module_docstring | , |
| "The Blender Freestyle.Integrator submodule\n" "\n" | ) |
References PyDoc_STRVAR().
| PyTypeObject IntegrationType_Type |
Definition at line 187 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 140 of file BPy_IntegrationType.cpp.
Referenced by IntegrationType_Init().
|
static |
Definition at line 122 of file BPy_IntegrationType.cpp.
Referenced by IntegrationType_Init().