Blender V4.3
BPy_ShapeIdF0D.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_ShapeIdF0D.h"
10
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17using namespace Freestyle;
18
20
21//------------------------INSTANCE METHODS ----------------------------------
22
24 /* Wrap. */
25 ShapeIdF0D___doc__,
26 "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
27 ":class:`freestyle.types.UnaryFunction0DId` > :class:`ShapeIdF0D`\n"
28 "\n"
29 ".. method:: __init__()\n"
30 "\n"
31 " Builds a ShapeIdF0D object.\n"
32 "\n"
33 ".. method:: __call__(it)\n"
34 "\n"
35 " Returns the :class:`freestyle.types.Id` of the Shape the\n"
36 " :class:`freestyle.types.Interface0D` pointed by the\n"
37 " Interface0DIterator belongs to. This evaluation can be ambiguous (in\n"
38 " the case of a :class:`freestyle.types.TVertex` for example). This\n"
39 " functor tries to remove this ambiguity using the context offered by\n"
40 " the 1D element to which the Interface0DIterator belongs to. However,\n"
41 " there still can be problematic cases, and the user willing to deal\n"
42 " with this cases in a specific way should implement its own\n"
43 " getShapeIdF0D functor.\n"
44 "\n"
45 " :arg it: An Interface0DIterator object.\n"
46 " :type it: :class:`freestyle.types.Interface0DIterator`\n"
47 " :return: The Id of the Shape the pointed Interface0D belongs to.\n"
48 " :rtype: :class:`freestyle.types.Id`\n");
49
50static int ShapeIdF0D___init__(BPy_ShapeIdF0D *self, PyObject *args, PyObject *kwds)
51{
52 static const char *kwlist[] = {nullptr};
53
54 if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
55 return -1;
56 }
57 self->py_uf0D_id.uf0D_id = new Functions0D::ShapeIdF0D();
58 self->py_uf0D_id.uf0D_id->py_uf0D = (PyObject *)self;
59 return 0;
60}
61
62/*-----------------------BPy_ShapeIdF0D type definition ------------------------------*/
63
64PyTypeObject ShapeIdF0D_Type = {
65 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
66 /*tp_name*/ "ShapeIdF0D",
67 /*tp_basicsize*/ sizeof(BPy_ShapeIdF0D),
68 /*tp_itemsize*/ 0,
69 /*tp_dealloc*/ nullptr,
70 /*tp_vectorcall_offset*/ 0,
71 /*tp_getattr*/ nullptr,
72 /*tp_setattr*/ nullptr,
73 /*tp_as_async*/ nullptr,
74 /*tp_repr*/ nullptr,
75 /*tp_as_number*/ nullptr,
76 /*tp_as_sequence*/ nullptr,
77 /*tp_as_mapping*/ nullptr,
78 /*tp_hash*/ nullptr,
79 /*tp_call*/ nullptr,
80 /*tp_str*/ nullptr,
81 /*tp_getattro*/ nullptr,
82 /*tp_setattro*/ nullptr,
83 /*tp_as_buffer*/ nullptr,
84 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
85 /*tp_doc*/ ShapeIdF0D___doc__,
86 /*tp_traverse*/ nullptr,
87 /*tp_clear*/ nullptr,
88 /*tp_richcompare*/ nullptr,
89 /*tp_weaklistoffset*/ 0,
90 /*tp_iter*/ nullptr,
91 /*tp_iternext*/ nullptr,
92 /*tp_methods*/ nullptr,
93 /*tp_members*/ nullptr,
94 /*tp_getset*/ nullptr,
95 /*tp_base*/ &UnaryFunction0DId_Type,
96 /*tp_dict*/ nullptr,
97 /*tp_descr_get*/ nullptr,
98 /*tp_descr_set*/ nullptr,
99 /*tp_dictoffset*/ 0,
100 /*tp_init*/ (initproc)ShapeIdF0D___init__,
101 /*tp_alloc*/ nullptr,
102 /*tp_new*/ nullptr,
103};
104
106
107#ifdef __cplusplus
108}
109#endif
PyDoc_STRVAR(ShapeIdF0D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > " ":class:`freestyle.types.UnaryFunction0DId` > :class:`ShapeIdF0D`\n" "\n" ".. method:: __init__()\n" "\n" " Builds a ShapeIdF0D object.\n" "\n" ".. method:: __call__(it)\n" "\n" " Returns the :class:`freestyle.types.Id` of the Shape the\n" " :class:`freestyle.types.Interface0D` pointed by the\n" " Interface0DIterator belongs to. This evaluation can be ambiguous (in\n" " the case of a :class:`freestyle.types.TVertex` for example). This\n" " functor tries to remove this ambiguity using the context offered by\n" " the 1D element to which the Interface0DIterator belongs to. However,\n" " there still can be problematic cases, and the user willing to deal\n" " with this cases in a specific way should implement its own\n" " getShapeIdF0D functor.\n" "\n" " :arg it: An Interface0DIterator object.\n" " :type it: :class:`freestyle.types.Interface0DIterator`\n" " :return: The Id of the Shape the pointed Interface0D belongs to.\n" " :rtype: :class:`freestyle.types.Id`\n")
static int ShapeIdF0D___init__(BPy_ShapeIdF0D *self, PyObject *args, PyObject *kwds)
PyTypeObject ShapeIdF0D_Type
PyTypeObject UnaryFunction0DId_Type
Functions taking 0D input.
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20