[f2d6445] | 1 | // -*- C++ -*- |
---|
| 2 | // |
---|
| 3 | // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 4 | // |
---|
| 5 | // Michael A.G. Aivazis |
---|
| 6 | // California Institute of Technology |
---|
| 7 | // (C) 1998-2005 All Rights Reserved |
---|
| 8 | // |
---|
| 9 | // <LicenseText> |
---|
| 10 | // |
---|
| 11 | // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 12 | // |
---|
| 13 | |
---|
| 14 | //#include <portinfo> |
---|
| 15 | #include <Python.h> |
---|
| 16 | |
---|
| 17 | #include "bindings.h" |
---|
| 18 | |
---|
| 19 | #include "misc.h" // miscellaneous methods |
---|
| 20 | |
---|
| 21 | // the method table |
---|
| 22 | |
---|
| 23 | struct PyMethodDef pygeoshapespy_methods[] = { |
---|
| 24 | |
---|
| 25 | //geoshapes methods: set_orientation; set_center |
---|
| 26 | {pygeoshapespy_set_orientation__name__, pygeoshapespy_set_orientation, |
---|
| 27 | METH_VARARGS, pygeoshapespy_set_orientation__doc__}, |
---|
| 28 | |
---|
| 29 | {pygeoshapespy_set_center__name__, pygeoshapespy_set_center, |
---|
| 30 | METH_VARARGS, pygeoshapespy_set_center__doc__}, |
---|
| 31 | |
---|
| 32 | // new sphere |
---|
| 33 | {pyanalmodelpy_new_sphere__name__, pyanalmodelpy_new_sphere, |
---|
| 34 | METH_VARARGS, pyanalmodelpy_new_sphere__doc__}, |
---|
| 35 | |
---|
| 36 | // new cylinder |
---|
| 37 | {pyanalmodelpy_new_cylinder__name__, pyanalmodelpy_new_cylinder, |
---|
| 38 | METH_VARARGS, pyanalmodelpy_new_cylinder__doc__}, |
---|
| 39 | |
---|
| 40 | // new ellipsoid |
---|
| 41 | {pyanalmodelpy_new_ellipsoid__name__, pyanalmodelpy_new_ellipsoid, |
---|
| 42 | METH_VARARGS, pyanalmodelpy_new_ellipsoid__doc__}, |
---|
| 43 | |
---|
| 44 | // new hollowsphere |
---|
| 45 | {pyanalmodelpy_new_hollowsphere__name__, pyanalmodelpy_new_hollowsphere, |
---|
| 46 | METH_VARARGS, pyanalmodelpy_new_hollowsphere__doc__}, |
---|
| 47 | |
---|
| 48 | // new singlehelix |
---|
| 49 | {pyanalmodelpy_new_singlehelix__name__, pyanalmodelpy_new_singlehelix, |
---|
| 50 | METH_VARARGS, pyanalmodelpy_new_singlehelix__doc__}, |
---|
| 51 | |
---|
| 52 | {pygeoshapespy_copyright__name__, pygeoshapespy_copyright, |
---|
| 53 | METH_VARARGS, pygeoshapespy_copyright__doc__}, |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | // Sentinel |
---|
| 57 | {0, 0} |
---|
| 58 | }; |
---|
| 59 | |
---|
| 60 | // version |
---|
| 61 | // $Id$ |
---|
| 62 | |
---|
| 63 | // End of file |
---|