BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
SpecularPlotCanvas.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/PlotSpecular/SpecularPlotCanvas.h
6 //! @brief Defines class ColorMapCanvas
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_VIEW_PLOTSPECULAR_SPECULARPLOTCANVAS_H
16 #define BORNAGAIN_GUI_VIEW_PLOTSPECULAR_SPECULARPLOTCANVAS_H
17 
19 
20 class FontScalingEvent;
21 class PlotStatusLabel;
22 class QCustomPlot;
23 class SpecularPlot;
24 
25 //! The SpecularPlotCanvas class contains SpecularPlot for specular data presentation, and provides
26 //! status string appearance.
27 
29  Q_OBJECT
30 
31 public:
32  explicit SpecularPlotCanvas(QWidget* parent = nullptr);
33 
34  void setItem(SessionItem* specularDataItem) override;
35 
37  QCustomPlot* customPlot();
38  void initScatter();
39 
40  void setStatusLabelEnabled(bool flag);
41 
42 public slots:
43  void onStatusString(const QString& name);
44 
45 private:
49 };
50 
51 #endif // BORNAGAIN_GUI_VIEW_PLOTSPECULAR_SPECULARPLOTCANVAS_H
Defines class ItemComboWidget.
Provides event filter for ScientificPlot. Its goal is to make font size adjustments on resize events.
The PlotStatusLabel class shows status string as reported by DescriptedPlot in a frame....
The SessionItemWidget class is a base for all widgets representing the content of SessionItem....
Base class for a GUI data item.
Definition: SessionItem.h:204
The SpecularPlotCanvas class contains SpecularPlot for specular data presentation,...
FontScalingEvent * m_canvasEvent
SpecularPlotCanvas(QWidget *parent=nullptr)
void setItem(SessionItem *specularDataItem) override
void onStatusString(const QString &name)
SpecularPlot * specularPlot()
PlotStatusLabel * m_statusLabel
QCustomPlot * customPlot()
void setStatusLabelEnabled(bool flag)
SpecularPlot * m_plot
The SpecularPlot class presents 1D intensity data from SpecularDataItem.
Definition: SpecularPlot.h:32
SpecularDataItem * specularDataItem(SessionItem *parent)
Returns SpecularDataItem contained as a child in givent parent.
QString const & name(EShape k)
Definition: particles.cpp:20