Blender  V3.3
BPy_GetYF1D.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #include "BPy_GetYF1D.h"
8 
9 #include "../../../view_map/Functions1D.h"
10 #include "../../BPy_Convert.h"
11 #include "../../BPy_IntegrationType.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 using namespace Freestyle;
18 
20 
21 //------------------------INSTANCE METHODS ----------------------------------
22 
23 static char GetYF1D___doc__[] =
24  "Class hierarchy: :class:`freestyle.types.UnaryFunction1D` > "
25  ":class:`freestyle.types.UnaryFunction1DDouble` > :class:`GetYF1D`\n"
26  "\n"
27  ".. method:: __init__(integration_type=IntegrationType.MEAN)\n"
28  "\n"
29  " Builds a GetYF1D object.\n"
30  "\n"
31  " :arg integration_type: The integration method used to compute a single value\n"
32  " from a set of values.\n"
33  " :type integration_type: :class:`freestyle.types.IntegrationType`\n"
34  "\n"
35  ".. method:: __call__(inter)\n"
36  "\n"
37  " Returns the Y 3D coordinate of an Interface1D.\n"
38  "\n"
39  " :arg inter: An Interface1D object.\n"
40  " :type inter: :class:`freestyle.types.Interface1D`\n"
41  " :return: The Y 3D coordinate of the Interface1D.\n"
42  " :rtype: float\n";
43 
44 static int GetYF1D___init__(BPy_GetYF1D *self, PyObject *args, PyObject *kwds)
45 {
46  static const char *kwlist[] = {"integration_type", nullptr};
47  PyObject *obj = nullptr;
48 
49  if (!PyArg_ParseTupleAndKeywords(
50  args, kwds, "|O!", (char **)kwlist, &IntegrationType_Type, &obj)) {
51  return -1;
52  }
54  self->py_uf1D_double.uf1D_double = new Functions1D::GetYF1D(t);
55  return 0;
56 }
57 /*-----------------------BPy_GetYF1D type definition ------------------------------*/
58 
59 PyTypeObject GetYF1D_Type = {
60  PyVarObject_HEAD_INIT(nullptr, 0) "GetYF1D", /* tp_name */
61  sizeof(BPy_GetYF1D), /* tp_basicsize */
62  0, /* tp_itemsize */
63  nullptr, /* tp_dealloc */
64  0, /* tp_vectorcall_offset */
65  nullptr, /* tp_getattr */
66  nullptr, /* tp_setattr */
67  nullptr, /* tp_reserved */
68  nullptr, /* tp_repr */
69  nullptr, /* tp_as_number */
70  nullptr, /* tp_as_sequence */
71  nullptr, /* tp_as_mapping */
72  nullptr, /* tp_hash */
73  nullptr, /* tp_call */
74  nullptr, /* tp_str */
75  nullptr, /* tp_getattro */
76  nullptr, /* tp_setattro */
77  nullptr, /* tp_as_buffer */
78  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
79  GetYF1D___doc__, /* tp_doc */
80  nullptr, /* tp_traverse */
81  nullptr, /* tp_clear */
82  nullptr, /* tp_richcompare */
83  0, /* tp_weaklistoffset */
84  nullptr, /* tp_iter */
85  nullptr, /* tp_iternext */
86  nullptr, /* tp_methods */
87  nullptr, /* tp_members */
88  nullptr, /* tp_getset */
89  &UnaryFunction1DDouble_Type, /* tp_base */
90  nullptr, /* tp_dict */
91  nullptr, /* tp_descr_get */
92  nullptr, /* tp_descr_set */
93  0, /* tp_dictoffset */
94  (initproc)GetYF1D___init__, /* tp_init */
95  nullptr, /* tp_alloc */
96  nullptr, /* tp_new */
97 };
98 
100 
101 #ifdef __cplusplus
102 }
103 #endif
IntegrationType IntegrationType_from_BPy_IntegrationType(PyObject *obj)
static int GetYF1D___init__(BPy_GetYF1D *self, PyObject *args, PyObject *kwds)
Definition: BPy_GetYF1D.cpp:44
static char GetYF1D___doc__[]
Definition: BPy_GetYF1D.cpp:23
PyTypeObject GetYF1D_Type
Definition: BPy_GetYF1D.cpp:59
PyTypeObject IntegrationType_Type
PyTypeObject UnaryFunction1DDouble_Type
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble w _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat w _GL_VOID_RET _GL_VOID GLint GLint GLint w _GL_VOID_RET _GL_VOID GLshort GLshort GLshort w _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble y2 _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat y2 _GL_VOID_RET _GL_VOID GLint GLint GLint y2 _GL_VOID_RET _GL_VOID GLshort GLshort GLshort y2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLuint *buffer _GL_VOID_RET _GL_VOID GLdouble t _GL_VOID_RET _GL_VOID GLfloat t _GL_VOID_RET _GL_VOID GLint t _GL_VOID_RET _GL_VOID GLshort t _GL_VOID_RET _GL_VOID GLdouble t
inherits from class Rep
Definition: AppCanvas.cpp:18