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