Blender V4.3
BPy_ContourUP1D.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_ContourUP1D.h"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15using namespace Freestyle;
16
18
19//------------------------INSTANCE METHODS ----------------------------------
20
22 /* Wrap. */
23 ContourUP1D___doc__,
24 "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`ContourUP1D`\n"
25 "\n"
26 ".. method:: __call__(inter)\n"
27 "\n"
28 " Returns true if the Interface1D is a contour. An Interface1D is a\n"
29 " contour if it is bordered by a different shape on each of its sides.\n"
30 "\n"
31 " :arg inter: An Interface1D object.\n"
32 " :type inter: :class:`freestyle.types.Interface1D`\n"
33 " :return: True if the Interface1D is a contour, false otherwise.\n"
34 " :rtype: bool\n");
35
36static int ContourUP1D___init__(BPy_ContourUP1D *self, PyObject *args, PyObject *kwds)
37{
38 static const char *kwlist[] = {nullptr};
39
40 if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
41 return -1;
42 }
43 self->py_up1D.up1D = new Predicates1D::ContourUP1D();
44 return 0;
45}
46
47/*-----------------------BPy_ContourUP1D type definition ------------------------------*/
48
49PyTypeObject ContourUP1D_Type = {
50 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
51 /*tp_name*/ "ContourUP1D",
52 /*tp_basicsize*/ sizeof(BPy_ContourUP1D),
53 /*tp_itemsize*/ 0,
54 /*tp_dealloc*/ nullptr,
55 /*tp_vectorcall_offset*/ 0,
56 /*tp_getattr*/ nullptr,
57 /*tp_setattr*/ nullptr,
58 /*tp_as_async*/ nullptr,
59 /*tp_repr*/ nullptr,
60 /*tp_as_number*/ nullptr,
61 /*tp_as_sequence*/ nullptr,
62 /*tp_as_mapping*/ nullptr,
63 /*tp_hash*/ nullptr,
64 /*tp_call*/ nullptr,
65 /*tp_str*/ nullptr,
66 /*tp_getattro*/ nullptr,
67 /*tp_setattro*/ nullptr,
68 /*tp_as_buffer*/ nullptr,
69 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
70 /*tp_doc*/ ContourUP1D___doc__,
71 /*tp_traverse*/ nullptr,
72 /*tp_clear*/ nullptr,
73 /*tp_richcompare*/ nullptr,
74 /*tp_weaklistoffset*/ 0,
75 /*tp_iter*/ nullptr,
76 /*tp_iternext*/ nullptr,
77 /*tp_methods*/ nullptr,
78 /*tp_members*/ nullptr,
79 /*tp_getset*/ nullptr,
80 /*tp_base*/ &UnaryPredicate1D_Type,
81 /*tp_dict*/ nullptr,
82 /*tp_descr_get*/ nullptr,
83 /*tp_descr_set*/ nullptr,
84 /*tp_dictoffset*/ 0,
85 /*tp_init*/ (initproc)ContourUP1D___init__,
86 /*tp_alloc*/ nullptr,
87 /*tp_new*/ nullptr,
88};
89
91
92#ifdef __cplusplus
93}
94#endif
PyDoc_STRVAR(ContourUP1D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`ContourUP1D`\n" "\n" ".. method:: __call__(inter)\n" "\n" " Returns true if the Interface1D is a contour. An Interface1D is a\n" " contour if it is bordered by a different shape on each of its sides.\n" "\n" " :arg inter: An Interface1D object.\n" " :type inter: :class:`freestyle.types.Interface1D`\n" " :return: True if the Interface1D is a contour, false otherwise.\n" " :rtype: bool\n")
PyTypeObject ContourUP1D_Type
static int ContourUP1D___init__(BPy_ContourUP1D *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryPredicate1D_Type
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20