Blender  V2.93
BPy_QuantitativeInvisibilityF0D.cpp
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
22 
23 #include "../../../view_map/Functions0D.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 using namespace Freestyle;
30 
32 
33 //------------------------INSTANCE METHODS ----------------------------------
34 
36  "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
37  ":class:`freestyle.types.UnaryFunction0DUnsigned` > :class:`QuantitativeInvisibilityF0D`\n"
38  "\n"
39  ".. method:: __init__()\n"
40  "\n"
41  " Builds a QuantitativeInvisibilityF0D object.\n"
42  "\n"
43  ".. method:: __call__(it)\n"
44  "\n"
45  " Returns the quantitative invisibility of the\n"
46  " :class:`freestyle.types.Interface0D` pointed by the\n"
47  " Interface0DIterator. This evaluation can be ambiguous (in the case of\n"
48  " a :class:`freestyle.types.TVertex` for example). This functor tries\n"
49  " to remove this ambiguity using the context offered by the 1D element\n"
50  " to which the Interface0D belongs to. However, there still can be\n"
51  " problematic cases, and the user willing to deal with this cases in a\n"
52  " specific way should implement its own getQIF0D functor.\n"
53  "\n"
54  " :arg it: An Interface0DIterator object.\n"
55  " :type it: :class:`freestyle.types.Interface0DIterator`\n"
56  " :return: The quantitative invisibility of the pointed Interface0D.\n"
57  " :rtype: int\n";
58 
60  PyObject *args,
61  PyObject *kwds)
62 {
63  static const char *kwlist[] = {nullptr};
64 
65  if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
66  return -1;
67  }
68  self->py_uf0D_unsigned.uf0D_unsigned = new Functions0D::QuantitativeInvisibilityF0D();
69  self->py_uf0D_unsigned.uf0D_unsigned->py_uf0D = (PyObject *)self;
70  return 0;
71 }
72 
73 /*-----------------------BPy_QuantitativeInvisibilityF0D type definition ------------------------*/
74 
76  PyVarObject_HEAD_INIT(nullptr, 0) "QuantitativeInvisibilityF0D", /* tp_name */
77  sizeof(BPy_QuantitativeInvisibilityF0D), /* tp_basicsize */
78  0, /* tp_itemsize */
79  nullptr, /* tp_dealloc */
80  0, /* tp_vectorcall_offset */
81  nullptr, /* tp_getattr */
82  nullptr, /* tp_setattr */
83  nullptr, /* tp_reserved */
84  nullptr, /* tp_repr */
85  nullptr, /* tp_as_number */
86  nullptr, /* tp_as_sequence */
87  nullptr, /* tp_as_mapping */
88  nullptr, /* tp_hash */
89  nullptr, /* tp_call */
90  nullptr, /* tp_str */
91  nullptr, /* tp_getattro */
92  nullptr, /* tp_setattro */
93  nullptr, /* tp_as_buffer */
94  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
96  nullptr, /* tp_traverse */
97  nullptr, /* tp_clear */
98  nullptr, /* tp_richcompare */
99  0, /* tp_weaklistoffset */
100  nullptr, /* tp_iter */
101  nullptr, /* tp_iternext */
102  nullptr, /* tp_methods */
103  nullptr, /* tp_members */
104  nullptr, /* tp_getset */
105  &UnaryFunction0DUnsigned_Type, /* tp_base */
106  nullptr, /* tp_dict */
107  nullptr, /* tp_descr_get */
108  nullptr, /* tp_descr_set */
109  0, /* tp_dictoffset */
110  (initproc)QuantitativeInvisibilityF0D___init__, /* tp_init */
111  nullptr, /* tp_alloc */
112  nullptr, /* tp_new */
113 };
114 
116 
117 #ifdef __cplusplus
118 }
119 #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:32