Blender V5.0
BPy_ReadMapPixelF0D.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
8
10
12
13using namespace Freestyle;
14
16
17//------------------------INSTANCE METHODS ----------------------------------
18
20 /* Wrap. */
21 ReadMapPixelF0D___doc__,
22 "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
23 ":class:`freestyle.types.UnaryFunction0DFloat` > :class:`ReadMapPixelF0D`\n"
24 "\n"
25 ".. method:: __init__(map_name, level)\n"
26 "\n"
27 " Builds a ReadMapPixelF0D object.\n"
28 "\n"
29 " :arg map_name: The name of the map to be read.\n"
30 " :type map_name: str\n"
31 " :arg level: The level of the pyramid from which the pixel must be\n"
32 " read.\n"
33 " :type level: int\n"
34 "\n"
35 ".. method:: __call__(it)\n"
36 "\n"
37 " Reads a pixel in a map.\n"
38 "\n"
39 " :arg it: An Interface0DIterator object.\n"
40 " :type it: :class:`freestyle.types.Interface0DIterator`\n"
41 " :return: A pixel in a map.\n"
42 " :rtype: float\n");
43static int ReadMapPixelF0D___init__(BPy_ReadMapPixelF0D *self, PyObject *args, PyObject *kwds)
44{
45 static const char *kwlist[] = {"map_name", "level", nullptr};
46 const char *s;
47 int i;
48
49 if (!PyArg_ParseTupleAndKeywords(args, kwds, "si", (char **)kwlist, &s, &i)) {
50 return -1;
51 }
52 self->py_uf0D_float.uf0D_float = new Functions0D::ReadMapPixelF0D(s, i);
53 self->py_uf0D_float.uf0D_float->py_uf0D = (PyObject *)self;
54 return 0;
55}
56
57/*-----------------------BPy_ReadMapPixelF0D type definition ------------------------------*/
58
59PyTypeObject ReadMapPixelF0D_Type = {
60 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
61 /*tp_name*/ "ReadMapPixelF0D",
62 /*tp_basicsize*/ sizeof(BPy_ReadMapPixelF0D),
63 /*tp_itemsize*/ 0,
64 /*tp_dealloc*/ nullptr,
65 /*tp_vectorcall_offset*/ 0,
66 /*tp_getattr*/ nullptr,
67 /*tp_setattr*/ nullptr,
68 /*tp_as_async*/ nullptr,
69 /*tp_repr*/ nullptr,
70 /*tp_as_number*/ nullptr,
71 /*tp_as_sequence*/ nullptr,
72 /*tp_as_mapping*/ nullptr,
73 /*tp_hash*/ nullptr,
74 /*tp_call*/ nullptr,
75 /*tp_str*/ nullptr,
76 /*tp_getattro*/ nullptr,
77 /*tp_setattro*/ nullptr,
78 /*tp_as_buffer*/ nullptr,
79 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
80 /*tp_doc*/ ReadMapPixelF0D___doc__,
81 /*tp_traverse*/ nullptr,
82 /*tp_clear*/ nullptr,
83 /*tp_richcompare*/ nullptr,
84 /*tp_weaklistoffset*/ 0,
85 /*tp_iter*/ nullptr,
86 /*tp_iternext*/ nullptr,
87 /*tp_methods*/ nullptr,
88 /*tp_members*/ nullptr,
89 /*tp_getset*/ nullptr,
90 /*tp_base*/ &UnaryFunction0DFloat_Type,
91 /*tp_dict*/ nullptr,
92 /*tp_descr_get*/ nullptr,
93 /*tp_descr_set*/ nullptr,
94 /*tp_dictoffset*/ 0,
95 /*tp_init*/ (initproc)ReadMapPixelF0D___init__,
96 /*tp_alloc*/ nullptr,
97 /*tp_new*/ nullptr,
98};
99
Functions taking 0D input.
PyDoc_STRVAR(ReadMapPixelF0D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > " ":class:`freestyle.types.UnaryFunction0DFloat` > :class:`ReadMapPixelF0D`\n" "\n" ".. method:: __init__(map_name, level)\n" "\n" " Builds a ReadMapPixelF0D object.\n" "\n" " :arg map_name: The name of the map to be read.\n" " :type map_name: str\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 a map.\n" "\n" " :arg it: An Interface0DIterator object.\n" " :type it: :class:`freestyle.types.Interface0DIterator`\n" " :return: A pixel in a map.\n" " :rtype: float\n")
PyTypeObject ReadMapPixelF0D_Type
static int ReadMapPixelF0D___init__(BPy_ReadMapPixelF0D *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0DFloat_Type
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20
i
Definition text_draw.cc:230