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