Blender V4.3
BPy_GetZF0D.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
9#include "BPy_GetZF0D.h"
10
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17using namespace Freestyle;
18
20
21//------------------------INSTANCE METHODS ----------------------------------
22
24 /* Wrap. */
25 GetZF0D___doc__,
26 "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
27 ":class:`freestyle.types.UnaryFunction0DDouble` > :class:`GetZF0D`\n"
28 "\n"
29 ".. method:: __init__()\n"
30 "\n"
31 " Builds a GetZF0D object.\n"
32 "\n"
33 ".. method:: __call__(it)\n"
34 "\n"
35 " Returns the Z 3D coordinate of the :class:`freestyle.types.Interface0D` pointed by\n"
36 " the Interface0DIterator.\n"
37 "\n"
38 " :arg it: An Interface0DIterator object.\n"
39 " :type it: :class:`freestyle.types.Interface0DIterator`\n"
40 " :return: The Z 3D coordinate of the pointed Interface0D.\n"
41 " :rtype: float\n");
42
43static int GetZF0D___init__(BPy_GetZF0D *self, PyObject *args, PyObject *kwds)
44{
45 static const char *kwlist[] = {nullptr};
46
47 if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
48 return -1;
49 }
50 self->py_uf0D_double.uf0D_double = new Functions0D::GetZF0D();
51 self->py_uf0D_double.uf0D_double->py_uf0D = (PyObject *)self;
52 return 0;
53}
54
55/*-----------------------BPy_GetZF0D type definition ------------------------------*/
56
57PyTypeObject GetZF0D_Type = {
58 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
59 /*tp_name*/ "GetZF0D",
60 /*tp_basicsize*/ sizeof(BPy_GetZF0D),
61 /*tp_itemsize*/ 0,
62 /*tp_dealloc*/ nullptr,
63 /*tp_vectorcall_offset*/ 0,
64 /*tp_getattr*/ nullptr,
65 /*tp_setattr*/ nullptr,
66 /*tp_as_async*/ nullptr,
67 /*tp_repr*/ nullptr,
68 /*tp_as_number*/ nullptr,
69 /*tp_as_sequence*/ nullptr,
70 /*tp_as_mapping*/ nullptr,
71 /*tp_hash*/ nullptr,
72 /*tp_call*/ nullptr,
73 /*tp_str*/ nullptr,
74 /*tp_getattro*/ nullptr,
75 /*tp_setattro*/ nullptr,
76 /*tp_as_buffer*/ nullptr,
77 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
78 /*tp_doc*/ GetZF0D___doc__,
79 /*tp_traverse*/ nullptr,
80 /*tp_clear*/ nullptr,
81 /*tp_richcompare*/ nullptr,
82 /*tp_weaklistoffset*/ 0,
83 /*tp_iter*/ nullptr,
84 /*tp_iternext*/ nullptr,
85 /*tp_methods*/ nullptr,
86 /*tp_members*/ nullptr,
87 /*tp_getset*/ nullptr,
88 /*tp_base*/ &UnaryFunction0DDouble_Type,
89 /*tp_dict*/ nullptr,
90 /*tp_descr_get*/ nullptr,
91 /*tp_descr_set*/ nullptr,
92 /*tp_dictoffset*/ 0,
93 /*tp_init*/ (initproc)GetZF0D___init__,
94 /*tp_alloc*/ nullptr,
95 /*tp_new*/ nullptr,
96};
97
99
100#ifdef __cplusplus
101}
102#endif
PyDoc_STRVAR(GetZF0D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > " ":class:`freestyle.types.UnaryFunction0DDouble` > :class:`GetZF0D`\n" "\n" ".. method:: __init__()\n" "\n" " Builds a GetZF0D object.\n" "\n" ".. method:: __call__(it)\n" "\n" " Returns the Z 3D coordinate of the :class:`freestyle.types.Interface0D` pointed by\n" " the Interface0DIterator.\n" "\n" " :arg it: An Interface0DIterator object.\n" " :type it: :class:`freestyle.types.Interface0DIterator`\n" " :return: The Z 3D coordinate of the pointed Interface0D.\n" " :rtype: float\n")
static int GetZF0D___init__(BPy_GetZF0D *self, PyObject *args, PyObject *kwds)
PyTypeObject GetZF0D_Type
PyTypeObject UnaryFunction0DDouble_Type
Functions taking 0D input.
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20