source: sasview/src/sas/sascalc/simulation/pointsmodelpy/pointsmodelpymodule/bindings.cc @ e42c8e9d

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since e42c8e9d was d85c194, checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago

Remaining modules refactored

  • Property mode set to 100644
File size: 6.2 KB
Line 
1// -*- C++ -*-
2// @copyright: University of Tennessee, for the DANSE project
3
4//#include <portinfo>
5#include <Python.h>
6
7#include "bindings.h"
8
9#include "misc.h"          // miscellaneous methods
10
11// the method table
12
13struct PyMethodDef pypointsmodelpy_methods[] = {
14
15    // new_loresmodel
16    {pypointsmodelpy_new_loresmodel__name__, pypointsmodelpy_new_loresmodel,
17     METH_VARARGS, pypointsmodelpy_new_loresmodel__doc__},
18
19    // LORESModel method:add(geoshape,sld)
20    {pypointsmodelpy_lores_add__name__, pypointsmodelpy_lores_add,
21     METH_VARARGS, pypointsmodelpy_lores_add__doc__},
22
23    // LORESModel method:GetPoints(vector<Point3D> &)
24    {pypointsmodelpy_get_lorespoints__name__, pypointsmodelpy_get_lorespoints,
25     METH_VARARGS, pypointsmodelpy_get_lorespoints__doc__},
26
27    // new_pdbmodel
28    {pypointsmodelpy_new_pdbmodel__name__, pypointsmodelpy_new_pdbmodel,
29     METH_VARARGS, pypointsmodelpy_new_pdbmodel__doc__},
30
31    // PDBModel method: AddPDB(const char*)
32    {pypointsmodelpy_pdbmodel_add__name__, pypointsmodelpy_pdbmodel_add,
33     METH_VARARGS, pypointsmodelpy_pdbmodel_add__doc__},
34
35    // PDBModel method: GetPoints(Point3DVector &)
36    {pypointsmodelpy_get_pdbpoints__name__, pypointsmodelpy_get_pdbpoints,
37     METH_VARARGS, pypointsmodelpy_get_pdbpoints__doc__},
38
39    // new_complexmodel
40    {pypointsmodelpy_new_complexmodel__name__, pypointsmodelpy_new_complexmodel,
41     METH_VARARGS, pypointsmodelpy_new_complexmodel__doc__},
42
43    // ComplexModel method: Add(PointsModel *)
44    {pypointsmodelpy_complexmodel_add__name__, pypointsmodelpy_complexmodel_add,
45     METH_VARARGS, pypointsmodelpy_complexmodel_add__doc__},
46
47    // ComplexModel method: GetPoints(Point3DVector &)
48    {pypointsmodelpy_get_complexpoints__name__, pypointsmodelpy_get_complexpoints,
49     METH_VARARGS, pypointsmodelpy_get_complexpoints__doc__},
50
51    //new_point3dvec
52    {pypointsmodelpy_new_point3dvec__name__, pypointsmodelpy_new_point3dvec,
53     METH_VARARGS, pypointsmodelpy_new_point3dvec__doc__},
54
55    //fillpoints
56    //{pypointsmodelpy_fillpoints__name__, pypointsmodelpy_fillpoints,
57    //METH_VARARGS, pypointsmodelpy_fillpoints__doc__},
58
59    //distdistribution calculation for LORES model
60    {pypointsmodelpy_get_lores_pr__name__, pypointsmodelpy_get_lores_pr,
61     METH_VARARGS, pypointsmodelpy_get_lores_pr__doc__},
62
63    //distdistribution 2D (on xy plane)
64    {pypointsmodelpy_distdistribution_xy__name__, pypointsmodelpy_distdistribution_xy,
65     METH_VARARGS, pypointsmodelpy_distdistribution_xy__doc__},
66
67    //distdistribution calculation for PDB model
68    {pypointsmodelpy_get_pdb_pr__name__, pypointsmodelpy_get_pdb_pr,
69     METH_VARARGS, pypointsmodelpy_get_pdb_pr__doc__},
70
71    //distdistribution calculation on XY plane for PDB model
72    {pypointsmodelpy_get_pdb_pr_xy__name__, pypointsmodelpy_get_pdb_pr_xy,
73     METH_VARARGS, pypointsmodelpy_get_pdb_pr_xy__doc__},
74
75    //distdistribution calculation for Complex model
76    {pypointsmodelpy_get_complex_pr__name__, pypointsmodelpy_get_complex_pr,
77     METH_VARARGS, pypointsmodelpy_get_complex_pr__doc__},
78
79    //calculateIQ
80    {pypointsmodelpy_get_lores_iq__name__, pypointsmodelpy_get_lores_iq,
81     METH_VARARGS, pypointsmodelpy_get_lores_iq__doc__},
82
83    //calculateI(single Q)
84    {pypointsmodelpy_get_lores_i__name__, pypointsmodelpy_get_lores_i,
85     METH_VARARGS, pypointsmodelpy_get_lores_i__doc__},
86
87    //calculateI(single Q)
88    {pypointsmodelpy_get_complex_i__name__, pypointsmodelpy_get_complex_i,
89     METH_VARARGS, pypointsmodelpy_get_complex_i__doc__},
90
91    //calculateI(single Q)
92    {pypointsmodelpy_get_complex_i_error__name__, pypointsmodelpy_get_complex_i_error,
93     METH_VARARGS, pypointsmodelpy_get_complex_i_error__doc__},
94
95    //calculateIQ 2D
96    {pypointsmodelpy_calculateIQ_2D__name__, pypointsmodelpy_calculateIQ_2D,
97     METH_VARARGS, pypointsmodelpy_calculateIQ_2D__doc__},
98
99     //calculateIQ 2D(points, Qx,Qy)
100     {pypointsmodelpy_calculateI_Qvxy__name__, pypointsmodelpy_calculateI_Qvxy,
101      METH_VARARGS, pypointsmodelpy_calculateI_Qvxy__doc__},
102
103      //calculateIQ 2D(Qx,Qy)
104      {pypointsmodelpy_calculateI_Qxy__name__, pypointsmodelpy_calculateI_Qxy,
105       METH_VARARGS, pypointsmodelpy_calculateI_Qxy__doc__},
106
107    //PDBModel calculateIQ
108    {pypointsmodelpy_get_pdb_iq__name__, pypointsmodelpy_get_pdb_iq,
109     METH_VARARGS, pypointsmodelpy_get_pdb_iq__doc__},
110
111     //PDBModel calculateIQ(Qx,Qy)
112     {pypointsmodelpy_get_pdb_Iqxy__name__, pypointsmodelpy_get_pdb_Iqxy,
113      METH_VARARGS, pypointsmodelpy_get_pdb_Iqxy__doc__},
114
115      //PDBModel calculateIQ(pts,Qx,Qy)
116      {pypointsmodelpy_get_pdb_Iqvxy__name__, pypointsmodelpy_get_pdb_Iqvxy,
117       METH_VARARGS, pypointsmodelpy_get_pdb_Iqvxy__doc__},
118
119       //ComplexModel calculateIQ(pts,Qx,Qy)
120       {pypointsmodelpy_get_complex_Iqxy__name__, pypointsmodelpy_get_complex_Iqxy,
121        METH_VARARGS, pypointsmodelpy_get_complex_Iqxy__doc__},
122
123        //ComplexModel calculateIQ_2D_Error(pts,Qx,Qy)
124        {pypointsmodelpy_get_complex_Iqxy_err__name__, pypointsmodelpy_get_complex_Iqxy_err,
125         METH_VARARGS, pypointsmodelpy_get_complex_Iqxy_err__doc__},
126
127    //ComplexModel calculateIQ
128    {pypointsmodelpy_get_complex_iq__name__, pypointsmodelpy_get_complex_iq,
129     METH_VARARGS, pypointsmodelpy_get_complex_iq__doc__},
130
131     //outputPR
132     {pypointsmodelpy_outputPR__name__, pypointsmodelpy_outputPR,
133      METH_VARARGS, pypointsmodelpy_outputPR__doc__},
134
135    //getPR
136    {pypointsmodelpy_getPR__name__, pypointsmodelpy_getPR,
137     METH_VARARGS, pypointsmodelpy_getPR__doc__},
138
139    //outputPR_xy
140    {pypointsmodelpy_outputPR_xy__name__, pypointsmodelpy_outputPR_xy,
141     METH_VARARGS, pypointsmodelpy_outputPR_xy__doc__},
142
143    //PDBModel outputPR
144    {pypointsmodelpy_save_pdb_pr__name__, pypointsmodelpy_save_pdb_pr,
145     METH_VARARGS, pypointsmodelpy_save_pdb_pr__doc__},
146
147    //ComplexModel outputPR
148    {pypointsmodelpy_save_complex_pr__name__, pypointsmodelpy_save_complex_pr,
149     METH_VARARGS, pypointsmodelpy_save_complex_pr__doc__},
150
151    //outputPDB
152    {pypointsmodelpy_outputPDB__name__, pypointsmodelpy_outputPDB,
153     METH_VARARGS, pypointsmodelpy_outputPDB__doc__},
154
155    {pypointsmodelpy_copyright__name__, pypointsmodelpy_copyright,
156     METH_VARARGS, pypointsmodelpy_copyright__doc__},
157
158
159// Sentinel
160    {0, 0}
161};
162
163// version
164// $Id$
165
166// End of file
Note: See TracBrowser for help on using the repository browser.