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