BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Plot1DCanvas.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file GUI/coregui/Views/SpecularDataWidgets/Plot1DCanvas.h
6
//! @brief Defines class Plot1DCanvas
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
15
#ifndef BORNAGAIN_GUI_COREGUI_VIEWS_SPECULARDATAWIDGETS_PLOT1DCANVAS_H
16
#define BORNAGAIN_GUI_COREGUI_VIEWS_SPECULARDATAWIDGETS_PLOT1DCANVAS_H
17
18
#include "
GUI/coregui/Views/CommonWidgets/SessionItemWidget.h
"
19
20
class
FontScalingEvent
;
21
class
PlotStatusLabel
;
22
class
QCustomPlot;
23
class
Plot1D
;
24
25
//! The Plot1DCanvas class contains SpecularPlotWithDataView
26
//! for specular data presentation, and provides
27
//! status string appearance.
28
29
class
Plot1DCanvas
:
public
SessionItemWidget
{
30
Q_OBJECT
31
32
public
:
33
explicit
Plot1DCanvas
(QWidget* parent =
nullptr
);
34
35
void
setItem
(
SessionItem
* dataItemView)
override
;
36
37
Plot1D
*
plot1D
();
38
QCustomPlot*
customPlot
();
39
40
void
setStatusLabelEnabled
(
bool
flag);
41
42
public
slots:
43
void
onStatusString
(
const
QString&
name
);
44
45
private
:
46
Plot1D
*
m_plot
;
47
FontScalingEvent
*
m_canvasEvent
;
48
PlotStatusLabel
*
m_statusLabel
;
49
};
50
51
#endif
// BORNAGAIN_GUI_COREGUI_VIEWS_SPECULARDATAWIDGETS_PLOT1DCANVAS_H
SessionItemWidget.h
Defines class ItemComboWidget.
FontScalingEvent
Provides event filter for ScientificPlot.
Definition:
FontScalingEvent.h:28
Plot1DCanvas
The Plot1DCanvas class contains SpecularPlotWithDataView for specular data presentation,...
Definition:
Plot1DCanvas.h:29
Plot1DCanvas::customPlot
QCustomPlot * customPlot()
Definition:
Plot1DCanvas.cpp:51
Plot1DCanvas::setStatusLabelEnabled
void setStatusLabelEnabled(bool flag)
Definition:
Plot1DCanvas.cpp:56
Plot1DCanvas::Plot1DCanvas
Plot1DCanvas(QWidget *parent=nullptr)
Definition:
Plot1DCanvas.cpp:21
Plot1DCanvas::m_canvasEvent
FontScalingEvent * m_canvasEvent
Definition:
Plot1DCanvas.h:47
Plot1DCanvas::onStatusString
void onStatusString(const QString &name)
Definition:
Plot1DCanvas.cpp:62
Plot1DCanvas::m_plot
Plot1D * m_plot
Definition:
Plot1DCanvas.h:46
Plot1DCanvas::m_statusLabel
PlotStatusLabel * m_statusLabel
Definition:
Plot1DCanvas.h:48
Plot1DCanvas::plot1D
Plot1D * plot1D()
Definition:
Plot1DCanvas.cpp:46
Plot1DCanvas::setItem
void setItem(SessionItem *dataItemView) override
Definition:
Plot1DCanvas.cpp:40
Plot1D
The Plot1D class presents data of several 1D DataItems contained in a Data1DViewItem.
Definition:
Plot1D.h:32
PlotStatusLabel
The PlotStatusLabel class shows status string as reported by DescriptedPlot in a frame.
Definition:
PlotStatusLabel.h:29
SessionItemWidget
The SessionItemWidget class is a base for all widgets representing the content of SessionItem.
Definition:
SessionItemWidget.h:30
SessionItem
Definition:
SessionItem.h:33
RealSpace::Particles::name
QString const & name(EShape k)
Definition:
particles.cpp:21
GUI
coregui
Views
SpecularDataWidgets
Plot1DCanvas.h
Generated by
1.9.1