Blender  V3.3
BPy_CurveNatureF0D.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #include "BPy_CurveNatureF0D.h"
8 
9 #include "../../../view_map/Functions0D.h"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 using namespace Freestyle;
16 
18 
19 //------------------------INSTANCE METHODS ----------------------------------
20 
21 static char 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";
39 
40 static int CurveNatureF0D___init__(BPy_CurveNatureF0D *self, PyObject *args, PyObject *kwds)
41 {
42  static const char *kwlist[] = {nullptr};
43 
44  if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
45  return -1;
46  }
47  self->py_uf0D_edgenature.uf0D_edgenature = new Functions0D::CurveNatureF0D();
48  self->py_uf0D_edgenature.uf0D_edgenature->py_uf0D = (PyObject *)self;
49  return 0;
50 }
51 
52 /*-----------------------BPy_CurveNatureF0D type definition ------------------------------*/
53 
54 PyTypeObject CurveNatureF0D_Type = {
55  PyVarObject_HEAD_INIT(nullptr, 0) "CurveNatureF0D", /* tp_name */
56  sizeof(BPy_CurveNatureF0D), /* tp_basicsize */
57  0, /* tp_itemsize */
58  nullptr, /* tp_dealloc */
59  0, /* tp_vectorcall_offset */
60  nullptr, /* tp_getattr */
61  nullptr, /* tp_setattr */
62  nullptr, /* tp_reserved */
63  nullptr, /* tp_repr */
64  nullptr, /* tp_as_number */
65  nullptr, /* tp_as_sequence */
66  nullptr, /* tp_as_mapping */
67  nullptr, /* tp_hash */
68  nullptr, /* tp_call */
69  nullptr, /* tp_str */
70  nullptr, /* tp_getattro */
71  nullptr, /* tp_setattro */
72  nullptr, /* tp_as_buffer */
73  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
74  CurveNatureF0D___doc__, /* tp_doc */
75  nullptr, /* tp_traverse */
76  nullptr, /* tp_clear */
77  nullptr, /* tp_richcompare */
78  0, /* tp_weaklistoffset */
79  nullptr, /* tp_iter */
80  nullptr, /* tp_iternext */
81  nullptr, /* tp_methods */
82  nullptr, /* tp_members */
83  nullptr, /* tp_getset */
84  &UnaryFunction0DEdgeNature_Type, /* tp_base */
85  nullptr, /* tp_dict */
86  nullptr, /* tp_descr_get */
87  nullptr, /* tp_descr_set */
88  0, /* tp_dictoffset */
89  (initproc)CurveNatureF0D___init__, /* tp_init */
90  nullptr, /* tp_alloc */
91  nullptr, /* tp_new */
92 };
93 
95 
96 #ifdef __cplusplus
97 }
98 #endif
PyTypeObject CurveNatureF0D_Type
static int CurveNatureF0D___init__(BPy_CurveNatureF0D *self, PyObject *args, PyObject *kwds)
static char CurveNatureF0D___doc__[]
PyTypeObject UnaryFunction0DEdgeNature_Type
inherits from class Rep
Definition: AppCanvas.cpp:18