BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
ColorMapCanvas.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/PlotUtil/ColorMapCanvas.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_PLOTUTIL_COLORMAPCANVAS_H
16 #define BORNAGAIN_GUI_VIEW_PLOTUTIL_COLORMAPCANVAS_H
17 
19 
20 class ColorMap;
21 class FontScalingEvent;
22 class IntensityDataItem;
23 class PlotStatusLabel;
24 class QCustomPlot;
25 
26 //! The ColorMapCanvas class contains ColorMap for intensity data presentation, and provide
27 //! control of font size, status string appearance, defines common actions
28 //! (reset view, save plot, show context menu).
29 
31  Q_OBJECT
32 
33 public:
34  explicit ColorMapCanvas(QWidget* parent = nullptr);
35 
36  void setItem(SessionItem* intensityDataItem) override;
37 
38  ColorMap* colorMap();
39  QCustomPlot* customPlot();
40 
41  void setStatusLabelEnabled(bool flag);
42 
43 public slots:
44  void onStatusString(const QString& name);
45 
46 private:
50 };
51 
52 #endif // BORNAGAIN_GUI_VIEW_PLOTUTIL_COLORMAPCANVAS_H
Defines class ItemComboWidget.
The ColorMapCanvas class contains ColorMap for intensity data presentation, and provide control of fo...
ColorMapCanvas(QWidget *parent=nullptr)
void onStatusString(const QString &name)
ColorMap * m_colorMap
PlotStatusLabel * m_statusLabel
void setItem(SessionItem *intensityDataItem) override
ColorMap * colorMap()
void setStatusLabelEnabled(bool flag)
QCustomPlot * customPlot()
FontScalingEvent * m_canvasEvent
The ColorMap class presents 2D intensity data from IntensityDataItem as color map.
Definition: ColorMap.h:36
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
IntensityDataItem * intensityDataItem(SessionItem *parent)
Returns IntensityDataItem contained as a child in givent parent.
QString const & name(EShape k)
Definition: particles.cpp:20