Blender V5.3
BPy_ReadSteerableViewMapPixelF0D.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
13#include "BLI_sys_types.hh"
14
15using namespace Freestyle;
16
18
19//------------------------INSTANCE METHODS ----------------------------------
20
22 /* Wrap. */
23 ReadSteerableViewMapPixelF0D___doc__,
24 "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
25 ":class:`freestyle.types.UnaryFunction0DFloat` > :class:`ReadSteerableViewMapPixelF0D`\n"
26 "\n"
27 ".. method:: __init__(orientation, level)\n"
28 "\n"
29 " Builds a ReadSteerableViewMapPixelF0D object.\n"
30 "\n"
31 " :param orientation: The integer belonging to [0, 4] indicating the\n"
32 " orientation (E, NE, N, NW) we are interested in.\n"
33 " :type orientation: int\n"
34 " :param level: The level of the pyramid from which the pixel must be\n"
35 " read.\n"
36 " :type level: int\n"
37 "\n"
38 ".. method:: __call__(it)\n"
39 "\n"
40 " Reads a pixel in one of the level of one of the steerable viewmaps.\n"
41 "\n"
42 " :param it: An Interface0DIterator object.\n"
43 " :type it: :class:`freestyle.types.Interface0DIterator`\n"
44 " :return: A pixel in one of the level of one of the steerable viewmaps.\n"
45 " :rtype: float\n");
47 PyObject *args,
48 PyObject *kwds)
49{
50 static const char *kwlist[] = {"orientation", "level", nullptr};
51 uint u;
52 int i;
53
54 if (!PyArg_ParseTupleAndKeywords(args,
55 kwds,
56 "I" /* `orientation` */
57 "i" /* `level` */
58 ":__init__",
59 (char **)kwlist,
60 &u,
61 &i))
62 {
63 return -1;
64 }
66 self->py_uf0D_float.uf0D_float->py_uf0D = (PyObject *)self;
67 return 0;
68}
69
70/*-----------------------BPy_ReadSteerableViewMapPixelF0D type definition -----------------------*/
71
73 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
74 /*tp_name*/ "ReadSteerableViewMapPixelF0D",
75 /*tp_basicsize*/ sizeof(BPy_ReadSteerableViewMapPixelF0D),
76 /*tp_itemsize*/ 0,
77 /*tp_dealloc*/ nullptr,
78 /*tp_vectorcall_offset*/ 0,
79 /*tp_getattr*/ nullptr,
80 /*tp_setattr*/ nullptr,
81 /*tp_as_async*/ nullptr,
82 /*tp_repr*/ nullptr,
83 /*tp_as_number*/ nullptr,
84 /*tp_as_sequence*/ nullptr,
85 /*tp_as_mapping*/ nullptr,
86 /*tp_hash*/ nullptr,
87 /*tp_call*/ nullptr,
88 /*tp_str*/ nullptr,
89 /*tp_getattro*/ nullptr,
90 /*tp_setattro*/ nullptr,
91 /*tp_as_buffer*/ nullptr,
92 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
93 /*tp_doc*/ ReadSteerableViewMapPixelF0D___doc__,
94 /*tp_traverse*/ nullptr,
95 /*tp_clear*/ nullptr,
96 /*tp_richcompare*/ nullptr,
97 /*tp_weaklistoffset*/ 0,
98 /*tp_iter*/ nullptr,
99 /*tp_iternext*/ nullptr,
100 /*tp_methods*/ nullptr,
101 /*tp_members*/ nullptr,
102 /*tp_getset*/ nullptr,
103 /*tp_base*/ &UnaryFunction0DFloat_Type,
104 /*tp_dict*/ nullptr,
105 /*tp_descr_get*/ nullptr,
106 /*tp_descr_set*/ nullptr,
107 /*tp_dictoffset*/ 0,
108 /*tp_init*/ (initproc)ReadSteerableViewMapPixelF0D___init__,
109 /*tp_alloc*/ nullptr,
110 /*tp_new*/ nullptr,
111};
112
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")
static int ReadSteerableViewMapPixelF0D___init__(BPy_ReadSteerableViewMapPixelF0D *self, PyObject *args, PyObject *kwds)
PyTypeObject ReadSteerableViewMapPixelF0D_Type
PyTypeObject UnaryFunction0DFloat_Type
inherits from class Rep
Definition AppCanvas.cpp:20
Freestyle::UnaryFunction0D< float > * uf0D_float