Skip to content
Snippets Groups Projects
Commit 34bde621 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Merge branch 'jwu' into develop

parents f1825bda 6537acd2
No related branches found
No related tags found
No related merge requests found
......@@ -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 \
......
......@@ -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
{
......
// ************************************************************************** //
//
// 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_ */
......@@ -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
# -----------------------------------------------------------------------------
......
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment