Blender V5.0
BPy_GetShapeF1D.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_GetShapeF1D.h"
10
12#include "../../BPy_Convert.h"
14
15using namespace Freestyle;
16
18
19//------------------------INSTANCE METHODS ----------------------------------
20
22 /* Wrap. */
23 GetShapeF1D___doc__,
24 "Class hierarchy: :class:`freestyle.types.UnaryFunction1D` > "
25 ":class:`freestyle.types.UnaryFunction1DVectorViewShape` > :class:`GetShapeF1D`\n"
26 "\n"
27 ".. method:: __init__()\n"
28 "\n"
29 " Builds a GetShapeF1D object.\n"
30 "\n"
31 ".. method:: __call__(inter)\n"
32 "\n"
33 " Returns a list of shapes covered by this Interface1D.\n"
34 "\n"
35 " :arg inter: An Interface1D object.\n"
36 " :type inter: :class:`freestyle.types.Interface1D`\n"
37 " :return: A list of shapes covered by the Interface1D.\n"
38 " :rtype: list[:class:`freestyle.types.ViewShape`]\n");
39static int GetShapeF1D___init__(BPy_GetShapeF1D *self, PyObject *args, PyObject *kwds)
40{
41 static const char *kwlist[] = {nullptr};
42
43 if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
44 return -1;
45 }
46 self->py_uf1D_vectorviewshape.uf1D_vectorviewshape = new Functions1D::GetShapeF1D();
47 return 0;
48}
49
50/*-----------------------BPy_GetShapeF1D type definition ------------------------------*/
51
52PyTypeObject GetShapeF1D_Type = {
53 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
54 /*tp_name*/ "GetShapeF1D",
55 /*tp_basicsize*/ sizeof(BPy_GetShapeF1D),
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*/ GetShapeF1D___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,
84 /*tp_dict*/ nullptr,
85 /*tp_descr_get*/ nullptr,
86 /*tp_descr_set*/ nullptr,
87 /*tp_dictoffset*/ 0,
88 /*tp_init*/ (initproc)GetShapeF1D___init__,
89 /*tp_alloc*/ nullptr,
90 /*tp_new*/ nullptr,
91};
92
PyTypeObject GetShapeF1D_Type
PyDoc_STRVAR(GetShapeF1D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryFunction1D` > " ":class:`freestyle.types.UnaryFunction1DVectorViewShape` > :class:`GetShapeF1D`\n" "\n" ".. method:: __init__()\n" "\n" " Builds a GetShapeF1D object.\n" "\n" ".. method:: __call__(inter)\n" "\n" " Returns a list of shapes covered by this Interface1D.\n" "\n" " :arg inter: An Interface1D object.\n" " :type inter: :class:`freestyle.types.Interface1D`\n" " :return: A list of shapes covered by the Interface1D.\n" " :rtype: list[:class:`freestyle.types.ViewShape`]\n")
static int GetShapeF1D___init__(BPy_GetShapeF1D *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction1DVectorViewShape_Type
Functions taking 1D input.
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20