/* * reax.h * * A new auto-indexer * * Copyright © 2012 Deutsches Elektronen-Synchrotron DESY, * a research centre of the Helmholtz Association. * * Authors: * 2011-2012 Thomas White * * This file is part of CrystFEL. * * CrystFEL is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * CrystFEL is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with CrystFEL. If not, see . * */ #ifndef REAX_H #define REAX_H #ifdef HAVE_CONFIG_H #include #endif #include "index.h" #include "cell.h" #include "detector.h" #ifdef __cplusplus extern "C" { #endif #ifdef HAVE_FFTW extern IndexingPrivate *reax_prepare(IndexingMethod *indm, UnitCell *cell, struct detector *det, float *ltl); extern void reax_cleanup(IndexingPrivate *pp); extern int reax_index(IndexingPrivate *pp, struct image *image); #else /* HAVE_FFTW */ static IndexingPrivate *reax_prepare(IndexingMethod *indm, UnitCell *cell, struct detector *det, float *ltl) { return NULL; } static void reax_cleanup(IndexingPrivate *pp) { } static int reax_index(IndexingPrivate *pp, struct image *image) { } #endif /* HAVE_FFTW */ #ifdef __cplusplus } #endif #endif /* REAX_H */