Blender  V3.3
BPy_GetCurvilinearAbscissaF0D.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
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 
22  "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
23  ":class:`freestyle.types.UnaryFunction0DFloat` > :class:`GetCurvilinearAbscissaF0D`\n"
24  "\n"
25  ".. method:: __init__()\n"
26  "\n"
27  " Builds a GetCurvilinearAbscissaF0D object.\n"
28  "\n"
29  ".. method:: __call__(it)\n"
30  "\n"
31  " Returns the curvilinear abscissa of the\n"
32  " :class:`freestyle.types.Interface0D` pointed by the\n"
33  " Interface0DIterator in the context of its 1D element.\n"
34  "\n"
35  " :arg it: An Interface0DIterator object.\n"
36  " :type it: :class:`freestyle.types.Interface0DIterator`\n"
37  " :return: The curvilinear abscissa of the pointed Interface0D.\n"
38  " :rtype: float\n";
39 
41  PyObject *args,
42  PyObject *kwds)
43 {
44  static const char *kwlist[] = {nullptr};
45 
46  if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
47  return -1;
48  }
49  self->py_uf0D_float.uf0D_float = new Functions0D::GetCurvilinearAbscissaF0D();
50  self->py_uf0D_float.uf0D_float->py_uf0D = (PyObject *)self;
51  return 0;
52 }
53 
54 /*-----------------------BPy_GetCurvilinearAbscissaF0D type definition --------------------------*/
55 
57  PyVarObject_HEAD_INIT(nullptr, 0) "GetCurvilinearAbscissaF0D", /* tp_name */
58  sizeof(BPy_GetCurvilinearAbscissaF0D), /* tp_basicsize */
59  0, /* tp_itemsize */
60  nullptr, /* tp_dealloc */
61  0, /* tp_vectorcall_offset */
62  nullptr, /* tp_getattr */
63  nullptr, /* tp_setattr */
64  nullptr, /* tp_reserved */
65  nullptr, /* tp_repr */
66  nullptr, /* tp_as_number */
67  nullptr, /* tp_as_sequence */
68  nullptr, /* tp_as_mapping */
69  nullptr, /* tp_hash */
70  nullptr, /* tp_call */
71  nullptr, /* tp_str */
72  nullptr, /* tp_getattro */
73  nullptr, /* tp_setattro */
74  nullptr, /* tp_as_buffer */
75  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
77  nullptr, /* tp_traverse */
78  nullptr, /* tp_clear */
79  nullptr, /* tp_richcompare */
80  0, /* tp_weaklistoffset */
81  nullptr, /* tp_iter */
82  nullptr, /* tp_iternext */
83  nullptr, /* tp_methods */
84  nullptr, /* tp_members */
85  nullptr, /* tp_getset */
86  &UnaryFunction0DFloat_Type, /* tp_base */
87  nullptr, /* tp_dict */
88  nullptr, /* tp_descr_get */
89  nullptr, /* tp_descr_set */
90  0, /* tp_dictoffset */
91  (initproc)GetCurvilinearAbscissaF0D___init__, /* tp_init */
92  nullptr, /* tp_alloc */
93  nullptr, /* tp_new */
94 };
95 
97 
98 #ifdef __cplusplus
99 }
100 #endif
static char GetCurvilinearAbscissaF0D___doc__[]
PyTypeObject GetCurvilinearAbscissaF0D_Type
static int GetCurvilinearAbscissaF0D___init__(BPy_GetCurvilinearAbscissaF0D *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0DFloat_Type
inherits from class Rep
Definition: AppCanvas.cpp:18