source: sans/XOP_Dev/SANSAnalysis/XOP/SANSAnalysis.h @ 834

Last change on this file since 834 was 834, checked in by srkline, 11 years ago

Changes to the XOP code to upgrade to ToolKit? v6. Changes are the ones outlined in the Appendix A of the TK6 manual. SOme of the XOP support routines and the #pragma for 2-byte structures have changed. Per Howard Rodstein, there is no need to change the c files to cpp. c should work and compile just fine.

These changes work correctly on my mac. Next is to make sure that they work correctly on the two build machines.

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1/*
2        SANSAnalysis.h -- definitions general to all code.
3*/
4
5
6/* Prototypes */
7// for TK6
8HOST_IMPORT int main(IORecHandle ioRecHandle);
9
10// Custom error codes
11//#define REQUIRES_IGOR_200 1 + FIRST_XOP_ERR
12#define NON_EXISTENT_WAVE 2 + FIRST_XOP_ERR
13#define REQUIRES_SP_OR_DP_WAVE 3 + FIRST_XOP_ERR
14
15
16#pragma pack(2)
17
18// Fit function parameter structure
19typedef struct FitParams {
20        double x;                               // Independent variable.
21        waveHndl waveHandle;    // Coefficient wave.
22        void* tp;                               //unused void for ThreadSafe functions
23        double result;
24}FitParams, *FitParamsPtr;
25
26// Fit function parameter structure
27typedef struct FitParams2D {
28        double qy;                              // Independent variable.
29        double qx;                              // Independent variable.
30        waveHndl waveHandle;    // Coefficient wave.
31        void* tp;                               //unused void for ThreadSafe functions
32        double result;
33}FitParams2D, *FitParams2DPtr;
34
35// for 2D functions with arbitrary weights in phi and theta
36typedef struct FitParams2DWeight {
37        double qy;                              // Independent variable.
38        double qx;                              // Independent variable.
39        waveHndl weight_values;
40        waveHndl par_values;
41        waveHndl waveHandle;    // Coefficient wave.
42        void* tp;                               //unused void for ThreadSafe functions
43        double result;
44}FitParams2DWeight, *FitParams2DWeightPtr;
45
46#pragma pack()
47
Note: See TracBrowser for help on using the repository browser.