Blender V4.3
BPy_IntegrationType.cpp File Reference

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
 

Macro Definition Documentation

◆ ADD_TYPE_CONST

#define ADD_TYPE_CONST ( id)
Value:
#define STRINGIFY(x)
void PyLong_subtype_add_to_dict(PyObject *dict, PyTypeObject *ty, const char *attr, long value)
PyTypeObject IntegrationType_Type

Referenced by IntegrationType_Init().

Function Documentation

◆ IntegrationType_Init()

◆ Integrator_integrate()

◆ 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|float"  )

◆ PyDoc_STRVAR() [3/3]

PyDoc_STRVAR ( module_docstring ,
"The Blender Freestyle.Integrator submodule\n" "\n"  )

Variable Documentation

◆ IntegrationType_Type

◆ module_definition

PyModuleDef module_definition
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"Freestyle.Integrator",
module_docstring,
-1,
nullptr,
nullptr,
nullptr,
nullptr,
}
static PyMethodDef module_functions[]

Definition at line 122 of file BPy_IntegrationType.cpp.

Referenced by IntegrationType_Init().

◆ module_functions

PyMethodDef module_functions[]
static
Initial value:
= {
{"integrate",
(PyCFunction)Integrator_integrate,
METH_VARARGS | METH_KEYWORDS,
Integrator_integrate_doc},
{nullptr, nullptr, 0, nullptr},
}
static PyObject * Integrator_integrate(PyObject *, PyObject *args, PyObject *kwds)

Definition at line 112 of file BPy_IntegrationType.cpp.

Referenced by IntegrationType_Init().