BornAgain
1.19.0
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/coregui/Views/SpecularDataWidgets/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_COREGUI_VIEWS_SPECULARDATAWIDGETS_SPECULARPLOTCANVAS_H
16
#define BORNAGAIN_GUI_COREGUI_VIEWS_SPECULARDATAWIDGETS_SPECULARPLOTCANVAS_H
17
18
#include "
GUI/coregui/Views/CommonWidgets/SessionItemWidget.h
"
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
28
class
SpecularPlotCanvas
:
public
SessionItemWidget
{
29
Q_OBJECT
30
31
public
:
32
explicit
SpecularPlotCanvas
(QWidget* parent =
nullptr
);
33
34
void
setItem
(
SessionItem
*
specularDataItem
)
override
;
35
36
SpecularPlot
*
specularPlot
();
37
QCustomPlot*
customPlot
();
38
39
void
setStatusLabelEnabled
(
bool
flag);
40
41
public
slots:
42
void
onStatusString
(
const
QString&
name
);
43
44
private
:
45
SpecularPlot
*
m_plot
;
46
FontScalingEvent
*
m_canvasEvent
;
47
PlotStatusLabel
*
m_statusLabel
;
48
};
49
50
#endif
// BORNAGAIN_GUI_COREGUI_VIEWS_SPECULARDATAWIDGETS_SPECULARPLOTCANVAS_H
SessionItemWidget.h
Defines class ItemComboWidget.
FontScalingEvent
Provides event filter for ScientificPlot.
Definition:
FontScalingEvent.h:28
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
SpecularPlotCanvas
The SpecularPlotCanvas class contains SpecularPlot for specular data presentation,...
Definition:
SpecularPlotCanvas.h:28
SpecularPlotCanvas::m_canvasEvent
FontScalingEvent * m_canvasEvent
Definition:
SpecularPlotCanvas.h:46
SpecularPlotCanvas::SpecularPlotCanvas
SpecularPlotCanvas(QWidget *parent=nullptr)
Definition:
SpecularPlotCanvas.cpp:22
SpecularPlotCanvas::setItem
void setItem(SessionItem *specularDataItem) override
Definition:
SpecularPlotCanvas.cpp:41
SpecularPlotCanvas::onStatusString
void onStatusString(const QString &name)
Definition:
SpecularPlotCanvas.cpp:63
SpecularPlotCanvas::specularPlot
SpecularPlot * specularPlot()
Definition:
SpecularPlotCanvas.cpp:47
SpecularPlotCanvas::m_statusLabel
PlotStatusLabel * m_statusLabel
Definition:
SpecularPlotCanvas.h:47
SpecularPlotCanvas::customPlot
QCustomPlot * customPlot()
Definition:
SpecularPlotCanvas.cpp:52
SpecularPlotCanvas::setStatusLabelEnabled
void setStatusLabelEnabled(bool flag)
Definition:
SpecularPlotCanvas.cpp:57
SpecularPlotCanvas::m_plot
SpecularPlot * m_plot
Definition:
SpecularPlotCanvas.h:45
SpecularPlot
The SpecularPlot class presents 1D intensity data from SpecularDataItem.
Definition:
SpecularPlot.h:32
DataItemUtils::specularDataItem
SpecularDataItem * specularDataItem(SessionItem *parent)
Returns SpecularDataItem contained as a child in givent parent.
Definition:
DataItemUtils.cpp:43
RealSpace::Particles::name
QString const & name(EShape k)
Definition:
particles.cpp:21
GUI
coregui
Views
SpecularDataWidgets
SpecularPlotCanvas.h
Generated by
1.9.1