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