soc-2008-mxcurioni: Added first batch of Iterators: AdjacencyIterator, Interface0DIt...
[blender-staging.git] / source / blender / freestyle / intern / python / BPy_Convert.h
1 #ifndef FREESTYLE_PYTHON_CONVERT_H
2 #define FREESTYLE_PYTHON_CONVERT_H
3
4 #include "../geometry/Geom.h"
5 using namespace Geometry;
6
7 #include "BPy_Id.h"
8 #include "BPy_IntegrationType.h"
9 #include "BPy_Interface0D.h"
10 #include "Interface0D/CurvePoint/BPy_StrokeVertex.h"
11 #include "Interface0D/BPy_SVertex.h"
12 #include "Interface1D/BPy_FEdge.h"
13 #include "BPy_Nature.h"
14 #include "BPy_MediumType.h"
15 #include "BPy_StrokeAttribute.h"
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 ///////////////////////////////////////////////////////////////////////////////////////////
22
23 #include <Python.h>
24 #include "api2_2x/vector.h"
25 #include "api2_2x/gen_utils.h"
26
27 PyObject * PyBool_from_bool( bool b );
28 bool bool_from_PyBool( PyObject *b );
29
30 PyObject * Vector_from_Vec2f( Vec2f& v );
31 PyObject * Vector_from_Vec3f( Vec3f& v );
32 PyObject * Vector_from_Vec3r( Vec3r& v );
33
34 PyObject * BPy_FEdge_from_FEdge( FEdge& fe );
35 PyObject * BPy_Id_from_Id( Id& id );
36 PyObject * BPy_Interface0D_from_Interface0D( Interface0D& if0D );
37 PyObject * BPy_Nature_from_Nature( unsigned short n );
38 PyObject * BPy_MediumType_from_MediumType( int n );
39 PyObject * BPy_StrokeAttribute_from_StrokeAttribute( StrokeAttribute& sa );
40 PyObject * BPy_StrokeVertex_from_StrokeVertex( StrokeVertex& sv );
41 PyObject * BPy_SVertex_from_SVertex( SVertex& sv );
42
43 ///////////////////////////////////////////////////////////////////////////////////////////
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49
50 #endif /* FREESTYLE_PYTHON_CONVERT_H */