Blender  V2.93
BPy_ReadCompleteViewMapPixelF0D.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 
22 
23 #include "../../../stroke/AdvancedFunctions0D.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 using namespace Freestyle;
30 
32 
33 //------------------------INSTANCE METHODS ----------------------------------
34 
36  "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
37  ":class:`freestyle.types.UnaryFunction0DFloat` > :class:`ReadCompleteViewMapPixelF0D`\n"
38  "\n"
39  ".. method:: __init__(level)\n"
40  "\n"
41  " Builds a ReadCompleteViewMapPixelF0D object.\n"
42  "\n"
43  " :arg level: The level of the pyramid from which the pixel must be\n"
44  " read.\n"
45  " :type level: int\n"
46  "\n"
47  ".. method:: __call__(it)\n"
48  "\n"
49  " Reads a pixel in one of the level of the complete viewmap.\n"
50  "\n"
51  " :arg it: An Interface0DIterator object.\n"
52  " :type it: :class:`freestyle.types.Interface0DIterator`\n"
53  " :return: A pixel in one of the level of the complete viewmap.\n"
54  " :rtype: float\n";
55 
57  PyObject *args,
58  PyObject *kwds)
59 {
60  static const char *kwlist[] = {"level", nullptr};
61  int i;
62 
63  if (!PyArg_ParseTupleAndKeywords(args, kwds, "i", (char **)kwlist, &i)) {
64  return -1;
65  }
66  self->py_uf0D_float.uf0D_float = new Functions0D::ReadCompleteViewMapPixelF0D(i);
67  self->py_uf0D_float.uf0D_float->py_uf0D = (PyObject *)self;
68  return 0;
69 }
70 
71 /*-----------------------BPy_ReadCompleteViewMapPixelF0D type definition ------------------------*/
72 
74  PyVarObject_HEAD_INIT(nullptr, 0) "ReadCompleteViewMapPixelF0D", /* tp_name */
75  sizeof(BPy_ReadCompleteViewMapPixelF0D), /* tp_basicsize */
76  0, /* tp_itemsize */
77  nullptr, /* tp_dealloc */
78  0, /* tp_vectorcall_offset */
79  nullptr, /* tp_getattr */
80  nullptr, /* tp_setattr */
81  nullptr, /* tp_reserved */
82  nullptr, /* tp_repr */
83  nullptr, /* tp_as_number */
84  nullptr, /* tp_as_sequence */
85  nullptr, /* tp_as_mapping */
86  nullptr, /* tp_hash */
87  nullptr, /* tp_call */
88  nullptr, /* tp_str */
89  nullptr, /* tp_getattro */
90  nullptr, /* tp_setattro */
91  nullptr, /* tp_as_buffer */
92  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
94  nullptr, /* tp_traverse */
95  nullptr, /* tp_clear */
96  nullptr, /* tp_richcompare */
97  0, /* tp_weaklistoffset */
98  nullptr, /* tp_iter */
99  nullptr, /* tp_iternext */
100  nullptr, /* tp_methods */
101  nullptr, /* tp_members */
102  nullptr, /* tp_getset */
103  &UnaryFunction0DFloat_Type, /* tp_base */
104  nullptr, /* tp_dict */
105  nullptr, /* tp_descr_get */
106  nullptr, /* tp_descr_set */
107  0, /* tp_dictoffset */
108  (initproc)ReadCompleteViewMapPixelF0D___init__, /* tp_init */
109  nullptr, /* tp_alloc */
110  nullptr, /* tp_new */
111 };
112 
114 
115 #ifdef __cplusplus
116 }
117 #endif
static int ReadCompleteViewMapPixelF0D___init__(BPy_ReadCompleteViewMapPixelF0D *self, PyObject *args, PyObject *kwds)
static char ReadCompleteViewMapPixelF0D___doc__[]
PyTypeObject ReadCompleteViewMapPixelF0D_Type
PyTypeObject UnaryFunction0DFloat_Type
inherits from class Rep
Definition: AppCanvas.cpp:32