Blender  V3.3
BPy_GetShapeF1D.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #include "BPy_GetShapeF1D.h"
8 
9 #include "../../../view_map/Functions1D.h"
10 #include "../../BPy_Convert.h"
11 #include "../../BPy_IntegrationType.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 using namespace Freestyle;
18 
20 
21 //------------------------INSTANCE METHODS ----------------------------------
22 
23 static char 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 of :class:`freestyle.types.ViewShape` objects\n";
39 
40 static int GetShapeF1D___init__(BPy_GetShapeF1D *self, PyObject *args, PyObject *kwds)
41 {
42  static const char *kwlist[] = {nullptr};
43 
44  if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
45  return -1;
46  }
47  self->py_uf1D_vectorviewshape.uf1D_vectorviewshape = new Functions1D::GetShapeF1D();
48  return 0;
49 }
50 
51 /*-----------------------BPy_GetShapeF1D type definition ------------------------------*/
52 
53 PyTypeObject GetShapeF1D_Type = {
54  PyVarObject_HEAD_INIT(nullptr, 0) "GetShapeF1D", /* tp_name */
55  sizeof(BPy_GetShapeF1D), /* tp_basicsize */
56  0, /* tp_itemsize */
57  nullptr, /* tp_dealloc */
58  0, /* tp_vectorcall_offset */
59  nullptr, /* tp_getattr */
60  nullptr, /* tp_setattr */
61  nullptr, /* tp_reserved */
62  nullptr, /* tp_repr */
63  nullptr, /* tp_as_number */
64  nullptr, /* tp_as_sequence */
65  nullptr, /* tp_as_mapping */
66  nullptr, /* tp_hash */
67  nullptr, /* tp_call */
68  nullptr, /* tp_str */
69  nullptr, /* tp_getattro */
70  nullptr, /* tp_setattro */
71  nullptr, /* tp_as_buffer */
72  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
73  GetShapeF1D___doc__, /* tp_doc */
74  nullptr, /* tp_traverse */
75  nullptr, /* tp_clear */
76  nullptr, /* tp_richcompare */
77  0, /* tp_weaklistoffset */
78  nullptr, /* tp_iter */
79  nullptr, /* tp_iternext */
80  nullptr, /* tp_methods */
81  nullptr, /* tp_members */
82  nullptr, /* tp_getset */
84  nullptr, /* tp_dict */
85  nullptr, /* tp_descr_get */
86  nullptr, /* tp_descr_set */
87  0, /* tp_dictoffset */
88  (initproc)GetShapeF1D___init__, /* tp_init */
89  nullptr, /* tp_alloc */
90  nullptr, /* tp_new */
91 };
92 
94 
95 #ifdef __cplusplus
96 }
97 #endif
static char GetShapeF1D___doc__[]
PyTypeObject GetShapeF1D_Type
static int GetShapeF1D___init__(BPy_GetShapeF1D *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction1DVectorViewShape_Type
inherits from class Rep
Definition: AppCanvas.cpp:18