Blender V4.3
BPy_ReadCompleteViewMapPixelF0D.cpp
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2004-2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17using namespace Freestyle;
18
20
21//------------------------INSTANCE METHODS ----------------------------------
22
24 /* Wrap. */
25 ReadCompleteViewMapPixelF0D___doc__,
26 "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
27 ":class:`freestyle.types.UnaryFunction0DFloat` > :class:`ReadCompleteViewMapPixelF0D`\n"
28 "\n"
29 ".. method:: __init__(level)\n"
30 "\n"
31 " Builds a ReadCompleteViewMapPixelF0D object.\n"
32 "\n"
33 " :arg level: The level of the pyramid from which the pixel must be\n"
34 " read.\n"
35 " :type level: int\n"
36 "\n"
37 ".. method:: __call__(it)\n"
38 "\n"
39 " Reads a pixel in one of the level of the complete viewmap.\n"
40 "\n"
41 " :arg it: An Interface0DIterator object.\n"
42 " :type it: :class:`freestyle.types.Interface0DIterator`\n"
43 " :return: A pixel in one of the level of the complete viewmap.\n"
44 " :rtype: float\n");
45
47 PyObject *args,
48 PyObject *kwds)
49{
50 static const char *kwlist[] = {"level", nullptr};
51 int i;
52
53 if (!PyArg_ParseTupleAndKeywords(args, kwds, "i", (char **)kwlist, &i)) {
54 return -1;
55 }
56 self->py_uf0D_float.uf0D_float = new Functions0D::ReadCompleteViewMapPixelF0D(i);
57 self->py_uf0D_float.uf0D_float->py_uf0D = (PyObject *)self;
58 return 0;
59}
60
61/*-----------------------BPy_ReadCompleteViewMapPixelF0D type definition ------------------------*/
62
64 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
65 /*tp_name*/ "ReadCompleteViewMapPixelF0D",
66 /*tp_basicsize*/ sizeof(BPy_ReadCompleteViewMapPixelF0D),
67 /*tp_itemsize*/ 0,
68 /*tp_dealloc*/ nullptr,
69 /*tp_vectorcall_offset*/ 0,
70 /*tp_getattr*/ nullptr,
71 /*tp_setattr*/ nullptr,
72 /*tp_as_async*/ nullptr,
73 /*tp_repr*/ nullptr,
74 /*tp_as_number*/ nullptr,
75 /*tp_as_sequence*/ nullptr,
76 /*tp_as_mapping*/ nullptr,
77 /*tp_hash*/ nullptr,
78 /*tp_call*/ nullptr,
79 /*tp_str*/ nullptr,
80 /*tp_getattro*/ nullptr,
81 /*tp_setattro*/ nullptr,
82 /*tp_as_buffer*/ nullptr,
83 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
84 /*tp_doc*/ ReadCompleteViewMapPixelF0D___doc__,
85 /*tp_traverse*/ nullptr,
86 /*tp_clear*/ nullptr,
87 /*tp_richcompare*/ nullptr,
88 /*tp_weaklistoffset*/ 0,
89 /*tp_iter*/ nullptr,
90 /*tp_iternext*/ nullptr,
91 /*tp_methods*/ nullptr,
92 /*tp_members*/ nullptr,
93 /*tp_getset*/ nullptr,
94 /*tp_base*/ &UnaryFunction0DFloat_Type,
95 /*tp_dict*/ nullptr,
96 /*tp_descr_get*/ nullptr,
97 /*tp_descr_set*/ nullptr,
98 /*tp_dictoffset*/ 0,
99 /*tp_init*/ (initproc)ReadCompleteViewMapPixelF0D___init__,
100 /*tp_alloc*/ nullptr,
101 /*tp_new*/ nullptr,
102};
103
105
106#ifdef __cplusplus
107}
108#endif
Functions taking 0D input.
static int ReadCompleteViewMapPixelF0D___init__(BPy_ReadCompleteViewMapPixelF0D *self, PyObject *args, PyObject *kwds)
PyTypeObject ReadCompleteViewMapPixelF0D_Type
PyDoc_STRVAR(ReadCompleteViewMapPixelF0D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > " ":class:`freestyle.types.UnaryFunction0DFloat` > :class:`ReadCompleteViewMapPixelF0D`\n" "\n" ".. method:: __init__(level)\n" "\n" " Builds a ReadCompleteViewMapPixelF0D object.\n" "\n" " :arg level: The level of the pyramid from which the pixel must be\n" " read.\n" " :type level: int\n" "\n" ".. method:: __call__(it)\n" "\n" " Reads a pixel in one of the level of the complete viewmap.\n" "\n" " :arg it: An Interface0DIterator object.\n" " :type it: :class:`freestyle.types.Interface0DIterator`\n" " :return: A pixel in one of the level of the complete viewmap.\n" " :rtype: float\n")
PyTypeObject UnaryFunction0DFloat_Type
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20