BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SessionGraphicsItem.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/SessionGraphicsItem.cpp
6 //! @brief Implements class SessionGraphicsItem
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 
17 const QString SessionGraphicsItem::P_XPOS = "xpos";
18 const QString SessionGraphicsItem::P_YPOS = "ypos";
19 
21 {
22  addProperty(P_XPOS, qreal(0.0))->setVisible(false);
23  addProperty(P_YPOS, qreal(0.0))->setVisible(false);
24 }
Defines class SessionGraphicsItem.
static const QString P_XPOS
SessionGraphicsItem(const QString &model_type="")
static const QString P_YPOS
SessionItem * addProperty(const QString &name, const QVariant &variant)
Add new property item and register new tag.
void setVisible(bool enabled)
Flags accessors.
std::string model_type
Definition: types.h:23