BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Presents simulation results together with reference experimental data on two canvas. More...
Public Member Functions | |
SimPlotWidget (QWidget *parent=nullptr) | |
~SimPlotWidget () | |
void | setModels (ApplicationModels *models) |
void | updateDiffPlot () |
void | updateViewport () |
Private Attributes | |
ModelView::GraphCanvas * | m_diffCanvas {nullptr} |
ApplicationModels * | m_models {nullptr} |
ModelView::GraphCanvas * | m_specularCanvas {nullptr} |
Presents simulation results together with reference experimental data on two canvas.
The top canvas contains graphs itself, bottom canvas their relative difference.
Definition at line 32 of file simplotwidget.h.
gui2::SimPlotWidget::SimPlotWidget | ( | QWidget * | parent = nullptr | ) |
Definition at line 27 of file simplotwidget.cpp.
References ModelView::GraphCanvas::axisMarginsChanged(), m_diffCanvas, m_specularCanvas, and ModelView::GraphCanvas::setAxisMargins().
|
default |
void gui2::SimPlotWidget::setModels | ( | ApplicationModels * | models | ) |
Definition at line 55 of file simplotwidget.cpp.
References gui2::JobModel::diffViewport(), gui2::ApplicationModels::jobModel(), m_diffCanvas, m_models, m_specularCanvas, ModelView::GraphCanvas::setItem(), and gui2::JobModel::specularViewport().
Referenced by gui2::QuickSimEditor::setModels().
void gui2::SimPlotWidget::updateDiffPlot | ( | ) |
void gui2::SimPlotWidget::updateViewport | ( | ) |
Definition at line 62 of file simplotwidget.cpp.
References m_diffCanvas, m_specularCanvas, and ModelView::GraphCanvas::setViewportToContent().
Referenced by gui2::QuickSimEditor::setup_toolbar_connections().
|
private |
Definition at line 48 of file simplotwidget.h.
Referenced by SimPlotWidget(), setModels(), and updateViewport().
|
private |
Definition at line 46 of file simplotwidget.h.
Referenced by setModels().
|
private |
Definition at line 47 of file simplotwidget.h.
Referenced by SimPlotWidget(), setModels(), and updateViewport().