1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
// ************************************************************************** //
//
// BornAgain: simulate and fit scattering at grazing incidence
//
//! @file GUI/coregui/Views/SampleDesigner/InterferenceFunctionViews.cpp
//! @brief Implements classes InterferenceFunctionViews
//!
//! @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 "GUI/coregui/Views/SampleDesigner/InterferenceFunctionViews.h"
#include "GUI/coregui/Views/SampleDesigner/DesignerHelper.h"
InterferenceFunction1DLatticeView::InterferenceFunction1DLatticeView(QGraphicsItem* parent)
: ConnectableView(parent)
{
setName("Interference1DLattice");
setColor(QColor(255, 236, 139));
setRectangle(DesignerHelper::getInterferenceFunctionBoundingRect());
addPort("out", NodeEditorPort::OUTPUT, NodeEditorPort::INTERFERENCE);
m_roundpar = 3;
}
InterferenceFunction2DLatticeView::InterferenceFunction2DLatticeView(QGraphicsItem* parent)
: ConnectableView(parent)
{
setName("Interference2DLattice");
setColor(QColor(255, 236, 139));
setRectangle(DesignerHelper::getInterferenceFunctionBoundingRect());
addPort("out", NodeEditorPort::OUTPUT, NodeEditorPort::INTERFERENCE);
m_roundpar = 3;
}
InterferenceFunction2DParaCrystalView::InterferenceFunction2DParaCrystalView(QGraphicsItem* parent)
: ConnectableView(parent)
{
setName("Interference2DParaCrystal");
setColor(QColor(255, 236, 139));
setRectangle(DesignerHelper::getInterferenceFunctionBoundingRect());
addPort("out", NodeEditorPort::OUTPUT, NodeEditorPort::INTERFERENCE);
m_roundpar = 3;
}
InterferenceFunctionFinite2DLatticeView::InterferenceFunctionFinite2DLatticeView(
QGraphicsItem* parent)
: ConnectableView(parent)
{
setName("InterferenceFinite2DLattice");
setColor(QColor(255, 236, 139));
setRectangle(DesignerHelper::getInterferenceFunctionBoundingRect());
addPort("out", NodeEditorPort::OUTPUT, NodeEditorPort::INTERFERENCE);
m_roundpar = 3;
}
InterferenceFunctionHardDiskView::InterferenceFunctionHardDiskView(QGraphicsItem* parent)
: ConnectableView(parent)
{
setName("InterferenceHardDisk");
setColor(QColor(255, 236, 139));
setRectangle(DesignerHelper::getInterferenceFunctionBoundingRect());
addPort("out", NodeEditorPort::OUTPUT, NodeEditorPort::INTERFERENCE);
m_roundpar = 3;
}
InterferenceFunctionRadialParaCrystalView::InterferenceFunctionRadialParaCrystalView(
QGraphicsItem* parent)
: ConnectableView(parent)
{
setName("InterferenceRadialParaCrystal");
setColor(QColor(255, 236, 139));
setRectangle(DesignerHelper::getInterferenceFunctionBoundingRect());
addPort("out", NodeEditorPort::OUTPUT, NodeEditorPort::INTERFERENCE);
m_roundpar = 3;
}
|