source: sans/Analysis/branches/ajj_23APR07/XOPs/SANSAnalysis/XOP/SANSAnalysis.h @ 231

Last change on this file since 231 was 231, checked in by srkline, 15 years ago

EXTENSIVE changes to the XOP.

DANSE code has been directly incorporated into our libSANSAnalysis. Maybe not the cleanest way it Mathieu changes much in his code, but hopefully not too much of a mess.

Our old libFunc2D.c(.h) has been deleted (and replaced with multiple files of Mathieu's code, danse.h has the "exported" functions that we want
-note that there are some overlapping file names, (like cylinder.c), but they belong to different targets.

In our XOP, Func2D has the XOP wrappers to the 2D functions in danse.h

so far, works only for Mac. Still needs to be ported to WIN. Lots more entries in SANSAnalysis.c(.r)

  • 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 */
7HOST_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
18typedef 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
26typedef 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
35typedef 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"
Note: See TracBrowser for help on using the repository browser.