diff --git a/Core/Core.pro b/Core/Core.pro index 5c2f89814865e134eba16733976b3bef1a2d5c9c..86bf44193d9d5518d9693f78e0b8efffb18126c8 100644 --- a/Core/Core.pro +++ b/Core/Core.pro @@ -6,7 +6,7 @@ TEMPLATE = lib CONFIG += plugin # to remove versions from file name QT -= core gui QMAKE_EXTENSION_SHLIB = so # making standard *.so extension -CONFIG += BORNAGAIN_PYTHON +# CONFIG += BORNAGAIN_PYTHON # ----------------------------------------------------------------------------- # source and headers @@ -135,7 +135,6 @@ HEADERS += \ Tools/inc/AxisDouble.h \ Tools/inc/Bin.h \ Tools/inc/Convolve.h \ - Tools/inc/Coordinate3D.h \ Tools/inc/CoreOptionsDescription.h \ Tools/inc/DoubleToComplexInterpolatingFunction.h \ Tools/inc/DoubleToComplexMap.h \ diff --git a/Core/Samples/inc/ISelectionRule.h b/Core/Samples/inc/ISelectionRule.h index bbfa6e9fff0ca26fc11b8b9697af8e444f75d314..6c65536cf4e0e12d915c0a45731214d1c22fe335 100644 --- a/Core/Samples/inc/ISelectionRule.h +++ b/Core/Samples/inc/ISelectionRule.h @@ -3,7 +3,7 @@ // BornAgain: simulate and fit scattering at grazing incidence // //! @file Samples/inc/ISelectionRule.h -//! @brief Defines class ISelectionRule. +//! @brief Defines classes ISelectionRule, SimpleSelectionRule //! //! @homepage http://apps.jcns.fz-juelich.de/BornAgain //! @license GNU General Public License v3 or higher (see COPYING) @@ -16,7 +16,11 @@ #ifndef ISELECTIONRULE_H_ #define ISELECTIONRULE_H_ -#include "Coordinate3D.h" +#include "BasicVector3D.h" + +typedef Geometry::BasicVector3D<int> IndexVector3D; + +//! Pure virtual base class for selection rules. class ISelectionRule { @@ -28,6 +32,8 @@ public: virtual bool coordinateSelected(const IndexVector3D &coordinate) const=0; }; +//! Selection rule (v*q)%modulus!=0, defined by vector v(a,b,c) and modulus. + class SimpleSelectionRule : public ISelectionRule { public: @@ -42,12 +48,9 @@ private: int m_mod; }; -inline SimpleSelectionRule::SimpleSelectionRule(int a, int b, int c, - int modulus) -: m_a(a), m_b(b), m_c(c) -, m_mod(modulus) -{ -} +inline SimpleSelectionRule::SimpleSelectionRule( + int a, int b, int c, int modulus) + : m_a(a), m_b(b), m_c(c), m_mod(modulus) {} inline SimpleSelectionRule* SimpleSelectionRule::clone() const { diff --git a/Core/Tools/inc/Coordinate3D.h b/Core/Tools/inc/Coordinate3D.h deleted file mode 100644 index 6deec9972b6fcb8d5ee9514506dd54692113d906..0000000000000000000000000000000000000000 --- a/Core/Tools/inc/Coordinate3D.h +++ /dev/null @@ -1,23 +0,0 @@ -// ************************************************************************** // -// -// BornAgain: simulate and fit scattering at grazing incidence -// -//! @file Tools/inc/Coordinate3D.h -//! @brief TODO: This file should be eliminated. -//! -//! @homepage http://apps.jcns.fz-juelich.de/BornAgain -//! @license GNU General Public License v3 or higher (see COPYING) -//! @copyright Forschungszentrum Jülich GmbH 2013 -//! @authors Scientific Computing Group at MLZ Garching -//! @authors C. Durniak, G. Pospelov, W. Van Herck, J. Wuttke -// -// ************************************************************************** // - -#ifndef COORDINATE3D_H_ -#define COORDINATE3D_H_ - -#include "BasicVector3D.h" - -typedef Geometry::BasicVector3D<int> IndexVector3D; - -#endif /* COORDINATE3D_H_ */ diff --git a/Fit/Fit.pro b/Fit/Fit.pro index ddb6211be830282d0ed799b4d4811bc3dd0c49b7..7f5537db9b0ae50c79415408aeece436ca5dc5f0 100644 --- a/Fit/Fit.pro +++ b/Fit/Fit.pro @@ -6,7 +6,7 @@ TEMPLATE = lib CONFIG += plugin # to remove versions from file name QT -= core gui QMAKE_EXTENSION_SHLIB = so # making standard *.so extension -CONFIG += BORNAGAIN_PYTHON +# CONFIG += BORNAGAIN_PYTHON CONFIG += BORNAGAIN_ROOT # ----------------------------------------------------------------------------- diff --git a/Macros/BoostPythonGenerator/Makefile b/Macros/BoostPythonGenerator/Makefile deleted file mode 100644 index e6757e1cb790be59d1d9cf6cc758045052599bb0..0000000000000000000000000000000000000000 --- a/Macros/BoostPythonGenerator/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# generate aditional code for GISASFW Python API - -default: build - -build: - python codegenerator.py make - -install: - python codegenerator.py install - - - -.PHONY: clean - -clean: - rm -r -f output - rm -f *~ - rm -f named_tuple.py - rm -f *.pyc - rm -f exposed_decl.pypp.txt