Blender V5.3
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 " :param map_name: The name of the map to be read.\n"
30 " :type map_name: str\n"
31 " :param 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 " :param 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,
50 kwds,
51 "s" /* `map_name` */
52 "i" /* `level` */
53 ":__init__",
54 (char **)kwlist,
55 &s,
56 &i))
57 {
58 return -1;
59 }
61 self->py_uf0D_float.uf0D_float->py_uf0D = (PyObject *)self;
62 return 0;
63}
64
65/*-----------------------BPy_ReadMapPixelF0D type definition ------------------------------*/
66
67PyTypeObject ReadMapPixelF0D_Type = {
68 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
69 /*tp_name*/ "ReadMapPixelF0D",
70 /*tp_basicsize*/ sizeof(BPy_ReadMapPixelF0D),
71 /*tp_itemsize*/ 0,
72 /*tp_dealloc*/ nullptr,
73 /*tp_vectorcall_offset*/ 0,
74 /*tp_getattr*/ nullptr,
75 /*tp_setattr*/ nullptr,
76 /*tp_as_async*/ nullptr,
77 /*tp_repr*/ nullptr,
78 /*tp_as_number*/ nullptr,
79 /*tp_as_sequence*/ nullptr,
80 /*tp_as_mapping*/ nullptr,
81 /*tp_hash*/ nullptr,
82 /*tp_call*/ nullptr,
83 /*tp_str*/ nullptr,
84 /*tp_getattro*/ nullptr,
85 /*tp_setattro*/ nullptr,
86 /*tp_as_buffer*/ nullptr,
87 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
88 /*tp_doc*/ ReadMapPixelF0D___doc__,
89 /*tp_traverse*/ nullptr,
90 /*tp_clear*/ nullptr,
91 /*tp_richcompare*/ nullptr,
92 /*tp_weaklistoffset*/ 0,
93 /*tp_iter*/ nullptr,
94 /*tp_iternext*/ nullptr,
95 /*tp_methods*/ nullptr,
96 /*tp_members*/ nullptr,
97 /*tp_getset*/ nullptr,
98 /*tp_base*/ &UnaryFunction0DFloat_Type,
99 /*tp_dict*/ nullptr,
100 /*tp_descr_get*/ nullptr,
101 /*tp_descr_set*/ nullptr,
102 /*tp_dictoffset*/ 0,
103 /*tp_init*/ (initproc)ReadMapPixelF0D___init__,
104 /*tp_alloc*/ nullptr,
105 /*tp_new*/ nullptr,
106};
107
Functions taking 0D input.
PyDoc_STRVAR(FalseBP1D___doc__, "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`FalseBP1D`\n" "\n" ".. method:: __call__(inter1, inter2)\n" "\n" " Always returns false.\n" "\n" " :param inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :param inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
PyTypeObject ReadMapPixelF0D_Type
static int ReadMapPixelF0D___init__(BPy_ReadMapPixelF0D *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0DFloat_Type
inherits from class Rep
Definition AppCanvas.cpp:20
BPy_UnaryFunction0DFloat py_uf0D_float
Freestyle::UnaryFunction0D< float > * uf0D_float