BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
colormapinfoformatter.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// qt-mvvm: Model-view-view-model framework for large GUI applications
4
//
5
//! @file mvvm/view/mvvm/plotting/colormapinfoformatter.h
6
//! @brief Defines class CLASS?
7
//!
8
//! @homepage http://www.bornagainproject.org
9
//! @license GNU General Public License v3 or higher (see COPYING)
10
//! @copyright Forschungszentrum Jülich GmbH 2020
11
//! @authors Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12
//
13
// ************************************************************************************************
14
15
#ifndef BORNAGAIN_MVVM_VIEW_MVVM_PLOTTING_COLORMAPINFOFORMATTER_H
16
#define BORNAGAIN_MVVM_VIEW_MVVM_PLOTTING_COLORMAPINFOFORMATTER_H
17
18
#include "
mvvm/plotting/statusstringformatterinterface.h
"
19
20
class
QCustomPlot;
21
22
namespace
ModelView
{
23
24
//! Formats status string for current mouse position in QCPColorMap.
25
//! Includes coordinates of mouse pointer in viewport axes coordinates, add bins info for
26
//! QCPColorMap beneath.
27
28
class
MVVM_VIEW_EXPORT
ColorMapInfoFormatter
:
public
StatusStringFormatterInterface
{
29
public
:
30
//! Returns status string representing data in color map.
31
//! @params x: mouse x-position given in axis viewport coordinates
32
//! @params y: mouse y-position given in axis viewport coordinates
33
std::string status_string(QCustomPlot* custom_plot,
double
x,
double
y)
const override
;
34
};
35
36
}
// namespace ModelView
37
38
#endif
// BORNAGAIN_MVVM_VIEW_MVVM_PLOTTING_COLORMAPINFOFORMATTER_H
ModelView::ColorMapInfoFormatter
Formats status string for current mouse position in QCPColorMap.
Definition:
colormapinfoformatter.h:28
ModelView::StatusStringFormatterInterface
Pure virtual interface to format string with status info corresponding to the current mouse position ...
Definition:
statusstringformatterinterface.h:28
ModelView
materialitems.h Collection of materials to populate MaterialModel.
Definition:
importtablewidget.h:26
statusstringformatterinterface.h
Defines class CLASS?
mvvm
view
mvvm
plotting
colormapinfoformatter.h
Generated by
1.9.1