Blender V5.0
BPy_QuantitativeInvisibilityF1D.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#include "../../BPy_Convert.h"
14
15using namespace Freestyle;
16
18
19//------------------------INSTANCE METHODS ----------------------------------
20
22 /* Wrap. */
23 QuantitativeInvisibilityF1D___doc__,
24 "Class hierarchy: :class:`freestyle.types.UnaryFunction1D` > "
25 ":class:`freestyle.types.UnaryFunction1DUnsigned` > :class:`QuantitativeInvisibilityF1D`\n"
26 "\n"
27 ".. method:: __init__(integration_type=IntegrationType.MEAN)\n"
28 "\n"
29 " Builds a QuantitativeInvisibilityF1D object.\n"
30 "\n"
31 " :arg integration_type: The integration method used to compute a single value\n"
32 " from a set of values.\n"
33 " :type integration_type: :class:`freestyle.types.IntegrationType`\n"
34 "\n"
35 ".. method:: __call__(inter)\n"
36 "\n"
37 " Returns the Quantitative Invisibility of an Interface1D element. If\n"
38 " the Interface1D is a :class:`freestyle.types.ViewEdge`, then there is\n"
39 " no ambiguity concerning the result. But, if the Interface1D results\n"
40 " of a chaining (chain, stroke), then it might be made of several 1D\n"
41 " elements of different Quantitative Invisibilities.\n"
42 "\n"
43 " :arg inter: An Interface1D object.\n"
44 " :type inter: :class:`freestyle.types.Interface1D`\n"
45 " :return: The Quantitative Invisibility of the Interface1D.\n"
46 " :rtype: int\n");
48 PyObject *args,
49 PyObject *kwds)
50{
51 static const char *kwlist[] = {"integration_type", nullptr};
52 PyObject *obj = nullptr;
53
54 if (!PyArg_ParseTupleAndKeywords(
55 args, kwds, "|O!", (char **)kwlist, &IntegrationType_Type, &obj))
56 {
57 return -1;
58 }
60 self->py_uf1D_unsigned.uf1D_unsigned = new Functions1D::QuantitativeInvisibilityF1D(t);
61 return 0;
62}
63
64/*-----------------------BPy_QuantitativeInvisibilityF1D type definition ------------------------*/
65
67 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
68 /*tp_name*/ "QuantitativeInvisibilityF1D",
69 /*tp_basicsize*/ sizeof(BPy_QuantitativeInvisibilityF1D),
70 /*tp_itemsize*/ 0,
71 /*tp_dealloc*/ nullptr,
72 /*tp_vectorcall_offset*/ 0,
73 /*tp_getattr*/ nullptr,
74 /*tp_setattr*/ nullptr,
75 /*tp_as_async*/ nullptr,
76 /*tp_repr*/ nullptr,
77 /*tp_as_number*/ nullptr,
78 /*tp_as_sequence*/ nullptr,
79 /*tp_as_mapping*/ nullptr,
80 /*tp_hash*/ nullptr,
81 /*tp_call*/ nullptr,
82 /*tp_str*/ nullptr,
83 /*tp_getattro*/ nullptr,
84 /*tp_setattro*/ nullptr,
85 /*tp_as_buffer*/ nullptr,
86 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
87 /*tp_doc*/ QuantitativeInvisibilityF1D___doc__,
88 /*tp_traverse*/ nullptr,
89 /*tp_clear*/ nullptr,
90 /*tp_richcompare*/ nullptr,
91 /*tp_weaklistoffset*/ 0,
92 /*tp_iter*/ nullptr,
93 /*tp_iternext*/ nullptr,
94 /*tp_methods*/ nullptr,
95 /*tp_members*/ nullptr,
96 /*tp_getset*/ nullptr,
98 /*tp_dict*/ nullptr,
99 /*tp_descr_get*/ nullptr,
100 /*tp_descr_set*/ nullptr,
101 /*tp_dictoffset*/ 0,
102 /*tp_init*/ (initproc)QuantitativeInvisibilityF1D___init__,
103 /*tp_alloc*/ nullptr,
104 /*tp_new*/ nullptr,
105};
106
IntegrationType IntegrationType_from_BPy_IntegrationType(PyObject *obj)
PyTypeObject IntegrationType_Type
static int QuantitativeInvisibilityF1D___init__(BPy_QuantitativeInvisibilityF1D *self, PyObject *args, PyObject *kwds)
PyTypeObject QuantitativeInvisibilityF1D_Type
PyDoc_STRVAR(QuantitativeInvisibilityF1D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryFunction1D` > " ":class:`freestyle.types.UnaryFunction1DUnsigned` > :class:`QuantitativeInvisibilityF1D`\n" "\n" ".. method:: __init__(integration_type=IntegrationType.MEAN)\n" "\n" " Builds a QuantitativeInvisibilityF1D object.\n" "\n" " :arg integration_type: The integration method used to compute a single value\n" " from a set of values.\n" " :type integration_type: :class:`freestyle.types.IntegrationType`\n" "\n" ".. method:: __call__(inter)\n" "\n" " Returns the Quantitative Invisibility of an Interface1D element. If\n" " the Interface1D is a :class:`freestyle.types.ViewEdge`, then there is\n" " no ambiguity concerning the result. But, if the Interface1D results\n" " of a chaining (chain, stroke), then it might be made of several 1D\n" " elements of different Quantitative Invisibilities.\n" "\n" " :arg inter: An Interface1D object.\n" " :type inter: :class:`freestyle.types.Interface1D`\n" " :return: The Quantitative Invisibility of the Interface1D.\n" " :rtype: int\n")
PyTypeObject UnaryFunction1DUnsigned_Type
Functions taking 1D input.
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20