Blender  V2.93
BPy_GetParameterF0D.cpp
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
21 #include "BPy_GetParameterF0D.h"
22 
23 #include "../../../view_map/Functions0D.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 using namespace Freestyle;
30 
32 
33 //------------------------INSTANCE METHODS ----------------------------------
34 
35 static char GetParameterF0D___doc__[] =
36  "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
37  ":class:`freestyle.types.UnaryFunction0DFloat` > :class:`GetParameterF0D`\n"
38  "\n"
39  ".. method:: __init__()\n"
40  "\n"
41  " Builds a GetParameterF0D object.\n"
42  "\n"
43  ".. method:: __call__(it)\n"
44  "\n"
45  " Returns the parameter of the :class:`freestyle.types.Interface0D`\n"
46  " pointed by the Interface0DIterator in the context of its 1D element.\n"
47  "\n"
48  " :arg it: An Interface0DIterator object.\n"
49  " :type it: :class:`freestyle.types.Interface0DIterator`\n"
50  " :return: The parameter of an Interface0D.\n"
51  " :rtype: float\n";
52 
53 static int GetParameterF0D___init__(BPy_GetParameterF0D *self, PyObject *args, PyObject *kwds)
54 {
55  static const char *kwlist[] = {nullptr};
56 
57  if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
58  return -1;
59  }
60  self->py_uf0D_float.uf0D_float = new Functions0D::GetParameterF0D();
61  self->py_uf0D_float.uf0D_float->py_uf0D = (PyObject *)self;
62  return 0;
63 }
64 
65 /*-----------------------BPy_GetParameterF0D type definition ------------------------------*/
66 PyTypeObject GetParameterF0D_Type = {
67  PyVarObject_HEAD_INIT(nullptr, 0) "GetParameterF0D", /* tp_name */
68  sizeof(BPy_GetParameterF0D), /* tp_basicsize */
69  0, /* tp_itemsize */
70  nullptr, /* tp_dealloc */
71  0, /* tp_vectorcall_offset */
72  nullptr, /* tp_getattr */
73  nullptr, /* tp_setattr */
74  nullptr, /* tp_reserved */
75  nullptr, /* tp_repr */
76  nullptr, /* tp_as_number */
77  nullptr, /* tp_as_sequence */
78  nullptr, /* tp_as_mapping */
79  nullptr, /* tp_hash */
80  nullptr, /* tp_call */
81  nullptr, /* tp_str */
82  nullptr, /* tp_getattro */
83  nullptr, /* tp_setattro */
84  nullptr, /* tp_as_buffer */
85  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
86  GetParameterF0D___doc__, /* tp_doc */
87  nullptr, /* tp_traverse */
88  nullptr, /* tp_clear */
89  nullptr, /* tp_richcompare */
90  0, /* tp_weaklistoffset */
91  nullptr, /* tp_iter */
92  nullptr, /* tp_iternext */
93  nullptr, /* tp_methods */
94  nullptr, /* tp_members */
95  nullptr, /* tp_getset */
96  &UnaryFunction0DFloat_Type, /* tp_base */
97  nullptr, /* tp_dict */
98  nullptr, /* tp_descr_get */
99  nullptr, /* tp_descr_set */
100  0, /* tp_dictoffset */
101  (initproc)GetParameterF0D___init__, /* tp_init */
102  nullptr, /* tp_alloc */
103  nullptr, /* tp_new */
104 };
105 
107 
108 #ifdef __cplusplus
109 }
110 #endif
PyTypeObject GetParameterF0D_Type
static int GetParameterF0D___init__(BPy_GetParameterF0D *self, PyObject *args, PyObject *kwds)
static char GetParameterF0D___doc__[]
PyTypeObject UnaryFunction0DFloat_Type
inherits from class Rep
Definition: AppCanvas.cpp:32