Blender V5.3
BPy_LocalAverageDepthF0D.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 LocalAverageDepthF0D___doc__,
22 "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
23 ":class:`freestyle.types.UnaryFunction0DDouble` > :class:`LocalAverageDepthF0D`\n"
24 "\n"
25 ".. method:: __init__(mask_size=5.0)\n"
26 "\n"
27 " Builds a LocalAverageDepthF0D object.\n"
28 "\n"
29 " :param mask_size: The size of the mask.\n"
30 " :type mask_size: float\n"
31 "\n"
32 ".. method:: __call__(it)\n"
33 "\n"
34 " Returns the average depth around the\n"
35 " :class:`freestyle.types.Interface0D` pointed by the\n"
36 " Interface0DIterator. The result is obtained by querying the depth\n"
37 " buffer on a window around that point.\n"
38 "\n"
39 " :param it: An Interface0DIterator object.\n"
40 " :type it: :class:`freestyle.types.Interface0DIterator`\n"
41 " :return: The average depth around the pointed Interface0D.\n"
42 " :rtype: float\n");
44 PyObject *args,
45 PyObject *kwds)
46{
47 static const char *kwlist[] = {"mask_size", nullptr};
48 double d = 5.0;
49
50 if (!PyArg_ParseTupleAndKeywords(args,
51 kwds,
52 "|" /* Optional arguments. */
53 "d" /* `mask_size` */
54 ":__init__",
55 (char **)kwlist,
56 &d))
57 {
58 return -1;
59 }
61 self->py_uf0D_double.uf0D_double->py_uf0D = (PyObject *)self;
62 return 0;
63}
64
65/*-----------------------BPy_LocalAverageDepthF0D type definition ------------------------------*/
66
68 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
69 /*tp_name*/ "LocalAverageDepthF0D",
70 /*tp_basicsize*/ sizeof(BPy_LocalAverageDepthF0D),
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*/ LocalAverageDepthF0D___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*/ &UnaryFunction0DDouble_Type,
99 /*tp_dict*/ nullptr,
100 /*tp_descr_get*/ nullptr,
101 /*tp_descr_set*/ nullptr,
102 /*tp_dictoffset*/ 0,
103 /*tp_init*/ (initproc)LocalAverageDepthF0D___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 LocalAverageDepthF0D_Type
static int LocalAverageDepthF0D___init__(BPy_LocalAverageDepthF0D *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0DDouble_Type
inherits from class Rep
Definition AppCanvas.cpp:20
BPy_UnaryFunction0DDouble py_uf0D_double
Freestyle::UnaryFunction0D< double > * uf0D_double