Blender V4.3
BPy_CurveNatureF0D.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 CurveNatureF0D___doc__,
26 "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
27 ":class:`freestyle.types.UnaryFunction0DEdgeNature` > :class:`CurveNatureF0D`\n"
28 "\n"
29 ".. method:: __init__()\n"
30 "\n"
31 " Builds a CurveNatureF0D object.\n"
32 "\n"
33 ".. method:: __call__(it)\n"
34 "\n"
35 " Returns the :class:`freestyle.types.Nature` of the 1D element the\n"
36 " Interface0D pointed by the Interface0DIterator belongs to.\n"
37 "\n"
38 " :arg it: An Interface0DIterator object.\n"
39 " :type it: :class:`freestyle.types.Interface0DIterator`\n"
40 " :return: The nature of the 1D element to which the pointed Interface0D\n"
41 " belongs.\n"
42 " :rtype: :class:`freestyle.types.Nature`\n");
43
44static int CurveNatureF0D___init__(BPy_CurveNatureF0D *self, PyObject *args, PyObject *kwds)
45{
46 static const char *kwlist[] = {nullptr};
47
48 if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
49 return -1;
50 }
51 self->py_uf0D_edgenature.uf0D_edgenature = new Functions0D::CurveNatureF0D();
52 self->py_uf0D_edgenature.uf0D_edgenature->py_uf0D = (PyObject *)self;
53 return 0;
54}
55
56/*-----------------------BPy_CurveNatureF0D type definition ------------------------------*/
57
58PyTypeObject CurveNatureF0D_Type = {
59 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
60 /*tp_name*/ "CurveNatureF0D",
61 /*tp_basicsize*/ sizeof(BPy_CurveNatureF0D),
62 /*tp_itemsize*/ 0,
63 /*tp_dealloc*/ nullptr,
64 /*tp_vectorcall_offset*/ 0,
65 /*tp_getattr*/ nullptr,
66 /*tp_setattr*/ nullptr,
67 /*tp_as_async*/ nullptr,
68 /*tp_repr*/ nullptr,
69 /*tp_as_number*/ nullptr,
70 /*tp_as_sequence*/ nullptr,
71 /*tp_as_mapping*/ nullptr,
72 /*tp_hash*/ nullptr,
73 /*tp_call*/ nullptr,
74 /*tp_str*/ nullptr,
75 /*tp_getattro*/ nullptr,
76 /*tp_setattro*/ nullptr,
77 /*tp_as_buffer*/ nullptr,
78 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
79 /*tp_doc*/ CurveNatureF0D___doc__,
80 /*tp_traverse*/ nullptr,
81 /*tp_clear*/ nullptr,
82 /*tp_richcompare*/ nullptr,
83 /*tp_weaklistoffset*/ 0,
84 /*tp_iter*/ nullptr,
85 /*tp_iternext*/ nullptr,
86 /*tp_methods*/ nullptr,
87 /*tp_members*/ nullptr,
88 /*tp_getset*/ nullptr,
90 /*tp_dict*/ nullptr,
91 /*tp_descr_get*/ nullptr,
92 /*tp_descr_set*/ nullptr,
93 /*tp_dictoffset*/ 0,
94 /*tp_init*/ (initproc)CurveNatureF0D___init__,
95 /*tp_alloc*/ nullptr,
96 /*tp_new*/ nullptr,
97};
98
100
101#ifdef __cplusplus
102}
103#endif
PyTypeObject CurveNatureF0D_Type
PyDoc_STRVAR(CurveNatureF0D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > " ":class:`freestyle.types.UnaryFunction0DEdgeNature` > :class:`CurveNatureF0D`\n" "\n" ".. method:: __init__()\n" "\n" " Builds a CurveNatureF0D object.\n" "\n" ".. method:: __call__(it)\n" "\n" " Returns the :class:`freestyle.types.Nature` of the 1D element the\n" " Interface0D pointed by the Interface0DIterator belongs to.\n" "\n" " :arg it: An Interface0DIterator object.\n" " :type it: :class:`freestyle.types.Interface0DIterator`\n" " :return: The nature of the 1D element to which the pointed Interface0D\n" " belongs.\n" " :rtype: :class:`freestyle.types.Nature`\n")
static int CurveNatureF0D___init__(BPy_CurveNatureF0D *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0DEdgeNature_Type
Functions taking 0D input.
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20