soc-2008-mxcurioni: merged changes to revision 16789
[blender.git] / source / blender / freestyle / intern / python / UnaryFunction0D / UnaryFunction0D_Vec2f / BPy_VertexOrientation2DF0D.cpp
1 #include "BPy_VertexOrientation2DF0D.h"
2
3 #include "../../../view_map/Functions0D.h"
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 ///////////////////////////////////////////////////////////////////////////////////////////
10
11 /*---------------  Python API function prototypes for VertexOrientation2DF0D instance  -----------*/
12         static int VertexOrientation2DF0D___init__(BPy_VertexOrientation2DF0D* self);
13
14 /*-----------------------BPy_VertexOrientation2DF0D type definition ------------------------------*/
15
16 PyTypeObject VertexOrientation2DF0D_Type = {
17         PyObject_HEAD_INIT( NULL ) 
18         0,                                                      /* ob_size */
19         "VertexOrientation2DF0D",                               /* tp_name */
20         sizeof( BPy_VertexOrientation2DF0D ),   /* tp_basicsize */
21         0,                                                      /* tp_itemsize */
22         
23         /* methods */
24         NULL,   /* tp_dealloc */
25         NULL,                                                   /* printfunc tp_print; */
26         NULL,                                                   /* getattrfunc tp_getattr; */
27         NULL,                                                   /* setattrfunc tp_setattr; */
28         NULL,                                                                           /* tp_compare */
29         NULL,                                                                           /* tp_repr */
30
31         /* Method suites for standard classes */
32
33         NULL,                       /* PyNumberMethods *tp_as_number; */
34         NULL,                       /* PySequenceMethods *tp_as_sequence; */
35         NULL,                       /* PyMappingMethods *tp_as_mapping; */
36
37         /* More standard operations (here for binary compatibility) */
38
39         NULL,                                           /* hashfunc tp_hash; */
40         NULL,                       /* ternaryfunc tp_call; */
41         NULL,                       /* reprfunc tp_str; */
42         NULL,                       /* getattrofunc tp_getattro; */
43         NULL,                       /* setattrofunc tp_setattro; */
44
45         /* Functions to access object as input/output buffer */
46         NULL,                       /* PyBufferProcs *tp_as_buffer; */
47
48   /*** Flags to define presence of optional/expanded features ***/
49         Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,               /* long tp_flags; */
50
51         NULL,                       /*  char *tp_doc;  Documentation string */
52   /*** Assigned meaning in release 2.0 ***/
53         /* call function for all accessible objects */
54         NULL,                       /* traverseproc tp_traverse; */
55
56         /* delete references to contained objects */
57         NULL,                       /* inquiry tp_clear; */
58
59   /***  Assigned meaning in release 2.1 ***/
60   /*** rich comparisons ***/
61         NULL,                       /* richcmpfunc tp_richcompare; */
62
63   /***  weak reference enabler ***/
64         0,                          /* long tp_weaklistoffset; */
65
66   /*** Added in release 2.2 ***/
67         /*   Iterators */
68         NULL,                       /* getiterfunc tp_iter; */
69         NULL,                       /* iternextfunc tp_iternext; */
70
71   /*** Attribute descriptor and subclassing stuff ***/
72         NULL,   /* struct PyMethodDef *tp_methods; */
73         NULL,                           /* struct PyMemberDef *tp_members; */
74         NULL,                                           /* struct PyGetSetDef *tp_getset; */
75         &UnaryFunction0DVec2f_Type,                                                     /* struct _typeobject *tp_base; */
76         NULL,                                                   /* PyObject *tp_dict; */
77         NULL,                                                   /* descrgetfunc tp_descr_get; */
78         NULL,                                                   /* descrsetfunc tp_descr_set; */
79         0,                              /* long tp_dictoffset; */
80         (initproc)VertexOrientation2DF0D___init__, /* initproc tp_init; */
81         NULL,                                                   /* allocfunc tp_alloc; */
82         NULL,                           /* newfunc tp_new; */
83         
84         /*  Low-level free-memory routine */
85         NULL,                       /* freefunc tp_free;  */
86         
87         /* For PyObject_IS_GC */
88         NULL,                       /* inquiry tp_is_gc;  */
89         NULL,                       /* PyObject *tp_bases; */
90         
91         /* method resolution order */
92         NULL,                       /* PyObject *tp_mro;  */
93         NULL,                       /* PyObject *tp_cache; */
94         NULL,                       /* PyObject *tp_subclasses; */
95         NULL,                       /* PyObject *tp_weaklist; */
96         NULL
97 };
98
99 //------------------------INSTANCE METHODS ----------------------------------
100
101 int VertexOrientation2DF0D___init__( BPy_VertexOrientation2DF0D* self )
102 {
103         self->py_uf0D_vec2f.uf0D_vec2f = new Functions0D::VertexOrientation2DF0D();
104         return 0;
105 }
106
107 ///////////////////////////////////////////////////////////////////////////////////////////
108
109 #ifdef __cplusplus
110 }
111 #endif