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