2
* ***** BEGIN GPL LICENSE BLOCK *****
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software Foundation,
16
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
* ***** END GPL LICENSE BLOCK *****
21
/** \file source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_vector_ViewShape/BPy_GetOccludeeF1D.cpp
25
#include "BPy_GetOccludeeF1D.h"
27
#include "../../../view_map/Functions1D.h"
28
#include "../../BPy_Convert.h"
29
#include "../../BPy_IntegrationType.h"
35
///////////////////////////////////////////////////////////////////////////////////////////
37
//------------------------INSTANCE METHODS ----------------------------------
39
static char GetOccludeeF1D___doc__[] =
40
"Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DVectorViewShape` > :class:`GetOccludeeF1D`\n"
42
".. method:: __init__()\n"
44
" Builds a GetOccludeeF1D object.\n"
46
".. method:: __call__(inter)\n"
48
" Returns a list of occluded shapes covered by this Interface1D.\n"
50
" :arg inter: An Interface1D object.\n"
51
" :type inter: :class:`Interface1D`\n"
52
" :return: A list of occluded shapes covered by the Interface1D.\n"
53
" :rtype: list of :class:`ViewShape` objects\n";
55
static int GetOccludeeF1D___init__(BPy_GetOccludeeF1D *self, PyObject *args, PyObject *kwds)
57
static const char *kwlist[] = {NULL};
59
if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist))
61
self->py_uf1D_vectorviewshape.uf1D_vectorviewshape = new Functions1D::GetOccludeeF1D();
65
/*-----------------------BPy_GetOccludeeF1D type definition ------------------------------*/
67
PyTypeObject GetOccludeeF1D_Type = {
68
PyVarObject_HEAD_INIT(NULL, 0)
69
"GetOccludeeF1D", /* tp_name */
70
sizeof(BPy_GetOccludeeF1D), /* tp_basicsize */
79
0, /* tp_as_sequence */
80
0, /* tp_as_mapping */
87
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
88
GetOccludeeF1D___doc__, /* tp_doc */
91
0, /* tp_richcompare */
92
0, /* tp_weaklistoffset */
98
&UnaryFunction1DVectorViewShape_Type, /* tp_base */
100
0, /* tp_descr_get */
101
0, /* tp_descr_set */
102
0, /* tp_dictoffset */
103
(initproc)GetOccludeeF1D___init__, /* tp_init */
108
///////////////////////////////////////////////////////////////////////////////////////////