Blender  V3.3
BPy_QuantitativeInvisibilityUP1D.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 using namespace Freestyle;
14 
16 
17 //------------------------INSTANCE METHODS ----------------------------------
18 
20  "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > "
21  ":class:`QuantitativeInvisibilityUP1D`\n"
22  "\n"
23  ".. method:: __init__(qi=0)\n"
24  "\n"
25  " Builds a QuantitativeInvisibilityUP1D object.\n"
26  "\n"
27  " :arg qi: The Quantitative Invisibility you want the Interface1D to\n"
28  " have.\n"
29  " :type qi: int\n"
30  "\n"
31  ".. method:: __call__(inter)\n"
32  "\n"
33  " Returns true if the Quantitative Invisibility evaluated at an\n"
34  " Interface1D, using the\n"
35  " :class:`freestyle.functions.QuantitativeInvisibilityF1D` functor,\n"
36  " equals a certain user-defined value.\n"
37  "\n"
38  " :arg inter: An Interface1D object.\n"
39  " :type inter: :class:`freestyle.types.Interface1D`\n"
40  " :return: True if Quantitative Invisibility equals a user-defined\n"
41  " value.\n"
42  " :rtype: bool\n";
43 
45  PyObject *args,
46  PyObject *kwds)
47 {
48  static const char *kwlist[] = {"qi", nullptr};
49  int i = 0;
50 
51  if (!PyArg_ParseTupleAndKeywords(args, kwds, "|i", (char **)kwlist, &i)) {
52  return -1;
53  }
54  self->py_up1D.up1D = new Predicates1D::QuantitativeInvisibilityUP1D(i);
55  return 0;
56 }
57 
58 /*-----------------------BPy_QuantitativeInvisibilityUP1D type definition -----------------------*/
59 
61  PyVarObject_HEAD_INIT(nullptr, 0) "QuantitativeInvisibilityUP1D", /* tp_name */
62  sizeof(BPy_QuantitativeInvisibilityUP1D), /* tp_basicsize */
63  0, /* tp_itemsize */
64  nullptr, /* tp_dealloc */
65  0, /* tp_vectorcall_offset */
66  nullptr, /* tp_getattr */
67  nullptr, /* tp_setattr */
68  nullptr, /* tp_reserved */
69  nullptr, /* tp_repr */
70  nullptr, /* tp_as_number */
71  nullptr, /* tp_as_sequence */
72  nullptr, /* tp_as_mapping */
73  nullptr, /* tp_hash */
74  nullptr, /* tp_call */
75  nullptr, /* tp_str */
76  nullptr, /* tp_getattro */
77  nullptr, /* tp_setattro */
78  nullptr, /* tp_as_buffer */
79  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
81  nullptr, /* tp_traverse */
82  nullptr, /* tp_clear */
83  nullptr, /* tp_richcompare */
84  0, /* tp_weaklistoffset */
85  nullptr, /* tp_iter */
86  nullptr, /* tp_iternext */
87  nullptr, /* tp_methods */
88  nullptr, /* tp_members */
89  nullptr, /* tp_getset */
90  &UnaryPredicate1D_Type, /* tp_base */
91  nullptr, /* tp_dict */
92  nullptr, /* tp_descr_get */
93  nullptr, /* tp_descr_set */
94  0, /* tp_dictoffset */
95  (initproc)QuantitativeInvisibilityUP1D___init__, /* tp_init */
96  nullptr, /* tp_alloc */
97  nullptr, /* tp_new */
98 };
99 
101 
102 #ifdef __cplusplus
103 }
104 #endif
static int QuantitativeInvisibilityUP1D___init__(BPy_QuantitativeInvisibilityUP1D *self, PyObject *args, PyObject *kwds)
PyTypeObject QuantitativeInvisibilityUP1D_Type
static char QuantitativeInvisibilityUP1D___doc__[]
PyTypeObject UnaryPredicate1D_Type
inherits from class Rep
Definition: AppCanvas.cpp:18