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