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/UnaryFunction0D/UnaryFunction0D_vector_ViewShape/BPy_GetOccludersF0D.cpp
25
#include "BPy_GetOccludersF0D.h"
27
#include "../../../view_map/Functions0D.h"
33
///////////////////////////////////////////////////////////////////////////////////////////
35
//------------------------INSTANCE METHODS ----------------------------------
37
static char GetOccludersF0D___doc__[] =
38
"Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DVectorViewShape` > :class:`GetOccludersF0D`\n"
40
".. method:: __init__()\n"
42
" Builds a GetOccludersF0D object.\n"
44
".. method:: __call__(it)\n"
46
" Returns a list of :class:`ViewShape` objects occluding the\n"
47
" :class:`Interface0D` pointed by the Interface0DIterator.\n"
49
" :arg it: An Interface0DIterator object.\n"
50
" :type it: :class:`Interface0DIterator`\n"
51
" :return: A list of ViewShape objects occluding the pointed\n"
53
" :rtype: list of :class:`ViewShape` objects\n";
55
static int GetOccludersF0D___init__(BPy_GetOccludersF0D *self, PyObject *args, PyObject *kwds)
57
static const char *kwlist[] = {NULL};
59
if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist))
61
self->py_uf0D_vectorviewshape.uf0D_vectorviewshape = new Functions0D::GetOccludersF0D();
62
self->py_uf0D_vectorviewshape.uf0D_vectorviewshape->py_uf0D = (PyObject *)self;
66
/*-----------------------BPy_GetOccludersF0D type definition ------------------------------*/
68
PyTypeObject GetOccludersF0D_Type = {
69
PyVarObject_HEAD_INIT(NULL, 0)
70
"GetOccludersF0D", /* tp_name */
71
sizeof(BPy_GetOccludersF0D), /* tp_basicsize */
80
0, /* tp_as_sequence */
81
0, /* tp_as_mapping */
88
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
89
GetOccludersF0D___doc__, /* tp_doc */
92
0, /* tp_richcompare */
93
0, /* tp_weaklistoffset */
99
&UnaryFunction0DVectorViewShape_Type, /* tp_base */
101
0, /* tp_descr_get */
102
0, /* tp_descr_set */
103
0, /* tp_dictoffset */
104
(initproc)GetOccludersF0D___init__, /* tp_init */
109
///////////////////////////////////////////////////////////////////////////////////////////