39 lines
1.2 KiB
C
39 lines
1.2 KiB
C
|
|
/*----------------------------------------------------------------------
|
|
UB calculation routines for four circle diffraction.
|
|
This is the interpreter interface to functionality implemented
|
|
in fourlib.c
|
|
|
|
copyright: see file COPYRIGHT
|
|
|
|
Mark Koennecke, March 2005
|
|
-----------------------------------------------------------------------*/
|
|
#ifndef SICSUBCALC
|
|
#define SICSUBCALC
|
|
#include "sics.h"
|
|
#include "matrix/matrix.h"
|
|
#include "cell.h"
|
|
#include "hkl.h"
|
|
#include "ubfour.h"
|
|
/*---------------------------------------------------------------------*/
|
|
typedef struct {
|
|
pObjectDescriptor pDes;
|
|
pHKL hkl;
|
|
lattice direct;
|
|
reflection r1, r2, r3;
|
|
MATRIX UB;
|
|
double allowedDeviation;
|
|
int indexSearchLimit;
|
|
int maxSuggestions;
|
|
} UBCALC, *pUBCALC;
|
|
/*-------------------------------------------------------------------*/
|
|
int MakeUBCalc(SConnection * pCon, SicsInterp * pSics, void *pData,
|
|
int argc, char *argv[]);
|
|
int CreateUBCalc(SConnection * pCon, SicsInterp * pSics, char *name,
|
|
char *hkl);
|
|
int UBCalcWrapper(SConnection * pCon, SicsInterp * pSics, void *pData,
|
|
int argc, char *argv[]);
|
|
|
|
reflection getReflection(void *ubcalc, int no);
|
|
#endif
|