BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
CoordName.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Util/CoordName.h
6 //! @brief Defines namespace GUI::Util::CoordName
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_UTIL_COORDNAME_H
16 #define BORNAGAIN_GUI_UTIL_COORDNAME_H
17 
18 #include "Device/Coord/AxisNames.h"
19 #include <QString>
20 
21 // TODO: Why not replace all this by functions from kernel?
22 
24 
25 //! Returns axes units names from their domain counterpart
26 QString nameFromCoord(Coords units);
27 
28 //! Returns domain axes units type from their GUI name
29 Coords coordFromName(const QString& name);
30 
31 } // namespace GUI::Util::CoordName
32 
33 #endif // BORNAGAIN_GUI_UTIL_COORDNAME_H
QString const & name(EShape k)
Definition: particles.cpp:20
Coords coordFromName(const QString &name)
Returns domain axes units type from their GUI name.
Definition: CoordName.cpp:46
QString nameFromCoord(Coords units)
Returns axes units names from their domain counterpart.
Definition: CoordName.cpp:36