Made the Freestyle Python API compatible with Python 3.
[blender.git] / source / blender / freestyle / intern / python / UnaryFunction1D / UnaryFunction1D_vector_ViewShape / BPy_GetOccludeeF1D.cpp
1 #include "BPy_GetOccludeeF1D.h"
2
3 #include "../../../view_map/Functions1D.h"
4 #include "../../BPy_Convert.h"
5 #include "../../BPy_IntegrationType.h"
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 ///////////////////////////////////////////////////////////////////////////////////////////
12
13 /*---------------  Python API function prototypes for GetOccludeeF1D instance  -----------*/
14 static int GetOccludeeF1D___init__(BPy_GetOccludeeF1D* self, PyObject *args);
15
16 /*-----------------------BPy_GetOccludeeF1D type definition ------------------------------*/
17
18 PyTypeObject GetOccludeeF1D_Type = {
19         PyObject_HEAD_INIT(NULL)
20         "GetOccludeeF1D",               /* tp_name */
21         sizeof(BPy_GetOccludeeF1D),     /* tp_basicsize */
22         0,                              /* tp_itemsize */
23         0,                              /* tp_dealloc */
24         0,                              /* tp_print */
25         0,                              /* tp_getattr */
26         0,                              /* tp_setattr */
27         0,                              /* tp_reserved */
28         0,                              /* tp_repr */
29         0,                              /* tp_as_number */
30         0,                              /* tp_as_sequence */
31         0,                              /* tp_as_mapping */
32         0,                              /* tp_hash  */
33         0,                              /* tp_call */
34         0,                              /* tp_str */
35         0,                              /* tp_getattro */
36         0,                              /* tp_setattro */
37         0,                              /* tp_as_buffer */
38         Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
39         "GetOccludeeF1D objects",       /* tp_doc */
40         0,                              /* tp_traverse */
41         0,                              /* tp_clear */
42         0,                              /* tp_richcompare */
43         0,                              /* tp_weaklistoffset */
44         0,                              /* tp_iter */
45         0,                              /* tp_iternext */
46         0,                              /* tp_methods */
47         0,                              /* tp_members */
48         0,                              /* tp_getset */
49         &UnaryFunction1DVectorViewShape_Type, /* tp_base */
50         0,                              /* tp_dict */
51         0,                              /* tp_descr_get */
52         0,                              /* tp_descr_set */
53         0,                              /* tp_dictoffset */
54         (initproc)GetOccludeeF1D___init__, /* tp_init */
55         0,                              /* tp_alloc */
56         0,                              /* tp_new */
57 };
58
59 //------------------------INSTANCE METHODS ----------------------------------
60
61 int GetOccludeeF1D___init__( BPy_GetOccludeeF1D* self, PyObject *args )
62 {
63         if( !PyArg_ParseTuple(args, "") )
64                 return -1;
65         self->py_uf1D_vectorviewshape.uf1D_vectorviewshape = new Functions1D::GetOccludeeF1D();
66         return 0;
67 }
68
69 ///////////////////////////////////////////////////////////////////////////////////////////
70
71 #ifdef __cplusplus
72 }
73 #endif