Blender  V3.3
BPy_Length2DBP1D.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #include "BPy_Length2DBP1D.h"
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 using namespace Freestyle;
14 
16 
17 //------------------------INSTANCE METHODS ----------------------------------
18 
19 static char Length2DBP1D___doc__[] =
20  "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`Length2DBP1D`\n"
21  "\n"
22  ".. method:: __call__(inter1, inter2)\n"
23  "\n"
24  " Returns true if the 2D length of inter1 is less than the 2D length\n"
25  " of inter2.\n"
26  "\n"
27  " :arg inter1: The first Interface1D object.\n"
28  " :type inter1: :class:`freestyle.types.Interface1D`\n"
29  " :arg inter2: The second Interface1D object.\n"
30  " :type inter2: :class:`freestyle.types.Interface1D`\n"
31  " :return: True or false.\n"
32  " :rtype: bool\n";
33 
34 static int Length2DBP1D___init__(BPy_Length2DBP1D *self, PyObject *args, PyObject *kwds)
35 {
36  static const char *kwlist[] = {nullptr};
37 
38  if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
39  return -1;
40  }
41  self->py_bp1D.bp1D = new Predicates1D::Length2DBP1D();
42  return 0;
43 }
44 
45 /*-----------------------BPy_Length2DBP1D type definition ------------------------------*/
46 
47 PyTypeObject Length2DBP1D_Type = {
48  PyVarObject_HEAD_INIT(nullptr, 0) "Length2DBP1D", /* tp_name */
49  sizeof(BPy_Length2DBP1D), /* tp_basicsize */
50  0, /* tp_itemsize */
51  nullptr, /* tp_dealloc */
52  0, /* tp_vectorcall_offset */
53  nullptr, /* tp_getattr */
54  nullptr, /* tp_setattr */
55  nullptr, /* tp_reserved */
56  nullptr, /* tp_repr */
57  nullptr, /* tp_as_number */
58  nullptr, /* tp_as_sequence */
59  nullptr, /* tp_as_mapping */
60  nullptr, /* tp_hash */
61  nullptr, /* tp_call */
62  nullptr, /* tp_str */
63  nullptr, /* tp_getattro */
64  nullptr, /* tp_setattro */
65  nullptr, /* tp_as_buffer */
66  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
67  Length2DBP1D___doc__, /* tp_doc */
68  nullptr, /* tp_traverse */
69  nullptr, /* tp_clear */
70  nullptr, /* tp_richcompare */
71  0, /* tp_weaklistoffset */
72  nullptr, /* tp_iter */
73  nullptr, /* tp_iternext */
74  nullptr, /* tp_methods */
75  nullptr, /* tp_members */
76  nullptr, /* tp_getset */
77  &BinaryPredicate1D_Type, /* tp_base */
78  nullptr, /* tp_dict */
79  nullptr, /* tp_descr_get */
80  nullptr, /* tp_descr_set */
81  0, /* tp_dictoffset */
82  (initproc)Length2DBP1D___init__, /* tp_init */
83  nullptr, /* tp_alloc */
84  nullptr, /* tp_new */
85 };
86 
88 
89 #ifdef __cplusplus
90 }
91 #endif
PyTypeObject BinaryPredicate1D_Type
PyTypeObject Length2DBP1D_Type
static int Length2DBP1D___init__(BPy_Length2DBP1D *self, PyObject *args, PyObject *kwds)
static char Length2DBP1D___doc__[]
inherits from class Rep
Definition: AppCanvas.cpp:18