Blender  V3.3
Macros | Functions | Variables
BPy_IntegrationType.cpp File Reference
#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"

Go to the source code of this file.

Macros

#define BPy_IntegrationType_MEAN   ((PyObject *)&_IntegrationType_MEAN)
 
#define BPy_IntegrationType_MIN   ((PyObject *)&_IntegrationType_MIN)
 
#define BPy_IntegrationType_MAX   ((PyObject *)&_IntegrationType_MAX)
 
#define BPy_IntegrationType_FIRST   ((PyObject *)&_IntegrationType_FIRST)
 
#define BPy_IntegrationType_LAST   ((PyObject *)&_IntegrationType_LAST)
 

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 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)
 

Variables

static PyMethodDef module_functions []
 
static PyModuleDef module_definition
 
PyTypeObject IntegrationType_Type
 
static PyLongObject _IntegrationType_MEAN
 
static PyLongObject _IntegrationType_MIN = {PyVarObject_HEAD_INIT(&IntegrationType_Type, 1){MIN}}
 
static PyLongObject _IntegrationType_MAX = {PyVarObject_HEAD_INIT(&IntegrationType_Type, 1){MAX}}
 
static PyLongObject _IntegrationType_FIRST
 
static PyLongObject _IntegrationType_LAST
 

Macro Definition Documentation

◆ BPy_IntegrationType_FIRST

#define BPy_IntegrationType_FIRST   ((PyObject *)&_IntegrationType_FIRST)

Definition at line 193 of file BPy_IntegrationType.cpp.

◆ BPy_IntegrationType_LAST

#define BPy_IntegrationType_LAST   ((PyObject *)&_IntegrationType_LAST)

Definition at line 194 of file BPy_IntegrationType.cpp.

◆ BPy_IntegrationType_MAX

#define BPy_IntegrationType_MAX   ((PyObject *)&_IntegrationType_MAX)

Definition at line 192 of file BPy_IntegrationType.cpp.

◆ BPy_IntegrationType_MEAN

#define BPy_IntegrationType_MEAN   ((PyObject *)&_IntegrationType_MEAN)

Definition at line 190 of file BPy_IntegrationType.cpp.

◆ BPy_IntegrationType_MIN

#define BPy_IntegrationType_MIN   ((PyObject *)&_IntegrationType_MIN)

Definition at line 191 of file BPy_IntegrationType.cpp.

Function Documentation

◆ IntegrationType_Init()

int IntegrationType_Init ( PyObject *  module)

◆ Integrator_integrate()

static PyObject* Integrator_integrate ( PyObject *  ,
PyObject *  args,
PyObject *  kwds 
)
static

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

Variable Documentation

◆ _IntegrationType_FIRST

PyLongObject _IntegrationType_FIRST
static
Initial value:
= {
PyVarObject_HEAD_INIT(&IntegrationType_Type, 1){FIRST}}
PyTypeObject IntegrationType_Type
@ FIRST
Definition: curve_intern.h:49

Definition at line 185 of file BPy_IntegrationType.cpp.

◆ _IntegrationType_LAST

PyLongObject _IntegrationType_LAST
static
Initial value:
= {
PyVarObject_HEAD_INIT(&IntegrationType_Type, 1){LAST}}
@ LAST
Definition: curve_intern.h:50

Definition at line 187 of file BPy_IntegrationType.cpp.

◆ _IntegrationType_MAX

PyLongObject _IntegrationType_MAX = {PyVarObject_HEAD_INIT(&IntegrationType_Type, 1){MAX}}
static

Definition at line 184 of file BPy_IntegrationType.cpp.

◆ _IntegrationType_MEAN

PyLongObject _IntegrationType_MEAN
static
Initial value:
= {
PyVarObject_HEAD_INIT(&IntegrationType_Type, 1){MEAN}}

Definition at line 181 of file BPy_IntegrationType.cpp.

◆ _IntegrationType_MIN

PyLongObject _IntegrationType_MIN = {PyVarObject_HEAD_INIT(&IntegrationType_Type, 1){MIN}}
static

Definition at line 183 of file BPy_IntegrationType.cpp.

◆ IntegrationType_Type

PyTypeObject IntegrationType_Type

◆ module_definition

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

Definition at line 111 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 101 of file BPy_IntegrationType.cpp.

Referenced by IntegrationType_Init().