soc-2008-mxcurioni: ported ALL 0D unary functions, representing 34 new classes. I will do the same for the 1D unary functions.
This commit is contained in:
@@ -101,6 +101,42 @@ python_sources = [
|
|||||||
prefix + '/BPy_StrokeAttribute.cpp',
|
prefix + '/BPy_StrokeAttribute.cpp',
|
||||||
prefix + '/BPy_StrokeShader.cpp',
|
prefix + '/BPy_StrokeShader.cpp',
|
||||||
prefix + '/BPy_UnaryFunction0D.cpp',
|
prefix + '/BPy_UnaryFunction0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_double/BPy_Curvature2DAngleF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_double/BPy_DensityF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_double/BPy_GetProjectedXF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_double/BPy_GetProjectedYF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_double/BPy_GetProjectedZF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_double/BPy_GetXF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_double/BPy_GetYF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_double/BPy_GetZF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_double/BPy_LocalAverageDepthF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_double/BPy_ZDiscontinuityF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/BPy_UnaryFunction0DEdgeNature.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_Nature_EdgeNature/BPy_CurveNatureF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/BPy_UnaryFunction0DFloat.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_float/BPy_GetCurvilinearAbscissaF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_float/BPy_GetParameterF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_float/BPy_GetViewMapGradientNormF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_float/BPy_ReadCompleteViewMapPixelF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_float/BPy_ReadMapPixelF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_float/BPy_ReadSteerableViewMapPixelF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/BPy_UnaryFunction0DId.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_Id/BPy_ShapeIdF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/BPy_UnaryFunction0DMaterial.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_Material/BPy_MaterialF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/BPy_UnaryFunction0DUnsigned.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_unsigned_int/BPy_QuantitativeInvisibilityF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/BPy_UnaryFunction0DVec2f.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_Vec2f/BPy_Normal2DF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_Vec2f/BPy_VertexOrientation2DF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/BPy_UnaryFunction0DVec3f.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_Vec3f/BPy_VertexOrientation3DF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_vector_ViewShape/BPy_GetOccludersF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/BPy_UnaryFunction0DViewShape.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_ViewShape/BPy_GetOccludeeF0D.cpp',
|
||||||
|
prefix + '/UnaryFunction0D/UnaryFunction0D_ViewShape/BPy_GetShapeF0D.cpp',
|
||||||
prefix + '/BPy_UnaryFunction1D.cpp',
|
prefix + '/BPy_UnaryFunction1D.cpp',
|
||||||
prefix + '/BPy_UnaryPredicate0D.cpp',
|
prefix + '/BPy_UnaryPredicate0D.cpp',
|
||||||
prefix + '/BPy_UnaryPredicate1D.cpp',
|
prefix + '/BPy_UnaryPredicate1D.cpp',
|
||||||
|
|||||||
@@ -1,6 +1,16 @@
|
|||||||
#include "BPy_UnaryFunction0D.h"
|
#include "BPy_UnaryFunction0D.h"
|
||||||
|
|
||||||
#include "UnaryFunction0D/BPy_UnaryFunction0DDouble.h"
|
#include "UnaryFunction0D/BPy_UnaryFunction0DDouble.h"
|
||||||
|
#include "UnaryFunction0D/BPy_UnaryFunction0DEdgeNature.h"
|
||||||
|
#include "UnaryFunction0D/BPy_UnaryFunction0DFloat.h"
|
||||||
|
#include "UnaryFunction0D/BPy_UnaryFunction0DId.h"
|
||||||
|
#include "UnaryFunction0D/BPy_UnaryFunction0DMaterial.h"
|
||||||
|
#include "UnaryFunction0D/BPy_UnaryFunction0DUnsigned.h"
|
||||||
|
#include "UnaryFunction0D/BPy_UnaryFunction0DVec2f.h"
|
||||||
|
#include "UnaryFunction0D/BPy_UnaryFunction0DVec3f.h"
|
||||||
|
#include "UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.h"
|
||||||
|
#include "UnaryFunction0D/BPy_UnaryFunction0DViewShape.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -114,6 +124,15 @@ PyMODINIT_FUNC UnaryFunction0D_Init( PyObject *module )
|
|||||||
PyModule_AddObject(module, "UnaryFunction0D", (PyObject *)&UnaryFunction0D_Type);
|
PyModule_AddObject(module, "UnaryFunction0D", (PyObject *)&UnaryFunction0D_Type);
|
||||||
|
|
||||||
UnaryFunction0DDouble_Init( module );
|
UnaryFunction0DDouble_Init( module );
|
||||||
|
UnaryFunction0DEdgeNature_Init( module );
|
||||||
|
UnaryFunction0DFloat_Init( module );
|
||||||
|
UnaryFunction0DId_Init( module );
|
||||||
|
UnaryFunction0DMaterial_Init( module );
|
||||||
|
UnaryFunction0DUnsigned_Init( module );
|
||||||
|
UnaryFunction0DVec2f_Init( module );
|
||||||
|
UnaryFunction0DVec3f_Init( module );
|
||||||
|
UnaryFunction0DVectorViewShape_Init( module );
|
||||||
|
UnaryFunction0DViewShape_Init( module );
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------INSTANCE METHODS ----------------------------------
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|||||||
@@ -3,8 +3,16 @@
|
|||||||
#include "../BPy_Convert.h"
|
#include "../BPy_Convert.h"
|
||||||
#include "../Iterator/BPy_Interface0DIterator.h"
|
#include "../Iterator/BPy_Interface0DIterator.h"
|
||||||
|
|
||||||
|
#include "UnaryFunction0D_double/BPy_Curvature2DAngleF0D.h"
|
||||||
#include "UnaryFunction0D_double/BPy_DensityF0D.h"
|
#include "UnaryFunction0D_double/BPy_DensityF0D.h"
|
||||||
|
#include "UnaryFunction0D_double/BPy_GetProjectedXF0D.h"
|
||||||
|
#include "UnaryFunction0D_double/BPy_GetProjectedYF0D.h"
|
||||||
|
#include "UnaryFunction0D_double/BPy_GetProjectedZF0D.h"
|
||||||
|
#include "UnaryFunction0D_double/BPy_GetXF0D.h"
|
||||||
|
#include "UnaryFunction0D_double/BPy_GetYF0D.h"
|
||||||
|
#include "UnaryFunction0D_double/BPy_GetZF0D.h"
|
||||||
#include "UnaryFunction0D_double/BPy_LocalAverageDepthF0D.h"
|
#include "UnaryFunction0D_double/BPy_LocalAverageDepthF0D.h"
|
||||||
|
#include "UnaryFunction0D_double/BPy_ZDiscontinuityF0D.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -133,6 +141,47 @@ PyMODINIT_FUNC UnaryFunction0DDouble_Init( PyObject *module ) {
|
|||||||
return;
|
return;
|
||||||
Py_INCREF( &LocalAverageDepthF0D_Type );
|
Py_INCREF( &LocalAverageDepthF0D_Type );
|
||||||
PyModule_AddObject(module, "LocalAverageDepthF0D", (PyObject *)&LocalAverageDepthF0D_Type);
|
PyModule_AddObject(module, "LocalAverageDepthF0D", (PyObject *)&LocalAverageDepthF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &Curvature2DAngleF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &Curvature2DAngleF0D_Type );
|
||||||
|
PyModule_AddObject(module, "Curvature2DAngleF0D", (PyObject *)&Curvature2DAngleF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &GetProjectedXF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &GetProjectedXF0D_Type );
|
||||||
|
PyModule_AddObject(module, "GetProjectedXF0D", (PyObject *)&GetProjectedXF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &GetProjectedYF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &GetProjectedYF0D_Type );
|
||||||
|
PyModule_AddObject(module, "GetProjectedYF0D", (PyObject *)&GetProjectedYF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &GetProjectedZF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &GetProjectedZF0D_Type );
|
||||||
|
PyModule_AddObject(module, "GetProjectedZF0D", (PyObject *)&GetProjectedZF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &GetXF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &GetXF0D_Type );
|
||||||
|
PyModule_AddObject(module, "GetXF0D", (PyObject *)&GetXF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &GetYF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &GetYF0D_Type );
|
||||||
|
PyModule_AddObject(module, "GetYF0D", (PyObject *)&GetYF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &GetZF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &GetZF0D_Type );
|
||||||
|
PyModule_AddObject(module, "GetZF0D", (PyObject *)&GetZF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &ZDiscontinuityF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &ZDiscontinuityF0D_Type );
|
||||||
|
PyModule_AddObject(module, "ZDiscontinuityF0D", (PyObject *)&ZDiscontinuityF0D_Type);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,176 @@
|
|||||||
|
#include "BPy_UnaryFunction0DEdgeNature.h"
|
||||||
|
|
||||||
|
#include "../BPy_Convert.h"
|
||||||
|
#include "../Iterator/BPy_Interface0DIterator.h"
|
||||||
|
|
||||||
|
#include "UnaryFunction0D_Nature_EdgeNature/BPy_CurveNatureF0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for UnaryFunction0DEdgeNature instance -----------*/
|
||||||
|
static int UnaryFunction0DEdgeNature___init__(BPy_UnaryFunction0DEdgeNature* self);
|
||||||
|
static void UnaryFunction0DEdgeNature___dealloc__(BPy_UnaryFunction0DEdgeNature* self);
|
||||||
|
static PyObject * UnaryFunction0DEdgeNature___repr__(BPy_UnaryFunction0DEdgeNature* self);
|
||||||
|
|
||||||
|
static PyObject * UnaryFunction0DEdgeNature_getName( BPy_UnaryFunction0DEdgeNature *self);
|
||||||
|
static PyObject * UnaryFunction0DEdgeNature___call__( BPy_UnaryFunction0DEdgeNature *self, PyObject *args);
|
||||||
|
|
||||||
|
/*----------------------UnaryFunction0DEdgeNature instance definitions ----------------------------*/
|
||||||
|
static PyMethodDef BPy_UnaryFunction0DEdgeNature_methods[] = {
|
||||||
|
{"getName", ( PyCFunction ) UnaryFunction0DEdgeNature_getName, METH_NOARGS, "( )Returns the string of the name of the unary 0D function."},
|
||||||
|
{"__call__", ( PyCFunction ) UnaryFunction0DEdgeNature___call__, METH_VARARGS, "(Interface0DIterator it )Executes the operator () on the iterator it pointing onto the point at which we wish to evaluate the function." },
|
||||||
|
{NULL, NULL, 0, NULL}
|
||||||
|
};
|
||||||
|
|
||||||
|
/*-----------------------BPy_UnaryFunction0DEdgeNature type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject UnaryFunction0DEdgeNature_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"UnaryFunction0DEdgeNature", /* tp_name */
|
||||||
|
sizeof( BPy_UnaryFunction0DEdgeNature ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
(destructor)UnaryFunction0DEdgeNature___dealloc__, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
(reprfunc)UnaryFunction0DEdgeNature___repr__, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
BPy_UnaryFunction0DEdgeNature_methods, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0D_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)UnaryFunction0DEdgeNature___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//-------------------MODULE INITIALIZATION--------------------------------
|
||||||
|
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DEdgeNature_Init( PyObject *module ) {
|
||||||
|
|
||||||
|
if( module == NULL )
|
||||||
|
return;
|
||||||
|
|
||||||
|
if( PyType_Ready( &UnaryFunction0DEdgeNature_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &UnaryFunction0DEdgeNature_Type );
|
||||||
|
PyModule_AddObject(module, "UnaryFunction0DEdgeNature", (PyObject *)&UnaryFunction0DEdgeNature_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &CurveNatureF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &CurveNatureF0D_Type );
|
||||||
|
PyModule_AddObject(module, "CurveNatureF0D", (PyObject *)&CurveNatureF0D_Type);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int UnaryFunction0DEdgeNature___init__(BPy_UnaryFunction0DEdgeNature* self)
|
||||||
|
{
|
||||||
|
self->uf0D_edgenature = new UnaryFunction0D<Nature::EdgeNature>();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UnaryFunction0DEdgeNature___dealloc__(BPy_UnaryFunction0DEdgeNature* self)
|
||||||
|
{
|
||||||
|
delete self->uf0D_edgenature;
|
||||||
|
UnaryFunction0D_Type.tp_dealloc((PyObject*)self);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DEdgeNature___repr__(BPy_UnaryFunction0DEdgeNature* self)
|
||||||
|
{
|
||||||
|
return PyString_FromFormat("type: %s - address: %p", self->uf0D_edgenature->getName().c_str(), self->uf0D_edgenature );
|
||||||
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DEdgeNature_getName( BPy_UnaryFunction0DEdgeNature *self )
|
||||||
|
{
|
||||||
|
return PyString_FromString( self->uf0D_edgenature->getName().c_str() );
|
||||||
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DEdgeNature___call__( BPy_UnaryFunction0DEdgeNature *self, PyObject *args)
|
||||||
|
{
|
||||||
|
PyObject *obj;
|
||||||
|
|
||||||
|
if( !PyArg_ParseTuple(args, "O", &obj) && BPy_Interface0DIterator_Check(obj) ) {
|
||||||
|
cout << "ERROR: UnaryFunction0DEdgeNature___call__ " << endl;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
Nature::EdgeNature n = self->uf0D_edgenature->operator()(*( ((BPy_Interface0DIterator *) obj)->if0D_it ));
|
||||||
|
return BPy_Nature_from_Nature( n );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_UNARYFUNCTION0DEDGENATURE_H
|
||||||
|
#define FREESTYLE_PYTHON_UNARYFUNCTION0DEDGENATURE_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0D.h"
|
||||||
|
|
||||||
|
#include "../../winged_edge/Nature.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject UnaryFunction0DEdgeNature_Type;
|
||||||
|
|
||||||
|
#define BPy_UnaryFunction0DEdgeNature_Check(v) (( (PyObject *) v)->ob_type == &UnaryFunction0DEdgeNature_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DEdgeNature structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0D py_uf0D;
|
||||||
|
UnaryFunction0D<Nature::EdgeNature> *uf0D_edgenature;
|
||||||
|
} BPy_UnaryFunction0DEdgeNature;
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DEdgeNature visible prototypes-----------*/
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DEdgeNature_Init( PyObject *module );
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_UNARYFUNCTION0DEDGENATURE_H */
|
||||||
@@ -1,12 +1,205 @@
|
|||||||
PyObject *_wrap_UnaryFunction0DFloat_getName(PyObject *self , PyObject *args) {
|
#include "BPy_UnaryFunction0DFloat.h"
|
||||||
|
|
||||||
|
#include "../BPy_Convert.h"
|
||||||
|
#include "../Iterator/BPy_Interface0DIterator.h"
|
||||||
|
|
||||||
|
#include "UnaryFunction0D_float/BPy_GetCurvilinearAbscissaF0D.h"
|
||||||
|
#include "UnaryFunction0D_float/BPy_GetParameterF0D.h"
|
||||||
|
#include "UnaryFunction0D_float/BPy_GetViewMapGradientNormF0D.h"
|
||||||
|
#include "UnaryFunction0D_float/BPy_ReadCompleteViewMapPixelF0D.h"
|
||||||
|
#include "UnaryFunction0D_float/BPy_ReadMapPixelF0D.h"
|
||||||
|
#include "UnaryFunction0D_float/BPy_ReadSteerableViewMapPixelF0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for UnaryFunction0DFloat instance -----------*/
|
||||||
|
static int UnaryFunction0DFloat___init__(BPy_UnaryFunction0DFloat* self);
|
||||||
|
static void UnaryFunction0DFloat___dealloc__(BPy_UnaryFunction0DFloat* self);
|
||||||
|
static PyObject * UnaryFunction0DFloat___repr__(BPy_UnaryFunction0DFloat* self);
|
||||||
|
|
||||||
|
static PyObject * UnaryFunction0DFloat_getName( BPy_UnaryFunction0DFloat *self);
|
||||||
|
static PyObject * UnaryFunction0DFloat___call__( BPy_UnaryFunction0DFloat *self, PyObject *args);
|
||||||
|
|
||||||
|
/*----------------------UnaryFunction0DFloat instance definitions ----------------------------*/
|
||||||
|
static PyMethodDef BPy_UnaryFunction0DFloat_methods[] = {
|
||||||
|
{"getName", ( PyCFunction ) UnaryFunction0DFloat_getName, METH_NOARGS, "( )Returns the string of the name of the unary 0D function."},
|
||||||
|
{"__call__", ( PyCFunction ) UnaryFunction0DFloat___call__, METH_VARARGS, "(Interface0DIterator it )Executes the operator () on the iterator it pointing onto the point at which we wish to evaluate the function." },
|
||||||
|
{NULL, NULL, 0, NULL}
|
||||||
|
};
|
||||||
|
|
||||||
|
/*-----------------------BPy_UnaryFunction0DFloat type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject UnaryFunction0DFloat_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"UnaryFunction0DFloat", /* tp_name */
|
||||||
|
sizeof( BPy_UnaryFunction0DFloat ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
(destructor)UnaryFunction0DFloat___dealloc__, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
(reprfunc)UnaryFunction0DFloat___repr__, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
BPy_UnaryFunction0DFloat_methods, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0D_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)UnaryFunction0DFloat___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//-------------------MODULE INITIALIZATION--------------------------------
|
||||||
|
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DFloat_Init( PyObject *module ) {
|
||||||
|
|
||||||
|
if( module == NULL )
|
||||||
|
return;
|
||||||
|
|
||||||
|
if( PyType_Ready( &UnaryFunction0DFloat_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &UnaryFunction0DFloat_Type );
|
||||||
|
PyModule_AddObject(module, "UnaryFunction0DFloat", (PyObject *)&UnaryFunction0DFloat_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &GetCurvilinearAbscissaF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &GetCurvilinearAbscissaF0D_Type );
|
||||||
|
PyModule_AddObject(module, "GetCurvilinearAbscissaF0D", (PyObject *)&GetCurvilinearAbscissaF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &GetParameterF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &GetParameterF0D_Type );
|
||||||
|
PyModule_AddObject(module, "GetParameterF0D", (PyObject *)&GetParameterF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &GetViewMapGradientNormF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &GetViewMapGradientNormF0D_Type );
|
||||||
|
PyModule_AddObject(module, "GetViewMapGradientNormF0D", (PyObject *)&GetViewMapGradientNormF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &ReadCompleteViewMapPixelF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &ReadCompleteViewMapPixelF0D_Type );
|
||||||
|
PyModule_AddObject(module, "ReadCompleteViewMapPixelF0D", (PyObject *)&ReadCompleteViewMapPixelF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &ReadMapPixelF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &ReadMapPixelF0D_Type );
|
||||||
|
PyModule_AddObject(module, "ReadMapPixelF0D", (PyObject *)&ReadMapPixelF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &ReadSteerableViewMapPixelF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &ReadSteerableViewMapPixelF0D_Type );
|
||||||
|
PyModule_AddObject(module, "ReadSteerableViewMapPixelF0D", (PyObject *)&ReadSteerableViewMapPixelF0D_Type);
|
||||||
|
}
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int UnaryFunction0DFloat___init__(BPy_UnaryFunction0DFloat* self)
|
||||||
|
{
|
||||||
|
self->uf0D_float = new UnaryFunction0D<float>();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UnaryFunction0DFloat___dealloc__(BPy_UnaryFunction0DFloat* self)
|
||||||
|
{
|
||||||
|
delete self->uf0D_float;
|
||||||
|
UnaryFunction0D_Type.tp_dealloc((PyObject*)self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_UnaryFunction0DFloat___call__(PyObject *self , PyObject *args) {
|
PyObject * UnaryFunction0DFloat___repr__(BPy_UnaryFunction0DFloat* self)
|
||||||
|
{
|
||||||
|
return PyString_FromFormat("type: %s - address: %p", self->uf0D_float->getName().c_str(), self->uf0D_float );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DFloat_getName( BPy_UnaryFunction0DFloat *self )
|
||||||
PyObject *_wrap_disown_UnaryFunction0DFloat(PyObject *self , PyObject *args) {
|
{
|
||||||
|
return PyString_FromString( self->uf0D_float->getName().c_str() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DFloat___call__( BPy_UnaryFunction0DFloat *self, PyObject *args)
|
||||||
|
{
|
||||||
|
PyObject *obj;
|
||||||
|
|
||||||
|
if( !PyArg_ParseTuple(args, "O", &obj) && BPy_Interface0DIterator_Check(obj) ) {
|
||||||
|
cout << "ERROR: UnaryFunction0DFloat___call__ " << endl;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
float f = self->uf0D_float->operator()(*( ((BPy_Interface0DIterator *) obj)->if0D_it ));
|
||||||
|
return PyFloat_FromDouble( f );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_UNARYFUNCTION0DFLOAT_H
|
||||||
|
#define FREESTYLE_PYTHON_UNARYFUNCTION0DFLOAT_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject UnaryFunction0DFloat_Type;
|
||||||
|
|
||||||
|
#define BPy_UnaryFunction0DFloat_Check(v) (( (PyObject *) v)->ob_type == &UnaryFunction0DFloat_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DFloat structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0D py_uf0D;
|
||||||
|
UnaryFunction0D<float> *uf0D_float;
|
||||||
|
} BPy_UnaryFunction0DFloat;
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DFloat visible prototypes-----------*/
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DFloat_Init( PyObject *module );
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_UNARYFUNCTION0DFLOAT_H */
|
||||||
@@ -1,12 +1,175 @@
|
|||||||
PyObject *_wrap_UnaryFunction0DId_getName(PyObject *self , PyObject *args) {
|
#include "BPy_UnaryFunction0DId.h"
|
||||||
|
|
||||||
|
#include "../BPy_Convert.h"
|
||||||
|
#include "../Iterator/BPy_Interface0DIterator.h"
|
||||||
|
|
||||||
|
#include "UnaryFunction0D_Id/BPy_ShapeIdF0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for UnaryFunction0DId instance -----------*/
|
||||||
|
static int UnaryFunction0DId___init__(BPy_UnaryFunction0DId* self);
|
||||||
|
static void UnaryFunction0DId___dealloc__(BPy_UnaryFunction0DId* self);
|
||||||
|
static PyObject * UnaryFunction0DId___repr__(BPy_UnaryFunction0DId* self);
|
||||||
|
|
||||||
|
static PyObject * UnaryFunction0DId_getName( BPy_UnaryFunction0DId *self);
|
||||||
|
static PyObject * UnaryFunction0DId___call__( BPy_UnaryFunction0DId *self, PyObject *args);
|
||||||
|
|
||||||
|
/*----------------------UnaryFunction0DId instance definitions ----------------------------*/
|
||||||
|
static PyMethodDef BPy_UnaryFunction0DId_methods[] = {
|
||||||
|
{"getName", ( PyCFunction ) UnaryFunction0DId_getName, METH_NOARGS, "( )Returns the string of the name of the unary 0D function."},
|
||||||
|
{"__call__", ( PyCFunction ) UnaryFunction0DId___call__, METH_VARARGS, "(Interface0DIterator it )Executes the operator () on the iterator it pointing onto the point at which we wish to evaluate the function." },
|
||||||
|
{NULL, NULL, 0, NULL}
|
||||||
|
};
|
||||||
|
|
||||||
|
/*-----------------------BPy_UnaryFunction0DId type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject UnaryFunction0DId_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"UnaryFunction0DId", /* tp_name */
|
||||||
|
sizeof( BPy_UnaryFunction0DId ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
(destructor)UnaryFunction0DId___dealloc__, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
(reprfunc)UnaryFunction0DId___repr__, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
BPy_UnaryFunction0DId_methods, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0D_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)UnaryFunction0DId___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//-------------------MODULE INITIALIZATION--------------------------------
|
||||||
|
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DId_Init( PyObject *module ) {
|
||||||
|
|
||||||
|
if( module == NULL )
|
||||||
|
return;
|
||||||
|
|
||||||
|
if( PyType_Ready( &UnaryFunction0DId_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &UnaryFunction0DId_Type );
|
||||||
|
PyModule_AddObject(module, "UnaryFunction0DId", (PyObject *)&UnaryFunction0DId_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &ShapeIdF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &ShapeIdF0D_Type );
|
||||||
|
PyModule_AddObject(module, "ShapeIdF0D", (PyObject *)&ShapeIdF0D_Type);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int UnaryFunction0DId___init__(BPy_UnaryFunction0DId* self)
|
||||||
|
{
|
||||||
|
self->uf0D_id = new UnaryFunction0D<Id>();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UnaryFunction0DId___dealloc__(BPy_UnaryFunction0DId* self)
|
||||||
|
{
|
||||||
|
delete self->uf0D_id;
|
||||||
|
UnaryFunction0D_Type.tp_dealloc((PyObject*)self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_UnaryFunction0DId___call__(PyObject *self , PyObject *args) {
|
PyObject * UnaryFunction0DId___repr__(BPy_UnaryFunction0DId* self)
|
||||||
|
{
|
||||||
|
return PyString_FromFormat("type: %s - address: %p", self->uf0D_id->getName().c_str(), self->uf0D_id );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DId_getName( BPy_UnaryFunction0DId *self )
|
||||||
PyObject *_wrap_disown_UnaryFunction0DId(PyObject *self , PyObject *args) {
|
{
|
||||||
|
return PyString_FromString( self->uf0D_id->getName().c_str() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DId___call__( BPy_UnaryFunction0DId *self, PyObject *args)
|
||||||
|
{
|
||||||
|
PyObject *obj;
|
||||||
|
|
||||||
|
if( !PyArg_ParseTuple(args, "O", &obj) && BPy_Interface0DIterator_Check(obj) ) {
|
||||||
|
cout << "ERROR: UnaryFunction0DId___call__ " << endl;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
Id id( self->uf0D_id->operator()(*( ((BPy_Interface0DIterator *) obj)->if0D_it )) );
|
||||||
|
return BPy_Id_from_Id( id );
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_UNARYFUNCTION0DID_H
|
||||||
|
#define FREESTYLE_PYTHON_UNARYFUNCTION0DID_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0D.h"
|
||||||
|
|
||||||
|
#include "../../system/Id.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject UnaryFunction0DId_Type;
|
||||||
|
|
||||||
|
#define BPy_UnaryFunction0DId_Check(v) (( (PyObject *) v)->ob_type == &UnaryFunction0DId_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DId structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0D py_uf0D;
|
||||||
|
UnaryFunction0D<Id> *uf0D_id;
|
||||||
|
} BPy_UnaryFunction0DId;
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DId visible prototypes-----------*/
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DId_Init( PyObject *module );
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_UNARYFUNCTION0DID_H */
|
||||||
@@ -0,0 +1,176 @@
|
|||||||
|
#include "BPy_UnaryFunction0DMaterial.h"
|
||||||
|
|
||||||
|
#include "../BPy_Convert.h"
|
||||||
|
#include "../Iterator/BPy_Interface0DIterator.h"
|
||||||
|
|
||||||
|
#include "UnaryFunction0D_Material/BPy_MaterialF0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for UnaryFunction0DMaterial instance -----------*/
|
||||||
|
static int UnaryFunction0DMaterial___init__(BPy_UnaryFunction0DMaterial* self);
|
||||||
|
static void UnaryFunction0DMaterial___dealloc__(BPy_UnaryFunction0DMaterial* self);
|
||||||
|
static PyObject * UnaryFunction0DMaterial___repr__(BPy_UnaryFunction0DMaterial* self);
|
||||||
|
|
||||||
|
static PyObject * UnaryFunction0DMaterial_getName( BPy_UnaryFunction0DMaterial *self);
|
||||||
|
static PyObject * UnaryFunction0DMaterial___call__( BPy_UnaryFunction0DMaterial *self, PyObject *args);
|
||||||
|
|
||||||
|
/*----------------------UnaryFunction0DMaterial instance definitions ----------------------------*/
|
||||||
|
static PyMethodDef BPy_UnaryFunction0DMaterial_methods[] = {
|
||||||
|
{"getName", ( PyCFunction ) UnaryFunction0DMaterial_getName, METH_NOARGS, "( )Returns the string of the name of the unary 0D function."},
|
||||||
|
{"__call__", ( PyCFunction ) UnaryFunction0DMaterial___call__, METH_VARARGS, "(Interface0DIterator it )Executes the operator () on the iterator it pointing onto the point at which we wish to evaluate the function." },
|
||||||
|
{NULL, NULL, 0, NULL}
|
||||||
|
};
|
||||||
|
|
||||||
|
/*-----------------------BPy_UnaryFunction0DMaterial type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject UnaryFunction0DMaterial_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"UnaryFunction0DMaterial", /* tp_name */
|
||||||
|
sizeof( BPy_UnaryFunction0DMaterial ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
(destructor)UnaryFunction0DMaterial___dealloc__, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
(reprfunc)UnaryFunction0DMaterial___repr__, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
BPy_UnaryFunction0DMaterial_methods, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0D_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)UnaryFunction0DMaterial___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//-------------------MODULE INITIALIZATION--------------------------------
|
||||||
|
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DMaterial_Init( PyObject *module ) {
|
||||||
|
|
||||||
|
if( module == NULL )
|
||||||
|
return;
|
||||||
|
|
||||||
|
if( PyType_Ready( &UnaryFunction0DMaterial_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &UnaryFunction0DMaterial_Type );
|
||||||
|
PyModule_AddObject(module, "UnaryFunction0DMaterial", (PyObject *)&UnaryFunction0DMaterial_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &MaterialF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &MaterialF0D_Type );
|
||||||
|
PyModule_AddObject(module, "MaterialF0D", (PyObject *)&MaterialF0D_Type);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int UnaryFunction0DMaterial___init__(BPy_UnaryFunction0DMaterial* self)
|
||||||
|
{
|
||||||
|
self->uf0D_material = new UnaryFunction0D<Material>();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UnaryFunction0DMaterial___dealloc__(BPy_UnaryFunction0DMaterial* self)
|
||||||
|
{
|
||||||
|
delete self->uf0D_material;
|
||||||
|
UnaryFunction0D_Type.tp_dealloc((PyObject*)self);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DMaterial___repr__(BPy_UnaryFunction0DMaterial* self)
|
||||||
|
{
|
||||||
|
return PyString_FromFormat("type: %s - address: %p", self->uf0D_material->getName().c_str(), self->uf0D_material );
|
||||||
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DMaterial_getName( BPy_UnaryFunction0DMaterial *self )
|
||||||
|
{
|
||||||
|
return PyString_FromString( self->uf0D_material->getName().c_str() );
|
||||||
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DMaterial___call__( BPy_UnaryFunction0DMaterial *self, PyObject *args)
|
||||||
|
{
|
||||||
|
PyObject *obj;
|
||||||
|
|
||||||
|
if( !PyArg_ParseTuple(args, "O", &obj) && BPy_Interface0DIterator_Check(obj) ) {
|
||||||
|
cout << "ERROR: UnaryFunction0DMaterial___call__ " << endl;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
Material m( self->uf0D_material->operator()(*( ((BPy_Interface0DIterator *) obj)->if0D_it )) );
|
||||||
|
return BPy_FrsMaterial_from_Material( m );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_UNARYFUNCTION0DMATERIAL_H
|
||||||
|
#define FREESTYLE_PYTHON_UNARYFUNCTION0DMATERIAL_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0D.h"
|
||||||
|
|
||||||
|
#include "../../scene_graph/Material.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject UnaryFunction0DMaterial_Type;
|
||||||
|
|
||||||
|
#define BPy_UnaryFunction0DMaterial_Check(v) (( (PyObject *) v)->ob_type == &UnaryFunction0DMaterial_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DMaterial structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0D py_uf0D;
|
||||||
|
UnaryFunction0D<Material> *uf0D_material;
|
||||||
|
} BPy_UnaryFunction0DMaterial;
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DMaterial visible prototypes-----------*/
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DMaterial_Init( PyObject *module );
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_UNARYFUNCTION0DMATERIAL_H */
|
||||||
@@ -1,12 +1,176 @@
|
|||||||
PyObject *_wrap_UnaryFunction0DUnsigned_getName(PyObject *self , PyObject *args) {
|
#include "BPy_UnaryFunction0DUnsigned.h"
|
||||||
|
|
||||||
|
#include "../BPy_Convert.h"
|
||||||
|
#include "../Iterator/BPy_Interface0DIterator.h"
|
||||||
|
|
||||||
|
#include "UnaryFunction0D_unsigned_int/BPy_QuantitativeInvisibilityF0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for UnaryFunction0DUnsigned instance -----------*/
|
||||||
|
static int UnaryFunction0DUnsigned___init__(BPy_UnaryFunction0DUnsigned* self);
|
||||||
|
static void UnaryFunction0DUnsigned___dealloc__(BPy_UnaryFunction0DUnsigned* self);
|
||||||
|
static PyObject * UnaryFunction0DUnsigned___repr__(BPy_UnaryFunction0DUnsigned* self);
|
||||||
|
|
||||||
|
static PyObject * UnaryFunction0DUnsigned_getName( BPy_UnaryFunction0DUnsigned *self);
|
||||||
|
static PyObject * UnaryFunction0DUnsigned___call__( BPy_UnaryFunction0DUnsigned *self, PyObject *args);
|
||||||
|
|
||||||
|
/*----------------------UnaryFunction0DUnsigned instance definitions ----------------------------*/
|
||||||
|
static PyMethodDef BPy_UnaryFunction0DUnsigned_methods[] = {
|
||||||
|
{"getName", ( PyCFunction ) UnaryFunction0DUnsigned_getName, METH_NOARGS, "( )Returns the string of the name of the unary 0D function."},
|
||||||
|
{"__call__", ( PyCFunction ) UnaryFunction0DUnsigned___call__, METH_VARARGS, "(Interface0DIterator it )Executes the operator () on the iterator it pointing onto the point at which we wish to evaluate the function." },
|
||||||
|
{NULL, NULL, 0, NULL}
|
||||||
|
};
|
||||||
|
|
||||||
|
/*-----------------------BPy_UnaryFunction0DUnsigned type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject UnaryFunction0DUnsigned_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"UnaryFunction0DUnsigned", /* tp_name */
|
||||||
|
sizeof( BPy_UnaryFunction0DUnsigned ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
(destructor)UnaryFunction0DUnsigned___dealloc__, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
(reprfunc)UnaryFunction0DUnsigned___repr__, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
BPy_UnaryFunction0DUnsigned_methods, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0D_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)UnaryFunction0DUnsigned___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//-------------------MODULE INITIALIZATION--------------------------------
|
||||||
|
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DUnsigned_Init( PyObject *module ) {
|
||||||
|
|
||||||
|
if( module == NULL )
|
||||||
|
return;
|
||||||
|
|
||||||
|
if( PyType_Ready( &UnaryFunction0DUnsigned_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &UnaryFunction0DUnsigned_Type );
|
||||||
|
PyModule_AddObject(module, "UnaryFunction0DUnsigned", (PyObject *)&UnaryFunction0DUnsigned_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &QuantitativeInvisibilityF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &QuantitativeInvisibilityF0D_Type );
|
||||||
|
PyModule_AddObject(module, "QuantitativeInvisibilityF0D", (PyObject *)&QuantitativeInvisibilityF0D_Type);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int UnaryFunction0DUnsigned___init__(BPy_UnaryFunction0DUnsigned* self)
|
||||||
|
{
|
||||||
|
self->uf0D_unsigned = new UnaryFunction0D<unsigned int>();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UnaryFunction0DUnsigned___dealloc__(BPy_UnaryFunction0DUnsigned* self)
|
||||||
|
{
|
||||||
|
delete self->uf0D_unsigned;
|
||||||
|
UnaryFunction0D_Type.tp_dealloc((PyObject*)self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_UnaryFunction0DUnsigned___call__(PyObject *self , PyObject *args) {
|
PyObject * UnaryFunction0DUnsigned___repr__(BPy_UnaryFunction0DUnsigned* self)
|
||||||
|
{
|
||||||
|
return PyString_FromFormat("type: %s - address: %p", self->uf0D_unsigned->getName().c_str(), self->uf0D_unsigned );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DUnsigned_getName( BPy_UnaryFunction0DUnsigned *self )
|
||||||
PyObject *_wrap_disown_UnaryFunction0DUnsigned(PyObject *self , PyObject *args) {
|
{
|
||||||
|
return PyString_FromString( self->uf0D_unsigned->getName().c_str() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DUnsigned___call__( BPy_UnaryFunction0DUnsigned *self, PyObject *args)
|
||||||
|
{
|
||||||
|
PyObject *obj;
|
||||||
|
|
||||||
|
if( !PyArg_ParseTuple(args, "O", &obj) && BPy_Interface0DIterator_Check(obj) ) {
|
||||||
|
cout << "ERROR: UnaryFunction0DUnsigned___call__ " << endl;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned int i = self->uf0D_unsigned->operator()(*( ((BPy_Interface0DIterator *) obj)->if0D_it ));
|
||||||
|
return PyInt_FromLong( i );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_UNARYFUNCTION0DUNSIGNED_H
|
||||||
|
#define FREESTYLE_PYTHON_UNARYFUNCTION0DUNSIGNED_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject UnaryFunction0DUnsigned_Type;
|
||||||
|
|
||||||
|
#define BPy_UnaryFunction0DUnsigned_Check(v) (( (PyObject *) v)->ob_type == &UnaryFunction0DUnsigned_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DUnsigned structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0D py_uf0D;
|
||||||
|
UnaryFunction0D<unsigned int> *uf0D_unsigned;
|
||||||
|
} BPy_UnaryFunction0DUnsigned;
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DUnsigned visible prototypes-----------*/
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DUnsigned_Init( PyObject *module );
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_UNARYFUNCTION0DUNSIGNED_H */
|
||||||
@@ -1,12 +1,182 @@
|
|||||||
PyObject *_wrap_UnaryFunction0DVec2f_getName(PyObject *self , PyObject *args) {
|
#include "BPy_UnaryFunction0DVec2f.h"
|
||||||
|
|
||||||
|
#include "../BPy_Convert.h"
|
||||||
|
#include "../Iterator/BPy_Interface0DIterator.h"
|
||||||
|
|
||||||
|
#include "UnaryFunction0D_Vec2f/BPy_Normal2DF0D.h"
|
||||||
|
#include "UnaryFunction0D_Vec2f/BPy_VertexOrientation2DF0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for UnaryFunction0DVec2f instance -----------*/
|
||||||
|
static int UnaryFunction0DVec2f___init__(BPy_UnaryFunction0DVec2f* self);
|
||||||
|
static void UnaryFunction0DVec2f___dealloc__(BPy_UnaryFunction0DVec2f* self);
|
||||||
|
static PyObject * UnaryFunction0DVec2f___repr__(BPy_UnaryFunction0DVec2f* self);
|
||||||
|
|
||||||
|
static PyObject * UnaryFunction0DVec2f_getName( BPy_UnaryFunction0DVec2f *self);
|
||||||
|
static PyObject * UnaryFunction0DVec2f___call__( BPy_UnaryFunction0DVec2f *self, PyObject *args);
|
||||||
|
|
||||||
|
/*----------------------UnaryFunction0DVec2f instance definitions ----------------------------*/
|
||||||
|
static PyMethodDef BPy_UnaryFunction0DVec2f_methods[] = {
|
||||||
|
{"getName", ( PyCFunction ) UnaryFunction0DVec2f_getName, METH_NOARGS, "( )Returns the string of the name of the unary 0D function."},
|
||||||
|
{"__call__", ( PyCFunction ) UnaryFunction0DVec2f___call__, METH_VARARGS, "(Interface0DIterator it )Executes the operator () on the iterator it pointing onto the point at which we wish to evaluate the function." },
|
||||||
|
{NULL, NULL, 0, NULL}
|
||||||
|
};
|
||||||
|
|
||||||
|
/*-----------------------BPy_UnaryFunction0DVec2f type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject UnaryFunction0DVec2f_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"UnaryFunction0DVec2f", /* tp_name */
|
||||||
|
sizeof( BPy_UnaryFunction0DVec2f ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
(destructor)UnaryFunction0DVec2f___dealloc__, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
(reprfunc)UnaryFunction0DVec2f___repr__, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
BPy_UnaryFunction0DVec2f_methods, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0D_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)UnaryFunction0DVec2f___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//-------------------MODULE INITIALIZATION--------------------------------
|
||||||
|
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DVec2f_Init( PyObject *module ) {
|
||||||
|
|
||||||
|
if( module == NULL )
|
||||||
|
return;
|
||||||
|
|
||||||
|
if( PyType_Ready( &UnaryFunction0DVec2f_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &UnaryFunction0DVec2f_Type );
|
||||||
|
PyModule_AddObject(module, "UnaryFunction0DVec2f", (PyObject *)&UnaryFunction0DVec2f_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &Normal2DF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &Normal2DF0D_Type );
|
||||||
|
PyModule_AddObject(module, "Normal2DF0D", (PyObject *)&Normal2DF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &VertexOrientation2DF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &VertexOrientation2DF0D_Type );
|
||||||
|
PyModule_AddObject(module, "VertexOrientation2DF0D", (PyObject *)&VertexOrientation2DF0D_Type);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int UnaryFunction0DVec2f___init__(BPy_UnaryFunction0DVec2f* self)
|
||||||
|
{
|
||||||
|
self->uf0D_vec2f = new UnaryFunction0D<Vec2f>();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UnaryFunction0DVec2f___dealloc__(BPy_UnaryFunction0DVec2f* self)
|
||||||
|
{
|
||||||
|
delete self->uf0D_vec2f;
|
||||||
|
UnaryFunction0D_Type.tp_dealloc((PyObject*)self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_UnaryFunction0DVec2f___call__(PyObject *self , PyObject *args) {
|
PyObject * UnaryFunction0DVec2f___repr__(BPy_UnaryFunction0DVec2f* self)
|
||||||
|
{
|
||||||
|
return PyString_FromFormat("type: %s - address: %p", self->uf0D_vec2f->getName().c_str(), self->uf0D_vec2f );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DVec2f_getName( BPy_UnaryFunction0DVec2f *self )
|
||||||
PyObject *_wrap_disown_UnaryFunction0DVec2f(PyObject *self , PyObject *args) {
|
{
|
||||||
|
return PyString_FromString( self->uf0D_vec2f->getName().c_str() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DVec2f___call__( BPy_UnaryFunction0DVec2f *self, PyObject *args)
|
||||||
|
{
|
||||||
|
PyObject *obj;
|
||||||
|
|
||||||
|
if( !PyArg_ParseTuple(args, "O", &obj) && BPy_Interface0DIterator_Check(obj) ) {
|
||||||
|
cout << "ERROR: UnaryFunction0DVec2f___call__ " << endl;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
Vec2f v( self->uf0D_vec2f->operator()(*( ((BPy_Interface0DIterator *) obj)->if0D_it )) );
|
||||||
|
return Vector_from_Vec2f( v );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_UNARYFUNCTION0DVEC2F_H
|
||||||
|
#define FREESTYLE_PYTHON_UNARYFUNCTION0DVEC2F_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0D.h"
|
||||||
|
|
||||||
|
#include "../../geometry/Geom.h"
|
||||||
|
using namespace Geometry;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject UnaryFunction0DVec2f_Type;
|
||||||
|
|
||||||
|
#define BPy_UnaryFunction0DVec2f_Check(v) (( (PyObject *) v)->ob_type == &UnaryFunction0DVec2f_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DVec2f structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0D py_uf0D;
|
||||||
|
UnaryFunction0D<Vec2f> *uf0D_vec2f;
|
||||||
|
} BPy_UnaryFunction0DVec2f;
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DVec2f visible prototypes-----------*/
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DVec2f_Init( PyObject *module );
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_UNARYFUNCTION0DVEC2F_H */
|
||||||
@@ -1,12 +1,176 @@
|
|||||||
PyObject *_wrap_UnaryFunction0DVec3f_getName(PyObject *self , PyObject *args) {
|
#include "BPy_UnaryFunction0DVec3f.h"
|
||||||
|
|
||||||
|
#include "../BPy_Convert.h"
|
||||||
|
#include "../Iterator/BPy_Interface0DIterator.h"
|
||||||
|
|
||||||
|
#include "UnaryFunction0D_Vec3f/BPy_VertexOrientation3DF0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for UnaryFunction0DVec3f instance -----------*/
|
||||||
|
static int UnaryFunction0DVec3f___init__(BPy_UnaryFunction0DVec3f* self);
|
||||||
|
static void UnaryFunction0DVec3f___dealloc__(BPy_UnaryFunction0DVec3f* self);
|
||||||
|
static PyObject * UnaryFunction0DVec3f___repr__(BPy_UnaryFunction0DVec3f* self);
|
||||||
|
|
||||||
|
static PyObject * UnaryFunction0DVec3f_getName( BPy_UnaryFunction0DVec3f *self);
|
||||||
|
static PyObject * UnaryFunction0DVec3f___call__( BPy_UnaryFunction0DVec3f *self, PyObject *args);
|
||||||
|
|
||||||
|
/*----------------------UnaryFunction0DVec3f instance definitions ----------------------------*/
|
||||||
|
static PyMethodDef BPy_UnaryFunction0DVec3f_methods[] = {
|
||||||
|
{"getName", ( PyCFunction ) UnaryFunction0DVec3f_getName, METH_NOARGS, "( )Returns the string of the name of the unary 0D function."},
|
||||||
|
{"__call__", ( PyCFunction ) UnaryFunction0DVec3f___call__, METH_VARARGS, "(Interface0DIterator it )Executes the operator () on the iterator it pointing onto the point at which we wish to evaluate the function." },
|
||||||
|
{NULL, NULL, 0, NULL}
|
||||||
|
};
|
||||||
|
|
||||||
|
/*-----------------------BPy_UnaryFunction0DVec3f type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject UnaryFunction0DVec3f_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"UnaryFunction0DVec3f", /* tp_name */
|
||||||
|
sizeof( BPy_UnaryFunction0DVec3f ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
(destructor)UnaryFunction0DVec3f___dealloc__, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
(reprfunc)UnaryFunction0DVec3f___repr__, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
BPy_UnaryFunction0DVec3f_methods, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0D_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)UnaryFunction0DVec3f___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//-------------------MODULE INITIALIZATION--------------------------------
|
||||||
|
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DVec3f_Init( PyObject *module ) {
|
||||||
|
|
||||||
|
if( module == NULL )
|
||||||
|
return;
|
||||||
|
|
||||||
|
if( PyType_Ready( &UnaryFunction0DVec3f_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &UnaryFunction0DVec3f_Type );
|
||||||
|
PyModule_AddObject(module, "UnaryFunction0DVec3f", (PyObject *)&UnaryFunction0DVec3f_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &VertexOrientation3DF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &VertexOrientation3DF0D_Type );
|
||||||
|
PyModule_AddObject(module, "VertexOrientation3DF0D", (PyObject *)&VertexOrientation3DF0D_Type);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int UnaryFunction0DVec3f___init__(BPy_UnaryFunction0DVec3f* self)
|
||||||
|
{
|
||||||
|
self->uf0D_vec3f = new UnaryFunction0D<Vec3f>();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UnaryFunction0DVec3f___dealloc__(BPy_UnaryFunction0DVec3f* self)
|
||||||
|
{
|
||||||
|
delete self->uf0D_vec3f;
|
||||||
|
UnaryFunction0D_Type.tp_dealloc((PyObject*)self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_UnaryFunction0DVec3f___call__(PyObject *self , PyObject *args) {
|
PyObject * UnaryFunction0DVec3f___repr__(BPy_UnaryFunction0DVec3f* self)
|
||||||
|
{
|
||||||
|
return PyString_FromFormat("type: %s - address: %p", self->uf0D_vec3f->getName().c_str(), self->uf0D_vec3f );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DVec3f_getName( BPy_UnaryFunction0DVec3f *self )
|
||||||
PyObject *_wrap_disown_UnaryFunction0DVec3f(PyObject *self , PyObject *args) {
|
{
|
||||||
|
return PyString_FromString( self->uf0D_vec3f->getName().c_str() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DVec3f___call__( BPy_UnaryFunction0DVec3f *self, PyObject *args)
|
||||||
|
{
|
||||||
|
PyObject *obj;
|
||||||
|
|
||||||
|
if( !PyArg_ParseTuple(args, "O", &obj) && BPy_Interface0DIterator_Check(obj) ) {
|
||||||
|
cout << "ERROR: UnaryFunction0DVec3f___call__ " << endl;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
Vec3f v( self->uf0D_vec3f->operator()(*( ((BPy_Interface0DIterator *) obj)->if0D_it )) );
|
||||||
|
return Vector_from_Vec3f( v );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_UNARYFUNCTION0DVEC3F_H
|
||||||
|
#define FREESTYLE_PYTHON_UNARYFUNCTION0DVEC3F_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0D.h"
|
||||||
|
|
||||||
|
#include "../../geometry/Geom.h"
|
||||||
|
using namespace Geometry;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject UnaryFunction0DVec3f_Type;
|
||||||
|
|
||||||
|
#define BPy_UnaryFunction0DVec3f_Check(v) (( (PyObject *) v)->ob_type == &UnaryFunction0DVec3f_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DVec3f structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0D py_uf0D;
|
||||||
|
UnaryFunction0D<Vec3f> *uf0D_vec3f;
|
||||||
|
} BPy_UnaryFunction0DVec3f;
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DVec3f visible prototypes-----------*/
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DVec3f_Init( PyObject *module );
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_UNARYFUNCTION0DVEC3F_H */
|
||||||
@@ -1,8 +1,181 @@
|
|||||||
PyObject *_wrap_UnaryFunction0DVectorViewShape_getName(PyObject *self , PyObject *args) {
|
#include "BPy_UnaryFunction0DVectorViewShape.h"
|
||||||
|
|
||||||
|
#include "../BPy_Convert.h"
|
||||||
|
#include "../Iterator/BPy_Interface0DIterator.h"
|
||||||
|
|
||||||
|
#include "UnaryFunction0D_vector_ViewShape/BPy_GetOccludersF0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for UnaryFunction0DVectorViewShape instance -----------*/
|
||||||
|
static int UnaryFunction0DVectorViewShape___init__(BPy_UnaryFunction0DVectorViewShape* self);
|
||||||
|
static void UnaryFunction0DVectorViewShape___dealloc__(BPy_UnaryFunction0DVectorViewShape* self);
|
||||||
|
static PyObject * UnaryFunction0DVectorViewShape___repr__(BPy_UnaryFunction0DVectorViewShape* self);
|
||||||
|
|
||||||
|
static PyObject * UnaryFunction0DVectorViewShape_getName( BPy_UnaryFunction0DVectorViewShape *self);
|
||||||
|
static PyObject * UnaryFunction0DVectorViewShape___call__( BPy_UnaryFunction0DVectorViewShape *self, PyObject *args);
|
||||||
|
|
||||||
|
/*----------------------UnaryFunction0DVectorViewShape instance definitions ----------------------------*/
|
||||||
|
static PyMethodDef BPy_UnaryFunction0DVectorViewShape_methods[] = {
|
||||||
|
{"getName", ( PyCFunction ) UnaryFunction0DVectorViewShape_getName, METH_NOARGS, "( )Returns the string of the name of the unary 0D function."},
|
||||||
|
{"__call__", ( PyCFunction ) UnaryFunction0DVectorViewShape___call__, METH_VARARGS, "(Interface0DIterator it )Executes the operator () on the iterator it pointing onto the point at which we wish to evaluate the function." },
|
||||||
|
{NULL, NULL, 0, NULL}
|
||||||
|
};
|
||||||
|
|
||||||
|
/*-----------------------BPy_UnaryFunction0DVectorViewShape type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject UnaryFunction0DVectorViewShape_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"UnaryFunction0DVectorViewShape", /* tp_name */
|
||||||
|
sizeof( BPy_UnaryFunction0DVectorViewShape ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
(destructor)UnaryFunction0DVectorViewShape___dealloc__, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
(reprfunc)UnaryFunction0DVectorViewShape___repr__, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
BPy_UnaryFunction0DVectorViewShape_methods, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0D_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)UnaryFunction0DVectorViewShape___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//-------------------MODULE INITIALIZATION--------------------------------
|
||||||
|
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DVectorViewShape_Init( PyObject *module ) {
|
||||||
|
|
||||||
|
if( module == NULL )
|
||||||
|
return;
|
||||||
|
|
||||||
|
if( PyType_Ready( &UnaryFunction0DVectorViewShape_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &UnaryFunction0DVectorViewShape_Type );
|
||||||
|
PyModule_AddObject(module, "UnaryFunction0DVectorViewShape", (PyObject *)&UnaryFunction0DVectorViewShape_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &GetOccludersF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &GetOccludersF0D_Type );
|
||||||
|
PyModule_AddObject(module, "GetOccludersF0D", (PyObject *)&GetOccludersF0D_Type);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int UnaryFunction0DVectorViewShape___init__(BPy_UnaryFunction0DVectorViewShape* self)
|
||||||
|
{
|
||||||
|
self->uf0D_vectorviewshape = new UnaryFunction0D< std::vector<ViewShape*> >();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UnaryFunction0DVectorViewShape___dealloc__(BPy_UnaryFunction0DVectorViewShape* self)
|
||||||
|
{
|
||||||
|
delete self->uf0D_vectorviewshape;
|
||||||
|
UnaryFunction0D_Type.tp_dealloc((PyObject*)self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_UnaryFunction0DVectorViewShape___call__(PyObject *self , PyObject *args) {
|
PyObject * UnaryFunction0DVectorViewShape___repr__(BPy_UnaryFunction0DVectorViewShape* self)
|
||||||
|
{
|
||||||
|
return PyString_FromFormat("type: %s - address: %p", self->uf0D_vectorviewshape->getName().c_str(), self->uf0D_vectorviewshape );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DVectorViewShape_getName( BPy_UnaryFunction0DVectorViewShape *self )
|
||||||
|
{
|
||||||
|
return PyString_FromString( self->uf0D_vectorviewshape->getName().c_str() );
|
||||||
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DVectorViewShape___call__( BPy_UnaryFunction0DVectorViewShape *self, PyObject *args)
|
||||||
|
{
|
||||||
|
PyObject *obj;
|
||||||
|
|
||||||
|
if( !PyArg_ParseTuple(args, "O", &obj) && BPy_Interface0DIterator_Check(obj) ) {
|
||||||
|
cout << "ERROR: UnaryFunction0DVectorViewShape___call__ " << endl;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
std::vector<ViewShape*> vs( self->uf0D_vectorviewshape->operator()(*( ((BPy_Interface0DIterator *) obj)->if0D_it )) );
|
||||||
|
PyObject *list = PyList_New(NULL);
|
||||||
|
|
||||||
|
for( int i = 0; i < vs.size(); i++)
|
||||||
|
PyList_Append(list, BPy_ViewShape_from_ViewShape(*( vs[i] )) );
|
||||||
|
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_UNARYFUNCTION0DVECTORVIEWSHAPE_H
|
||||||
|
#define FREESTYLE_PYTHON_UNARYFUNCTION0DVECTORVIEWSHAPE_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0D.h"
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
#include "../../view_map/ViewMap.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject UnaryFunction0DVectorViewShape_Type;
|
||||||
|
|
||||||
|
#define BPy_UnaryFunction0DVectorViewShape_Check(v) (( (PyObject *) v)->ob_type == &UnaryFunction0DVectorViewShape_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DVectorViewShape structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0D py_uf0D;
|
||||||
|
UnaryFunction0D< std::vector<ViewShape*> > *uf0D_vectorviewshape;
|
||||||
|
} BPy_UnaryFunction0DVectorViewShape;
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DVectorViewShape visible prototypes-----------*/
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DVectorViewShape_Init( PyObject *module );
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_UNARYFUNCTION0DVECTORVIEWSHAPE_H */
|
||||||
@@ -1,8 +1,182 @@
|
|||||||
PyObject *_wrap_UnaryFunction0DViewShape_getName(PyObject *self , PyObject *args) {
|
#include "BPy_UnaryFunction0DViewShape.h"
|
||||||
|
|
||||||
|
#include "../BPy_Convert.h"
|
||||||
|
#include "../Iterator/BPy_Interface0DIterator.h"
|
||||||
|
|
||||||
|
#include "UnaryFunction0D_ViewShape/BPy_GetOccludeeF0D.h"
|
||||||
|
#include "UnaryFunction0D_ViewShape/BPy_GetShapeF0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for UnaryFunction0DViewShape instance -----------*/
|
||||||
|
static int UnaryFunction0DViewShape___init__(BPy_UnaryFunction0DViewShape* self);
|
||||||
|
static void UnaryFunction0DViewShape___dealloc__(BPy_UnaryFunction0DViewShape* self);
|
||||||
|
static PyObject * UnaryFunction0DViewShape___repr__(BPy_UnaryFunction0DViewShape* self);
|
||||||
|
|
||||||
|
static PyObject * UnaryFunction0DViewShape_getName( BPy_UnaryFunction0DViewShape *self);
|
||||||
|
static PyObject * UnaryFunction0DViewShape___call__( BPy_UnaryFunction0DViewShape *self, PyObject *args);
|
||||||
|
|
||||||
|
/*----------------------UnaryFunction0DViewShape instance definitions ----------------------------*/
|
||||||
|
static PyMethodDef BPy_UnaryFunction0DViewShape_methods[] = {
|
||||||
|
{"getName", ( PyCFunction ) UnaryFunction0DViewShape_getName, METH_NOARGS, "( )Returns the string of the name of the unary 0D function."},
|
||||||
|
{"__call__", ( PyCFunction ) UnaryFunction0DViewShape___call__, METH_VARARGS, "(Interface0DIterator it )Executes the operator () on the iterator it pointing onto the point at which we wish to evaluate the function." },
|
||||||
|
{NULL, NULL, 0, NULL}
|
||||||
|
};
|
||||||
|
|
||||||
|
/*-----------------------BPy_UnaryFunction0DViewShape type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject UnaryFunction0DViewShape_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"UnaryFunction0DViewShape", /* tp_name */
|
||||||
|
sizeof( BPy_UnaryFunction0DViewShape ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
(destructor)UnaryFunction0DViewShape___dealloc__, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
(reprfunc)UnaryFunction0DViewShape___repr__, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
BPy_UnaryFunction0DViewShape_methods, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0D_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)UnaryFunction0DViewShape___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//-------------------MODULE INITIALIZATION--------------------------------
|
||||||
|
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DViewShape_Init( PyObject *module ) {
|
||||||
|
|
||||||
|
if( module == NULL )
|
||||||
|
return;
|
||||||
|
|
||||||
|
if( PyType_Ready( &UnaryFunction0DViewShape_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &UnaryFunction0DViewShape_Type );
|
||||||
|
PyModule_AddObject(module, "UnaryFunction0DViewShape", (PyObject *)&UnaryFunction0DViewShape_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &GetOccludeeF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &GetOccludeeF0D_Type );
|
||||||
|
PyModule_AddObject(module, "GetOccludeeF0D", (PyObject *)&GetOccludeeF0D_Type);
|
||||||
|
|
||||||
|
if( PyType_Ready( &GetShapeF0D_Type ) < 0 )
|
||||||
|
return;
|
||||||
|
Py_INCREF( &GetShapeF0D_Type );
|
||||||
|
PyModule_AddObject(module, "GetShapeF0D", (PyObject *)&GetShapeF0D_Type);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int UnaryFunction0DViewShape___init__(BPy_UnaryFunction0DViewShape* self)
|
||||||
|
{
|
||||||
|
self->uf0D_viewshape = new UnaryFunction0D<ViewShape*>();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UnaryFunction0DViewShape___dealloc__(BPy_UnaryFunction0DViewShape* self)
|
||||||
|
{
|
||||||
|
delete self->uf0D_viewshape;
|
||||||
|
UnaryFunction0D_Type.tp_dealloc((PyObject*)self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_UnaryFunction0DViewShape___call__(PyObject *self , PyObject *args) {
|
PyObject * UnaryFunction0DViewShape___repr__(BPy_UnaryFunction0DViewShape* self)
|
||||||
|
{
|
||||||
|
return PyString_FromFormat("type: %s - address: %p", self->uf0D_viewshape->getName().c_str(), self->uf0D_viewshape );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DViewShape_getName( BPy_UnaryFunction0DViewShape *self )
|
||||||
|
{
|
||||||
|
return PyString_FromString( self->uf0D_viewshape->getName().c_str() );
|
||||||
|
}
|
||||||
|
|
||||||
|
PyObject * UnaryFunction0DViewShape___call__( BPy_UnaryFunction0DViewShape *self, PyObject *args)
|
||||||
|
{
|
||||||
|
PyObject *obj;
|
||||||
|
|
||||||
|
if( !PyArg_ParseTuple(args, "O", &obj) && BPy_Interface0DIterator_Check(obj) ) {
|
||||||
|
cout << "ERROR: UnaryFunction0DViewShape___call__ " << endl;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
ViewShape *vs = self->uf0D_viewshape->operator()(*( ((BPy_Interface0DIterator *) obj)->if0D_it ));
|
||||||
|
return BPy_ViewShape_from_ViewShape( *vs );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_UNARYFUNCTION0DVIEWSHAPE_H
|
||||||
|
#define FREESTYLE_PYTHON_UNARYFUNCTION0DVIEWSHAPE_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0D.h"
|
||||||
|
|
||||||
|
#include "../../view_map/ViewMap.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject UnaryFunction0DViewShape_Type;
|
||||||
|
|
||||||
|
#define BPy_UnaryFunction0DViewShape_Check(v) (( (PyObject *) v)->ob_type == &UnaryFunction0DViewShape_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DViewShape structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0D py_uf0D;
|
||||||
|
UnaryFunction0D<ViewShape*> *uf0D_viewshape;
|
||||||
|
} BPy_UnaryFunction0DViewShape;
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_UnaryFunction0DViewShape visible prototypes-----------*/
|
||||||
|
PyMODINIT_FUNC UnaryFunction0DViewShape_Init( PyObject *module );
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_UNARYFUNCTION0DVIEWSHAPE_H */
|
||||||
@@ -1,16 +1,111 @@
|
|||||||
PyObject *_wrap_ShapeIdF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_ShapeIdF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for ShapeIdF0D instance -----------*/
|
||||||
|
static int ShapeIdF0D___init__(BPy_ShapeIdF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_ShapeIdF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject ShapeIdF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"ShapeIdF0D", /* tp_name */
|
||||||
|
sizeof( BPy_ShapeIdF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DId_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)ShapeIdF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int ShapeIdF0D___init__( BPy_ShapeIdF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_id.uf0D_id = new Functions0D::ShapeIdF0D();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_ShapeIdF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_new_ShapeIdF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_ShapeIdF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_SHAPEIDF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_SHAPEIDF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DId.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject ShapeIdF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_ShapeIdF0D_Check(v) (( (PyObject *) v)->ob_type == &ShapeIdF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_ShapeIdF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DId py_uf0D_id;
|
||||||
|
} BPy_ShapeIdF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_SHAPEIDF0D_H */
|
||||||
@@ -1,16 +1,111 @@
|
|||||||
PyObject *_wrap_MaterialF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_MaterialF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for MaterialF0D instance -----------*/
|
||||||
|
static int MaterialF0D___init__(BPy_MaterialF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_MaterialF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject MaterialF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"MaterialF0D", /* tp_name */
|
||||||
|
sizeof( BPy_MaterialF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DMaterial_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)MaterialF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int MaterialF0D___init__( BPy_MaterialF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_material.uf0D_material = new Functions0D::MaterialF0D();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_MaterialF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_new_MaterialF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_MaterialF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_MATERIALF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_MATERIALF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DMaterial.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject MaterialF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_MaterialF0D_Check(v) (( (PyObject *) v)->ob_type == &MaterialF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_MaterialF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DMaterial py_uf0D_material;
|
||||||
|
} BPy_MaterialF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_MATERIALF0D_H */
|
||||||
@@ -1,16 +1,111 @@
|
|||||||
PyObject *_wrap_CurveNatureF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_CurveNatureF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for CurveNatureF0D instance -----------*/
|
||||||
|
static int CurveNatureF0D___init__(BPy_CurveNatureF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_CurveNatureF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject CurveNatureF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"CurveNatureF0D", /* tp_name */
|
||||||
|
sizeof( BPy_CurveNatureF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DEdgeNature_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)CurveNatureF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int CurveNatureF0D___init__( BPy_CurveNatureF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_edgenature.uf0D_edgenature = new Functions0D::CurveNatureF0D();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_CurveNatureF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_new_CurveNatureF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_CurveNatureF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_CURVENATUREF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_CURVENATUREF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DEdgeNature.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject CurveNatureF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_CurveNatureF0D_Check(v) (( (PyObject *) v)->ob_type == &CurveNatureF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_CurveNatureF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DEdgeNature py_uf0D_edgenature;
|
||||||
|
} BPy_CurveNatureF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_CURVENATUREF0D_H */
|
||||||
@@ -1,16 +1,111 @@
|
|||||||
PyObject *_wrap_Normal2DF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_Normal2DF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for Normal2DF0D instance -----------*/
|
||||||
|
static int Normal2DF0D___init__(BPy_Normal2DF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_Normal2DF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject Normal2DF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"Normal2DF0D", /* tp_name */
|
||||||
|
sizeof( BPy_Normal2DF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DVec2f_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)Normal2DF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int Normal2DF0D___init__( BPy_Normal2DF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_vec2f.uf0D_vec2f = new Functions0D::Normal2DF0D();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_Normal2DF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_new_Normal2DF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_Normal2DF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_NORMAL2DF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_NORMAL2DF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DVec2f.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject Normal2DF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_Normal2DF0D_Check(v) (( (PyObject *) v)->ob_type == &Normal2DF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_Normal2DF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DVec2f py_uf0D_vec2f;
|
||||||
|
} BPy_Normal2DF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_NORMAL2DF0D_H */
|
||||||
@@ -1,16 +1,111 @@
|
|||||||
PyObject *_wrap_VertexOrientation2DF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_VertexOrientation2DF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for VertexOrientation2DF0D instance -----------*/
|
||||||
|
static int VertexOrientation2DF0D___init__(BPy_VertexOrientation2DF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_VertexOrientation2DF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject VertexOrientation2DF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"VertexOrientation2DF0D", /* tp_name */
|
||||||
|
sizeof( BPy_VertexOrientation2DF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DVec2f_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)VertexOrientation2DF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int VertexOrientation2DF0D___init__( BPy_VertexOrientation2DF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_vec2f.uf0D_vec2f = new Functions0D::VertexOrientation2DF0D();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_VertexOrientation2DF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_new_VertexOrientation2DF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_VertexOrientation2DF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_VERTEXORIENTATION2DF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_VERTEXORIENTATION2DF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DVec2f.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject VertexOrientation2DF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_VertexOrientation2DF0D_Check(v) (( (PyObject *) v)->ob_type == &VertexOrientation2DF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_VertexOrientation2DF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DVec2f py_uf0D_vec2f;
|
||||||
|
} BPy_VertexOrientation2DF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_VERTEXORIENTATION2DF0D_H */
|
||||||
@@ -1,16 +1,111 @@
|
|||||||
PyObject *_wrap_VertexOrientation3DF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_VertexOrientation3DF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for VertexOrientation3DF0D instance -----------*/
|
||||||
|
static int VertexOrientation3DF0D___init__(BPy_VertexOrientation3DF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_VertexOrientation3DF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject VertexOrientation3DF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"VertexOrientation3DF0D", /* tp_name */
|
||||||
|
sizeof( BPy_VertexOrientation3DF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DVec3f_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)VertexOrientation3DF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int VertexOrientation3DF0D___init__( BPy_VertexOrientation3DF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_vec3f.uf0D_vec3f = new Functions0D::VertexOrientation3DF0D();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_VertexOrientation3DF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_new_VertexOrientation3DF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_VertexOrientation3DF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_VERTEXORIENTATION3DF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_VERTEXORIENTATION3DF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DVec3f.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject VertexOrientation3DF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_VertexOrientation3DF0D_Check(v) (( (PyObject *) v)->ob_type == &VertexOrientation3DF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_VertexOrientation3DF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DVec3f py_uf0D_vec3f;
|
||||||
|
} BPy_VertexOrientation3DF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_VERTEXORIENTATION3DF0D_H */
|
||||||
@@ -1,16 +1,111 @@
|
|||||||
PyObject *_wrap_GetOccludeeF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_GetOccludeeF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for GetOccludeeF0D instance -----------*/
|
||||||
|
static int GetOccludeeF0D___init__(BPy_GetOccludeeF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_GetOccludeeF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject GetOccludeeF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"GetOccludeeF0D", /* tp_name */
|
||||||
|
sizeof( BPy_GetOccludeeF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DViewShape_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)GetOccludeeF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int GetOccludeeF0D___init__( BPy_GetOccludeeF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_viewshape.uf0D_viewshape = new Functions0D::GetOccludeeF0D();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_GetOccludeeF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_new_GetOccludeeF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_GetOccludeeF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_GETOCCLUDEEF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_GETOCCLUDEEF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DViewShape.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject GetOccludeeF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_GetOccludeeF0D_Check(v) (( (PyObject *) v)->ob_type == &GetOccludeeF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_GetOccludeeF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DViewShape py_uf0D_viewshape;
|
||||||
|
} BPy_GetOccludeeF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_GETOCCLUDEEF0D_H */
|
||||||
@@ -1,16 +1,111 @@
|
|||||||
PyObject *_wrap_GetShapeF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_GetShapeF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for GetShapeF0D instance -----------*/
|
||||||
|
static int GetShapeF0D___init__(BPy_GetShapeF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_GetShapeF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject GetShapeF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"GetShapeF0D", /* tp_name */
|
||||||
|
sizeof( BPy_GetShapeF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DViewShape_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)GetShapeF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int GetShapeF0D___init__( BPy_GetShapeF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_viewshape.uf0D_viewshape = new Functions0D::GetShapeF0D();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_GetShapeF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_new_GetShapeF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_GetShapeF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_GETSHAPEF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_GETSHAPEF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DViewShape.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject GetShapeF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_GetShapeF0D_Check(v) (( (PyObject *) v)->ob_type == &GetShapeF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_GetShapeF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DViewShape py_uf0D_viewshape;
|
||||||
|
} BPy_GetShapeF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_GETSHAPEF0D_H */
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
#include "BPy_Curvature2DAngleF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for Curvature2DAngleF0D instance -----------*/
|
||||||
|
static int Curvature2DAngleF0D___init__(BPy_Curvature2DAngleF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_Curvature2DAngleF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject Curvature2DAngleF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"Curvature2DAngleF0D", /* tp_name */
|
||||||
|
sizeof( BPy_Curvature2DAngleF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DDouble_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)Curvature2DAngleF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int Curvature2DAngleF0D___init__( BPy_Curvature2DAngleF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_double.uf0D_double = new Functions0D::Curvature2DAngleF0D();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_CURVATURE2DANGLEF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_CURVATURE2DANGLEF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DDouble.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject Curvature2DAngleF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_Curvature2DAngleF0D_Check(v) (( (PyObject *) v)->ob_type == &Curvature2DAngleF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_Curvature2DAngleF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DDouble py_uf0D_double;
|
||||||
|
} BPy_Curvature2DAngleF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_CURVATURE2DANGLEF0D_H */
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
#include "BPy_GetProjectedXF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for GetProjectedXF0D instance -----------*/
|
||||||
|
static int GetProjectedXF0D___init__(BPy_GetProjectedXF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_GetProjectedXF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject GetProjectedXF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"GetProjectedXF0D", /* tp_name */
|
||||||
|
sizeof( BPy_GetProjectedXF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DDouble_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)GetProjectedXF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int GetProjectedXF0D___init__( BPy_GetProjectedXF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_double.uf0D_double = new Functions0D::GetProjectedXF0D();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_GETPROJECTEDXF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_GETPROJECTEDXF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DDouble.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject GetProjectedXF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_GetProjectedXF0D_Check(v) (( (PyObject *) v)->ob_type == &GetProjectedXF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_GetProjectedXF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DDouble py_uf0D_double;
|
||||||
|
} BPy_GetProjectedXF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_GETPROJECTEDXF0D_H */
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
#include "BPy_GetProjectedYF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for GetProjectedYF0D instance -----------*/
|
||||||
|
static int GetProjectedYF0D___init__(BPy_GetProjectedYF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_GetProjectedYF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject GetProjectedYF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"GetProjectedYF0D", /* tp_name */
|
||||||
|
sizeof( BPy_GetProjectedYF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DDouble_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)GetProjectedYF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int GetProjectedYF0D___init__( BPy_GetProjectedYF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_double.uf0D_double = new Functions0D::GetProjectedYF0D();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_GETPROJECTEDYF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_GETPROJECTEDYF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DDouble.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject GetProjectedYF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_GetProjectedYF0D_Check(v) (( (PyObject *) v)->ob_type == &GetProjectedYF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_GetProjectedYF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DDouble py_uf0D_double;
|
||||||
|
} BPy_GetProjectedYF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_GETPROJECTEDYF0D_H */
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
#include "BPy_GetProjectedZF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for GetProjectedZF0D instance -----------*/
|
||||||
|
static int GetProjectedZF0D___init__(BPy_GetProjectedZF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_GetProjectedZF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject GetProjectedZF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"GetProjectedZF0D", /* tp_name */
|
||||||
|
sizeof( BPy_GetProjectedZF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DDouble_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)GetProjectedZF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int GetProjectedZF0D___init__( BPy_GetProjectedZF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_double.uf0D_double = new Functions0D::GetProjectedZF0D();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_GETPROJECTEDZF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_GETPROJECTEDZF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DDouble.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject GetProjectedZF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_GetProjectedZF0D_Check(v) (( (PyObject *) v)->ob_type == &GetProjectedZF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_GetProjectedZF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DDouble py_uf0D_double;
|
||||||
|
} BPy_GetProjectedZF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_GETPROJECTEDZF0D_H */
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
#include "BPy_GetXF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for GetXF0D instance -----------*/
|
||||||
|
static int GetXF0D___init__(BPy_GetXF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_GetXF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject GetXF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"GetXF0D", /* tp_name */
|
||||||
|
sizeof( BPy_GetXF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DDouble_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)GetXF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int GetXF0D___init__( BPy_GetXF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_double.uf0D_double = new Functions0D::GetXF0D();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_GETXF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_GETXF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DDouble.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject GetXF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_GetXF0D_Check(v) (( (PyObject *) v)->ob_type == &GetXF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_GetXF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DDouble py_uf0D_double;
|
||||||
|
} BPy_GetXF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_GETXF0D_H */
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
#include "BPy_GetYF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for GetYF0D instance -----------*/
|
||||||
|
static int GetYF0D___init__(BPy_GetYF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_GetYF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject GetYF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"GetYF0D", /* tp_name */
|
||||||
|
sizeof( BPy_GetYF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DDouble_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)GetYF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int GetYF0D___init__( BPy_GetYF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_double.uf0D_double = new Functions0D::GetYF0D();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_GETYF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_GETYF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DDouble.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject GetYF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_GetYF0D_Check(v) (( (PyObject *) v)->ob_type == &GetYF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_GetYF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DDouble py_uf0D_double;
|
||||||
|
} BPy_GetYF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_GETYF0D_H */
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
#include "BPy_GetZF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for GetZF0D instance -----------*/
|
||||||
|
static int GetZF0D___init__(BPy_GetZF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_GetZF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject GetZF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"GetZF0D", /* tp_name */
|
||||||
|
sizeof( BPy_GetZF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DDouble_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)GetZF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int GetZF0D___init__( BPy_GetZF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_double.uf0D_double = new Functions0D::GetZF0D();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_GETZF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_GETZF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DDouble.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject GetZF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_GetZF0D_Check(v) (( (PyObject *) v)->ob_type == &GetZF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_GetZF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DDouble py_uf0D_double;
|
||||||
|
} BPy_GetZF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_GETZF0D_H */
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
#include "BPy_ZDiscontinuityF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for ZDiscontinuityF0D instance -----------*/
|
||||||
|
static int ZDiscontinuityF0D___init__(BPy_ZDiscontinuityF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_ZDiscontinuityF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject ZDiscontinuityF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"ZDiscontinuityF0D", /* tp_name */
|
||||||
|
sizeof( BPy_ZDiscontinuityF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DDouble_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)ZDiscontinuityF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int ZDiscontinuityF0D___init__( BPy_ZDiscontinuityF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_double.uf0D_double = new Functions0D::ZDiscontinuityF0D();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_ZDISCONTINUITYF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_ZDISCONTINUITYF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DDouble.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject ZDiscontinuityF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_ZDiscontinuityF0D_Check(v) (( (PyObject *) v)->ob_type == &ZDiscontinuityF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_ZDiscontinuityF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DDouble py_uf0D_double;
|
||||||
|
} BPy_ZDiscontinuityF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_ZDISCONTINUITYF0D_H */
|
||||||
@@ -1,16 +1,111 @@
|
|||||||
PyObject *_wrap_GetCurvilinearAbscissaF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_GetCurvilinearAbscissaF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for GetCurvilinearAbscissaF0D instance -----------*/
|
||||||
|
static int GetCurvilinearAbscissaF0D___init__(BPy_GetCurvilinearAbscissaF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_GetCurvilinearAbscissaF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject GetCurvilinearAbscissaF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"GetCurvilinearAbscissaF0D", /* tp_name */
|
||||||
|
sizeof( BPy_GetCurvilinearAbscissaF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DFloat_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)GetCurvilinearAbscissaF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int GetCurvilinearAbscissaF0D___init__( BPy_GetCurvilinearAbscissaF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_float.uf0D_float = new Functions0D::GetCurvilinearAbscissaF0D();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_GetCurvilinearAbscissaF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_new_GetCurvilinearAbscissaF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_GetCurvilinearAbscissaF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_GETCURVILINEARABSCISSAF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_GETCURVILINEARABSCISSAF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DFloat.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject GetCurvilinearAbscissaF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_GetCurvilinearAbscissaF0D_Check(v) (( (PyObject *) v)->ob_type == &GetCurvilinearAbscissaF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_GetCurvilinearAbscissaF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DFloat py_uf0D_float;
|
||||||
|
} BPy_GetCurvilinearAbscissaF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_GETCURVILINEARABSCISSAF0D_H */
|
||||||
@@ -1,16 +1,111 @@
|
|||||||
PyObject *_wrap_GetParameterF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_GetParameterF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for GetParameterF0D instance -----------*/
|
||||||
|
static int GetParameterF0D___init__(BPy_GetParameterF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_GetParameterF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject GetParameterF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"GetParameterF0D", /* tp_name */
|
||||||
|
sizeof( BPy_GetParameterF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DFloat_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)GetParameterF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int GetParameterF0D___init__( BPy_GetParameterF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_float.uf0D_float = new Functions0D::GetParameterF0D();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_GetParameterF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_new_GetParameterF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_GetParameterF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_GETPARAMETERF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_GETPARAMETERF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DFloat.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject GetParameterF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_GetParameterF0D_Check(v) (( (PyObject *) v)->ob_type == &GetParameterF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_GetParameterF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DFloat py_uf0D_float;
|
||||||
|
} BPy_GetParameterF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_GETPARAMETERF0D_H */
|
||||||
@@ -1,12 +1,118 @@
|
|||||||
PyObject *_wrap_GetViewMapGradientNormF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_GetViewMapGradientNormF0D.h"
|
||||||
|
|
||||||
|
#include "../../../stroke/AdvancedFunctions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for GetViewMapGradientNormF0D instance -----------*/
|
||||||
|
static int GetViewMapGradientNormF0D___init__(BPy_GetViewMapGradientNormF0D* self, PyObject *args);
|
||||||
|
|
||||||
|
/*-----------------------BPy_GetViewMapGradientNormF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject GetViewMapGradientNormF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"GetViewMapGradientNormF0D", /* tp_name */
|
||||||
|
sizeof( BPy_GetViewMapGradientNormF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DFloat_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)GetViewMapGradientNormF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int GetViewMapGradientNormF0D___init__( BPy_GetViewMapGradientNormF0D* self, PyObject *args)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
if( !PyArg_ParseTuple(args, "i", &i) ) {
|
||||||
|
cout << "ERROR: GetViewMapGradientNormF0D___init__" << endl;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
self->py_uf0D_float.uf0D_float = new Functions0D::GetViewMapGradientNormF0D(i);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_GetViewMapGradientNormF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_delete_GetViewMapGradientNormF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_GETVIEWMAPGRADIENTNORMF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_GETVIEWMAPGRADIENTNORMF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DFloat.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject GetViewMapGradientNormF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_GetViewMapGradientNormF0D_Check(v) (( (PyObject *) v)->ob_type == &GetViewMapGradientNormF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_GetViewMapGradientNormF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DFloat py_uf0D_float;
|
||||||
|
} BPy_GetViewMapGradientNormF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_GETVIEWMAPGRADIENTNORMF0D_H */
|
||||||
@@ -1,12 +1,118 @@
|
|||||||
PyObject *_wrap_ReadCompleteViewMapPixelF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_ReadCompleteViewMapPixelF0D.h"
|
||||||
|
|
||||||
|
#include "../../../stroke/AdvancedFunctions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for ReadCompleteViewMapPixelF0D instance -----------*/
|
||||||
|
static int ReadCompleteViewMapPixelF0D___init__(BPy_ReadCompleteViewMapPixelF0D* self, PyObject *args);
|
||||||
|
|
||||||
|
/*-----------------------BPy_ReadCompleteViewMapPixelF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject ReadCompleteViewMapPixelF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"ReadCompleteViewMapPixelF0D", /* tp_name */
|
||||||
|
sizeof( BPy_ReadCompleteViewMapPixelF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DFloat_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)ReadCompleteViewMapPixelF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int ReadCompleteViewMapPixelF0D___init__( BPy_ReadCompleteViewMapPixelF0D* self, PyObject *args)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
if( !PyArg_ParseTuple(args, "i", &i) ) {
|
||||||
|
cout << "ERROR: ReadCompleteViewMapPixelF0D___init__" << endl;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
self->py_uf0D_float.uf0D_float = new Functions0D::ReadCompleteViewMapPixelF0D(i);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_ReadCompleteViewMapPixelF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_delete_ReadCompleteViewMapPixelF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_READCOMPLETEVIEWMAPPIXELF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_READCOMPLETEVIEWMAPPIXELF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DFloat.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject ReadCompleteViewMapPixelF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_ReadCompleteViewMapPixelF0D_Check(v) (( (PyObject *) v)->ob_type == &ReadCompleteViewMapPixelF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_ReadCompleteViewMapPixelF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DFloat py_uf0D_float;
|
||||||
|
} BPy_ReadCompleteViewMapPixelF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_READCOMPLETEVIEWMAPPIXELF0D_H */
|
||||||
@@ -1,12 +1,119 @@
|
|||||||
PyObject *_wrap_ReadMapPixelF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_ReadMapPixelF0D.h"
|
||||||
|
|
||||||
|
#include "../../../stroke/AdvancedFunctions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for ReadMapPixelF0D instance -----------*/
|
||||||
|
static int ReadMapPixelF0D___init__(BPy_ReadMapPixelF0D* self, PyObject *args);
|
||||||
|
|
||||||
|
/*-----------------------BPy_ReadMapPixelF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject ReadMapPixelF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"ReadMapPixelF0D", /* tp_name */
|
||||||
|
sizeof( BPy_ReadMapPixelF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DFloat_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)ReadMapPixelF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int ReadMapPixelF0D___init__( BPy_ReadMapPixelF0D* self, PyObject *args)
|
||||||
|
{
|
||||||
|
const char *s;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
if( !PyArg_ParseTuple(args, "si", &s, &i) ) {
|
||||||
|
cout << "ERROR: ReadMapPixelF0D___init__" << endl;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
self->py_uf0D_float.uf0D_float = new Functions0D::ReadMapPixelF0D(s,i);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_ReadMapPixelF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_delete_ReadMapPixelF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_READMAPPIXELF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_READMAPPIXELF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DFloat.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject ReadMapPixelF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_ReadMapPixelF0D_Check(v) (( (PyObject *) v)->ob_type == &ReadMapPixelF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_ReadMapPixelF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DFloat py_uf0D_float;
|
||||||
|
} BPy_ReadMapPixelF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_READMAPPIXELF0D_H */
|
||||||
@@ -1,12 +1,119 @@
|
|||||||
PyObject *_wrap_ReadSteerableViewMapPixelF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_ReadSteerableViewMapPixelF0D.h"
|
||||||
|
|
||||||
|
#include "../../../stroke/AdvancedFunctions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for ReadSteerableViewMapPixelF0D instance -----------*/
|
||||||
|
static int ReadSteerableViewMapPixelF0D___init__(BPy_ReadSteerableViewMapPixelF0D* self, PyObject *args);
|
||||||
|
|
||||||
|
/*-----------------------BPy_ReadSteerableViewMapPixelF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject ReadSteerableViewMapPixelF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"ReadSteerableViewMapPixelF0D", /* tp_name */
|
||||||
|
sizeof( BPy_ReadSteerableViewMapPixelF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DFloat_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)ReadSteerableViewMapPixelF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int ReadSteerableViewMapPixelF0D___init__( BPy_ReadSteerableViewMapPixelF0D* self, PyObject *args)
|
||||||
|
{
|
||||||
|
unsigned int u;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
if( !PyArg_ParseTuple(args, "Ii", &u, &i) ) {
|
||||||
|
cout << "ERROR: ReadSteerableViewMapPixelF0D___init__" << endl;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
self->py_uf0D_float.uf0D_float = new Functions0D::ReadSteerableViewMapPixelF0D(u,i);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_ReadSteerableViewMapPixelF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_delete_ReadSteerableViewMapPixelF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_READSTEERABLEVIEWMAPPIXELF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_READSTEERABLEVIEWMAPPIXELF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DFloat.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject ReadSteerableViewMapPixelF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_ReadSteerableViewMapPixelF0D_Check(v) (( (PyObject *) v)->ob_type == &ReadSteerableViewMapPixelF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_ReadSteerableViewMapPixelF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DFloat py_uf0D_float;
|
||||||
|
} BPy_ReadSteerableViewMapPixelF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_READSTEERABLEVIEWMAPPIXELF0D_H */
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
PyObject *_wrap_Curvature2DAngleF0D_getName(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_Curvature2DAngleF0D___call__(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_new_Curvature2DAngleF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_Curvature2DAngleF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
PyObject *_wrap_GetProjectedXF0D_getName(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_GetProjectedXF0D___call__(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_new_GetProjectedXF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_GetProjectedXF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
PyObject *_wrap_GetProjectedYF0D_getName(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_GetProjectedYF0D___call__(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_new_GetProjectedYF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_GetProjectedYF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
PyObject *_wrap_GetProjectedZF0D_getName(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_GetProjectedZF0D___call__(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_new_GetProjectedZF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_GetProjectedZF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
PyObject *_wrap_GetXF0D_getName(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_GetXF0D___call__(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_new_GetXF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_GetXF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
PyObject *_wrap_GetYF0D_getName(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_GetYF0D___call__(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_new_GetYF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_GetYF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
PyObject *_wrap_GetZF0D_getName(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_GetZF0D___call__(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_new_GetZF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_GetZF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
PyObject *_wrap_ZDiscontinuityF0D_getName(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_ZDiscontinuityF0D___call__(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_new_ZDiscontinuityF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_ZDiscontinuityF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,16 +1,111 @@
|
|||||||
PyObject *_wrap_QuantitativeInvisibilityF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_QuantitativeInvisibilityF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for QuantitativeInvisibilityF0D instance -----------*/
|
||||||
|
static int QuantitativeInvisibilityF0D___init__(BPy_QuantitativeInvisibilityF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_QuantitativeInvisibilityF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject QuantitativeInvisibilityF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"QuantitativeInvisibilityF0D", /* tp_name */
|
||||||
|
sizeof( BPy_QuantitativeInvisibilityF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DUnsigned_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)QuantitativeInvisibilityF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int QuantitativeInvisibilityF0D___init__( BPy_QuantitativeInvisibilityF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_unsigned.uf0D_unsigned = new Functions0D::QuantitativeInvisibilityF0D();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_QuantitativeInvisibilityF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_new_QuantitativeInvisibilityF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_QuantitativeInvisibilityF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_QUANTITATIVEINVISIBILITYF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_QUANTITATIVEINVISIBILITYF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DUnsigned.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject QuantitativeInvisibilityF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_QuantitativeInvisibilityF0D_Check(v) (( (PyObject *) v)->ob_type == &QuantitativeInvisibilityF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_QuantitativeInvisibilityF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DUnsigned py_uf0D_unsigned;
|
||||||
|
} BPy_QuantitativeInvisibilityF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_QUANTITATIVEINVISIBILITYF0D_H */
|
||||||
@@ -1,16 +1,111 @@
|
|||||||
PyObject *_wrap_GetOccludersF0D_getName(PyObject *self , PyObject *args) {
|
#include "BPy_GetOccludersF0D.h"
|
||||||
|
|
||||||
|
#include "../../../view_map/Functions0D.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*--------------- Python API function prototypes for GetOccludersF0D instance -----------*/
|
||||||
|
static int GetOccludersF0D___init__(BPy_GetOccludersF0D* self);
|
||||||
|
|
||||||
|
/*-----------------------BPy_GetOccludersF0D type definition ------------------------------*/
|
||||||
|
|
||||||
|
PyTypeObject GetOccludersF0D_Type = {
|
||||||
|
PyObject_HEAD_INIT( NULL )
|
||||||
|
0, /* ob_size */
|
||||||
|
"GetOccludersF0D", /* tp_name */
|
||||||
|
sizeof( BPy_GetOccludersF0D ), /* tp_basicsize */
|
||||||
|
0, /* tp_itemsize */
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
NULL, /* tp_dealloc */
|
||||||
|
NULL, /* printfunc tp_print; */
|
||||||
|
NULL, /* getattrfunc tp_getattr; */
|
||||||
|
NULL, /* setattrfunc tp_setattr; */
|
||||||
|
NULL, /* tp_compare */
|
||||||
|
NULL, /* tp_repr */
|
||||||
|
|
||||||
|
/* Method suites for standard classes */
|
||||||
|
|
||||||
|
NULL, /* PyNumberMethods *tp_as_number; */
|
||||||
|
NULL, /* PySequenceMethods *tp_as_sequence; */
|
||||||
|
NULL, /* PyMappingMethods *tp_as_mapping; */
|
||||||
|
|
||||||
|
/* More standard operations (here for binary compatibility) */
|
||||||
|
|
||||||
|
NULL, /* hashfunc tp_hash; */
|
||||||
|
NULL, /* ternaryfunc tp_call; */
|
||||||
|
NULL, /* reprfunc tp_str; */
|
||||||
|
NULL, /* getattrofunc tp_getattro; */
|
||||||
|
NULL, /* setattrofunc tp_setattro; */
|
||||||
|
|
||||||
|
/* Functions to access object as input/output buffer */
|
||||||
|
NULL, /* PyBufferProcs *tp_as_buffer; */
|
||||||
|
|
||||||
|
/*** Flags to define presence of optional/expanded features ***/
|
||||||
|
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* long tp_flags; */
|
||||||
|
|
||||||
|
NULL, /* char *tp_doc; Documentation string */
|
||||||
|
/*** Assigned meaning in release 2.0 ***/
|
||||||
|
/* call function for all accessible objects */
|
||||||
|
NULL, /* traverseproc tp_traverse; */
|
||||||
|
|
||||||
|
/* delete references to contained objects */
|
||||||
|
NULL, /* inquiry tp_clear; */
|
||||||
|
|
||||||
|
/*** Assigned meaning in release 2.1 ***/
|
||||||
|
/*** rich comparisons ***/
|
||||||
|
NULL, /* richcmpfunc tp_richcompare; */
|
||||||
|
|
||||||
|
/*** weak reference enabler ***/
|
||||||
|
0, /* long tp_weaklistoffset; */
|
||||||
|
|
||||||
|
/*** Added in release 2.2 ***/
|
||||||
|
/* Iterators */
|
||||||
|
NULL, /* getiterfunc tp_iter; */
|
||||||
|
NULL, /* iternextfunc tp_iternext; */
|
||||||
|
|
||||||
|
/*** Attribute descriptor and subclassing stuff ***/
|
||||||
|
NULL, /* struct PyMethodDef *tp_methods; */
|
||||||
|
NULL, /* struct PyMemberDef *tp_members; */
|
||||||
|
NULL, /* struct PyGetSetDef *tp_getset; */
|
||||||
|
&UnaryFunction0DVectorViewShape_Type, /* struct _typeobject *tp_base; */
|
||||||
|
NULL, /* PyObject *tp_dict; */
|
||||||
|
NULL, /* descrgetfunc tp_descr_get; */
|
||||||
|
NULL, /* descrsetfunc tp_descr_set; */
|
||||||
|
0, /* long tp_dictoffset; */
|
||||||
|
(initproc)GetOccludersF0D___init__, /* initproc tp_init; */
|
||||||
|
NULL, /* allocfunc tp_alloc; */
|
||||||
|
NULL, /* newfunc tp_new; */
|
||||||
|
|
||||||
|
/* Low-level free-memory routine */
|
||||||
|
NULL, /* freefunc tp_free; */
|
||||||
|
|
||||||
|
/* For PyObject_IS_GC */
|
||||||
|
NULL, /* inquiry tp_is_gc; */
|
||||||
|
NULL, /* PyObject *tp_bases; */
|
||||||
|
|
||||||
|
/* method resolution order */
|
||||||
|
NULL, /* PyObject *tp_mro; */
|
||||||
|
NULL, /* PyObject *tp_cache; */
|
||||||
|
NULL, /* PyObject *tp_subclasses; */
|
||||||
|
NULL, /* PyObject *tp_weaklist; */
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
//------------------------INSTANCE METHODS ----------------------------------
|
||||||
|
|
||||||
|
int GetOccludersF0D___init__( BPy_GetOccludersF0D* self )
|
||||||
|
{
|
||||||
|
self->py_uf0D_vectorviewshape.uf0D_vectorviewshape = new Functions0D::GetOccludersF0D();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
PyObject *_wrap_GetOccludersF0D___call__(PyObject *self , PyObject *args) {
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PyObject *_wrap_new_GetOccludersF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PyObject *_wrap_delete_GetOccludersF0D(PyObject *self , PyObject *args) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#ifndef FREESTYLE_PYTHON_GETOCCLUDERSF0D_H
|
||||||
|
#define FREESTYLE_PYTHON_GETOCCLUDERSF0D_H
|
||||||
|
|
||||||
|
#include "../BPy_UnaryFunction0DVectorViewShape.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <Python.h>
|
||||||
|
|
||||||
|
extern PyTypeObject GetOccludersF0D_Type;
|
||||||
|
|
||||||
|
#define BPy_GetOccludersF0D_Check(v) (( (PyObject *) v)->ob_type == &GetOccludersF0D_Type)
|
||||||
|
|
||||||
|
/*---------------------------Python BPy_GetOccludersF0D structure definition----------*/
|
||||||
|
typedef struct {
|
||||||
|
BPy_UnaryFunction0DVectorViewShape py_uf0D_vectorviewshape;
|
||||||
|
} BPy_GetOccludersF0D;
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* FREESTYLE_PYTHON_GETOCCLUDERSF0D_H */
|
||||||
Reference in New Issue
Block a user