Blender  V2.93
BPy_ExternalContourUP1D.cpp
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 using namespace Freestyle;
28 
30 
31 //------------------------INSTANCE METHODS ----------------------------------
32 
34  "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`ExternalContourUP1D`\n"
35  "\n"
36  ".. method:: __call__(inter)\n"
37  "\n"
38  " Returns true if the Interface1D is an external contour. An\n"
39  " Interface1D is an external contour if it is bordered by no shape on\n"
40  " one of its sides.\n"
41  "\n"
42  " :arg inter: An Interface1D object.\n"
43  " :type inter: :class:`freestyle.types.Interface1D`\n"
44  " :return: True if the Interface1D is an external contour, false\n"
45  " otherwise.\n"
46  " :rtype: bool\n";
47 
49  PyObject *args,
50  PyObject *kwds)
51 {
52  static const char *kwlist[] = {nullptr};
53 
54  if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
55  return -1;
56  }
57  self->py_up1D.up1D = new Predicates1D::ExternalContourUP1D();
58  return 0;
59 }
60 
61 /*-----------------------BPy_ExternalContourUP1D type definition ------------------------------*/
62 
63 PyTypeObject ExternalContourUP1D_Type = {
64  PyVarObject_HEAD_INIT(nullptr, 0) "ExternalContourUP1D", /* tp_name */
65  sizeof(BPy_ExternalContourUP1D), /* tp_basicsize */
66  0, /* tp_itemsize */
67  nullptr, /* tp_dealloc */
68  0, /* tp_vectorcall_offset */
69  nullptr, /* tp_getattr */
70  nullptr, /* tp_setattr */
71  nullptr, /* tp_reserved */
72  nullptr, /* tp_repr */
73  nullptr, /* tp_as_number */
74  nullptr, /* tp_as_sequence */
75  nullptr, /* tp_as_mapping */
76  nullptr, /* tp_hash */
77  nullptr, /* tp_call */
78  nullptr, /* tp_str */
79  nullptr, /* tp_getattro */
80  nullptr, /* tp_setattro */
81  nullptr, /* tp_as_buffer */
82  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
83  ExternalContourUP1D___doc__, /* tp_doc */
84  nullptr, /* tp_traverse */
85  nullptr, /* tp_clear */
86  nullptr, /* tp_richcompare */
87  0, /* tp_weaklistoffset */
88  nullptr, /* tp_iter */
89  nullptr, /* tp_iternext */
90  nullptr, /* tp_methods */
91  nullptr, /* tp_members */
92  nullptr, /* tp_getset */
93  &UnaryPredicate1D_Type, /* tp_base */
94  nullptr, /* tp_dict */
95  nullptr, /* tp_descr_get */
96  nullptr, /* tp_descr_set */
97  0, /* tp_dictoffset */
98  (initproc)ExternalContourUP1D___init__, /* tp_init */
99  nullptr, /* tp_alloc */
100  nullptr, /* tp_new */
101 };
102 
104 
105 #ifdef __cplusplus
106 }
107 #endif
static int ExternalContourUP1D___init__(BPy_ExternalContourUP1D *self, PyObject *args, PyObject *kwds)
static char ExternalContourUP1D___doc__[]
PyTypeObject ExternalContourUP1D_Type
PyTypeObject UnaryPredicate1D_Type
inherits from class Rep
Definition: AppCanvas.cpp:32