Blender V4.3
BPy_QuantitativeInvisibilityF0D.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#ifdef __cplusplus
14extern "C" {
15#endif
16
17using namespace Freestyle;
18
20
21//------------------------INSTANCE METHODS ----------------------------------
22
24 /* Wrap. */
25 QuantitativeInvisibilityF0D___doc__,
26 "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
27 ":class:`freestyle.types.UnaryFunction0DUnsigned` > :class:`QuantitativeInvisibilityF0D`\n"
28 "\n"
29 ".. method:: __init__()\n"
30 "\n"
31 " Builds a QuantitativeInvisibilityF0D object.\n"
32 "\n"
33 ".. method:: __call__(it)\n"
34 "\n"
35 " Returns the quantitative invisibility of the\n"
36 " :class:`freestyle.types.Interface0D` pointed by the\n"
37 " Interface0DIterator. This evaluation can be ambiguous (in the case of\n"
38 " a :class:`freestyle.types.TVertex` for example). This functor tries\n"
39 " to remove this ambiguity using the context offered by the 1D element\n"
40 " to which the Interface0D belongs to. However, there still can be\n"
41 " problematic cases, and the user willing to deal with this cases in a\n"
42 " specific way should implement its own getQIF0D functor.\n"
43 "\n"
44 " :arg it: An Interface0DIterator object.\n"
45 " :type it: :class:`freestyle.types.Interface0DIterator`\n"
46 " :return: The quantitative invisibility of the pointed Interface0D.\n"
47 " :rtype: int\n");
48
50 PyObject *args,
51 PyObject *kwds)
52{
53 static const char *kwlist[] = {nullptr};
54
55 if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
56 return -1;
57 }
58 self->py_uf0D_unsigned.uf0D_unsigned = new Functions0D::QuantitativeInvisibilityF0D();
59 self->py_uf0D_unsigned.uf0D_unsigned->py_uf0D = (PyObject *)self;
60 return 0;
61}
62
63/*-----------------------BPy_QuantitativeInvisibilityF0D type definition ------------------------*/
64
66 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
67 /*tp_name*/ "QuantitativeInvisibilityF0D",
68 /*tp_basicsize*/ sizeof(BPy_QuantitativeInvisibilityF0D),
69 /*tp_itemsize*/ 0,
70 /*tp_dealloc*/ nullptr,
71 /*tp_vectorcall_offset*/ 0,
72 /*tp_getattr*/ nullptr,
73 /*tp_setattr*/ nullptr,
74 /*tp_as_async*/ nullptr,
75 /*tp_repr*/ nullptr,
76 /*tp_as_number*/ nullptr,
77 /*tp_as_sequence*/ nullptr,
78 /*tp_as_mapping*/ nullptr,
79 /*tp_hash*/ nullptr,
80 /*tp_call*/ nullptr,
81 /*tp_str*/ nullptr,
82 /*tp_getattro*/ nullptr,
83 /*tp_setattro*/ nullptr,
84 /*tp_as_buffer*/ nullptr,
85 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
86 /*tp_doc*/ QuantitativeInvisibilityF0D___doc__,
87 /*tp_traverse*/ nullptr,
88 /*tp_clear*/ nullptr,
89 /*tp_richcompare*/ nullptr,
90 /*tp_weaklistoffset*/ 0,
91 /*tp_iter*/ nullptr,
92 /*tp_iternext*/ nullptr,
93 /*tp_methods*/ nullptr,
94 /*tp_members*/ nullptr,
95 /*tp_getset*/ nullptr,
97 /*tp_dict*/ nullptr,
98 /*tp_descr_get*/ nullptr,
99 /*tp_descr_set*/ nullptr,
100 /*tp_dictoffset*/ 0,
101 /*tp_init*/ (initproc)QuantitativeInvisibilityF0D___init__,
102 /*tp_alloc*/ nullptr,
103 /*tp_new*/ nullptr,
104};
105
107
108#ifdef __cplusplus
109}
110#endif
PyTypeObject QuantitativeInvisibilityF0D_Type
static int QuantitativeInvisibilityF0D___init__(BPy_QuantitativeInvisibilityF0D *self, PyObject *args, PyObject *kwds)
PyDoc_STRVAR(QuantitativeInvisibilityF0D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > " ":class:`freestyle.types.UnaryFunction0DUnsigned` > :class:`QuantitativeInvisibilityF0D`\n" "\n" ".. method:: __init__()\n" "\n" " Builds a QuantitativeInvisibilityF0D object.\n" "\n" ".. method:: __call__(it)\n" "\n" " Returns the quantitative invisibility of the\n" " :class:`freestyle.types.Interface0D` pointed by the\n" " Interface0DIterator. This evaluation can be ambiguous (in the case of\n" " a :class:`freestyle.types.TVertex` for example). This functor tries\n" " to remove this ambiguity using the context offered by the 1D element\n" " to which the Interface0D belongs to. However, there still can be\n" " problematic cases, and the user willing to deal with this cases in a\n" " specific way should implement its own getQIF0D functor.\n" "\n" " :arg it: An Interface0DIterator object.\n" " :type it: :class:`freestyle.types.Interface0DIterator`\n" " :return: The quantitative invisibility of the pointed Interface0D.\n" " :rtype: int\n")
PyTypeObject UnaryFunction0DUnsigned_Type
Functions taking 0D input.
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20