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

+ file/class FrameTrafo

parent 44be3e44
No related branches found
No related tags found
1 merge request!1900coord trafo at Frame level, with 1st application to AxesInDifferentUnits
// ************************************************************************************************
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file Base/Axis/FrameTrafo.cpp
//! @brief Implements class FrameTrafo.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2018
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
//
// ************************************************************************************************
#include "Base/Axis/FrameTrafo.h"
#include "Base/Axis/Coordinate.h"
FrameTrafo::~FrameTrafo() = default;
FrameTrafo* FrameTrafo::clone() const
{
return new FrameTrafo(*this);
}
// ************************************************************************************************
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file Base/Axis/FrameTrafo.h
//! @brief Defines class FrameTrafo.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2018
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
//
// ************************************************************************************************
#ifndef BORNAGAIN_BASE_AXIS_FRAMETRAFO_H
#define BORNAGAIN_BASE_AXIS_FRAMETRAFO_H
#include <functional>
#include <string>
class Coordinate;
using trafo_t = std::function<double(double)>;
//! One specific transform of frame coordinates.
class FrameTrafo {
public:
~FrameTrafo();
FrameTrafo* clone() const;
std::string name;
std::vector<Coordinate> coords;
std::vector<trafo_t> axTrafos;
bool xMirror{false};
};
#endif // BORNAGAIN_BASE_AXIS_FRAMETRAFO_H
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