BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ProjectionItems.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/ProjectionItems.cpp
6 //! @brief Implements items related to projections over color map.
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 
16 
18 {
19  const QString T_CHILDREN = "children tag";
20  registerTag(T_CHILDREN, 0, -1,
21  QStringList() << "HorizontalLineMask"
22  << "VerticalLineMask");
23  setDefaultTag(T_CHILDREN);
24 }
Defines items related to projections over color map.
bool registerTag(const QString &name, int min=0, int max=-1, QStringList modelTypes={})
Add new tag to this item with given name, min, max and types.
void setDefaultTag(const QString &tag)
Set default tag.