BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
InterferenceFunctionViews.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/SampleDesigner/InterferenceFunctionViews.cpp
6 //! @brief Implements classes InterferenceFunctionViews
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 
17 
19  : ConnectableView(parent)
20 {
21  setName("Interference1DLattice");
22  setColor(QColor(255, 236, 139));
25  m_roundpar = 3;
26 }
27 
29  : ConnectableView(parent)
30 {
31  setName("Interference2DLattice");
32  setColor(QColor(255, 236, 139));
35  m_roundpar = 3;
36 }
37 
39  : ConnectableView(parent)
40 {
41  setName("Interference2DParaCrystal");
42  setColor(QColor(255, 236, 139));
45  m_roundpar = 3;
46 }
47 
49  QGraphicsItem* parent)
50  : ConnectableView(parent)
51 {
52  setName("InterferenceFinite2DLattice");
53  setColor(QColor(255, 236, 139));
56  m_roundpar = 3;
57 }
58 
60  : ConnectableView(parent)
61 {
62  setName("InterferenceHardDisk");
63  setColor(QColor(255, 236, 139));
66  m_roundpar = 3;
67 }
68 
70  QGraphicsItem* parent)
71  : ConnectableView(parent)
72 {
73  setName("InterferenceRadialParaCrystal");
74  setColor(QColor(255, 236, 139));
77  m_roundpar = 3;
78 }
Defines class DesignerHelper.
Defines classes InterferenceFunctionViews.
view of ISampleNode's with rectangular shape and node functionality
virtual void setColor(const QColor &color)
virtual void setRectangle(QRectF rect)
virtual NodeEditorPort * addPort(const QString &name, NodeEditorPort::EPortDirection direction, NodeEditorPort::EPortType port_type)
adds port to view
virtual void setName(const QString &name)
static QRectF getInterferenceFunctionBoundingRect()
InterferenceFunction1DLatticeView(QGraphicsItem *parent=nullptr)
InterferenceFunction2DLatticeView(QGraphicsItem *parent=nullptr)
InterferenceFunction2DParaCrystalView(QGraphicsItem *parent=nullptr)
InterferenceFunctionFinite2DLatticeView(QGraphicsItem *parent=nullptr)
InterferenceFunctionHardDiskView(QGraphicsItem *parent=nullptr)
InterferenceFunctionRadialParaCrystalView(QGraphicsItem *parent=nullptr)