1 | /* |
---|
2 | SANSAnalysis.h -- definitions general to all code. |
---|
3 | */ |
---|
4 | |
---|
5 | |
---|
6 | /* Prototypes */ |
---|
7 | HOST_IMPORT void main(IORecHandle ioRecHandle); |
---|
8 | |
---|
9 | // Custom error codes |
---|
10 | #define REQUIRES_IGOR_200 1 + FIRST_XOP_ERR |
---|
11 | #define NON_EXISTENT_WAVE 2 + FIRST_XOP_ERR |
---|
12 | #define REQUIRES_SP_OR_DP_WAVE 3 + FIRST_XOP_ERR |
---|
13 | |
---|
14 | |
---|
15 | #include "XOPStructureAlignmentTwoByte.h" |
---|
16 | |
---|
17 | // Fit function parameter structure |
---|
18 | typedef struct FitParams { |
---|
19 | double x; // Independent variable. |
---|
20 | waveHndl waveHandle; // Coefficient wave. |
---|
21 | void* tp; //unused void for ThreadSafe functions |
---|
22 | double result; |
---|
23 | }FitParams, *FitParamsPtr; |
---|
24 | |
---|
25 | // Fit function parameter structure |
---|
26 | typedef struct FitParams2D { |
---|
27 | double qy; // Independent variable. |
---|
28 | double qx; // Independent variable. |
---|
29 | waveHndl waveHandle; // Coefficient wave. |
---|
30 | void* tp; //unused void for ThreadSafe functions |
---|
31 | double result; |
---|
32 | }FitParams2D, *FitParams2DPtr; |
---|
33 | |
---|
34 | // for 2D functions with arbitrary weights in phi and theta |
---|
35 | typedef struct FitParams2DWeight { |
---|
36 | double qy; // Independent variable. |
---|
37 | double qx; // Independent variable. |
---|
38 | waveHndl weight_values; |
---|
39 | waveHndl par_values; |
---|
40 | waveHndl waveHandle; // Coefficient wave. |
---|
41 | void* tp; //unused void for ThreadSafe functions |
---|
42 | double result; |
---|
43 | }FitParams2DWeight, *FitParams2DWeightPtr; |
---|
44 | |
---|
45 | #include "XOPStructureAlignmentReset.h" |
---|