~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

Viewing changes to source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_vector_ViewShape/BPy_GetOccludersF0D.cpp

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * ***** BEGIN GPL LICENSE BLOCK *****
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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.
 
17
 *
 
18
 * ***** END GPL LICENSE BLOCK *****
 
19
 */
 
20
 
 
21
/** \file source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_vector_ViewShape/BPy_GetOccludersF0D.cpp
 
22
 *  \ingroup freestyle
 
23
 */
 
24
 
 
25
#include "BPy_GetOccludersF0D.h"
 
26
 
 
27
#include "../../../view_map/Functions0D.h"
 
28
 
 
29
#ifdef __cplusplus
 
30
extern "C" {
 
31
#endif
 
32
 
 
33
///////////////////////////////////////////////////////////////////////////////////////////
 
34
 
 
35
//------------------------INSTANCE METHODS ----------------------------------
 
36
 
 
37
static char GetOccludersF0D___doc__[] =
 
38
"Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DVectorViewShape` > :class:`GetOccludersF0D`\n"
 
39
"\n"
 
40
".. method:: __init__()\n"
 
41
"\n"
 
42
"   Builds a GetOccludersF0D object.\n"
 
43
"\n"
 
44
".. method:: __call__(it)\n"
 
45
"\n"
 
46
"   Returns a list of :class:`ViewShape` objects occluding the\n"
 
47
"   :class:`Interface0D` pointed by the Interface0DIterator.\n"
 
48
"\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"
 
52
"      Interface0D.\n"
 
53
"   :rtype: list of :class:`ViewShape` objects\n";
 
54
 
 
55
static int GetOccludersF0D___init__(BPy_GetOccludersF0D *self, PyObject *args, PyObject *kwds)
 
56
{
 
57
        static const char *kwlist[] = {NULL};
 
58
 
 
59
        if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist))
 
60
                return -1;
 
61
        self->py_uf0D_vectorviewshape.uf0D_vectorviewshape = new Functions0D::GetOccludersF0D();
 
62
        self->py_uf0D_vectorviewshape.uf0D_vectorviewshape->py_uf0D = (PyObject *)self;
 
63
        return 0;
 
64
}
 
65
 
 
66
/*-----------------------BPy_GetOccludersF0D type definition ------------------------------*/
 
67
 
 
68
PyTypeObject GetOccludersF0D_Type = {
 
69
        PyVarObject_HEAD_INIT(NULL, 0)
 
70
        "GetOccludersF0D",              /* tp_name */
 
71
        sizeof(BPy_GetOccludersF0D),    /* tp_basicsize */
 
72
        0,                              /* tp_itemsize */
 
73
        0,                              /* tp_dealloc */
 
74
        0,                              /* tp_print */
 
75
        0,                              /* tp_getattr */
 
76
        0,                              /* tp_setattr */
 
77
        0,                              /* tp_reserved */
 
78
        0,                              /* tp_repr */
 
79
        0,                              /* tp_as_number */
 
80
        0,                              /* tp_as_sequence */
 
81
        0,                              /* tp_as_mapping */
 
82
        0,                              /* tp_hash  */
 
83
        0,                              /* tp_call */
 
84
        0,                              /* tp_str */
 
85
        0,                              /* tp_getattro */
 
86
        0,                              /* tp_setattro */
 
87
        0,                              /* tp_as_buffer */
 
88
        Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
 
89
        GetOccludersF0D___doc__,        /* tp_doc */
 
90
        0,                              /* tp_traverse */
 
91
        0,                              /* tp_clear */
 
92
        0,                              /* tp_richcompare */
 
93
        0,                              /* tp_weaklistoffset */
 
94
        0,                              /* tp_iter */
 
95
        0,                              /* tp_iternext */
 
96
        0,                              /* tp_methods */
 
97
        0,                              /* tp_members */
 
98
        0,                              /* tp_getset */
 
99
        &UnaryFunction0DVectorViewShape_Type, /* tp_base */
 
100
        0,                              /* tp_dict */
 
101
        0,                              /* tp_descr_get */
 
102
        0,                              /* tp_descr_set */
 
103
        0,                              /* tp_dictoffset */
 
104
        (initproc)GetOccludersF0D___init__, /* tp_init */
 
105
        0,                              /* tp_alloc */
 
106
        0,                              /* tp_new */
 
107
};
 
108
 
 
109
///////////////////////////////////////////////////////////////////////////////////////////
 
110
 
 
111
#ifdef __cplusplus
 
112
}
 
113
#endif