Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
ImageInfoPresenter.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2020 ISIS Rutherford Appleton Laboratory UKRI,
4
// NScD Oak Ridge National Laboratory, European Spallation Source,
5
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6
// SPDX - License - Identifier: GPL - 3.0 +
7
8
#pragma once
9
10
#include "
DllOption.h
"
11
#include "
MantidQtWidgets/Common/IImageInfoWidget.h
"
12
#include "
MantidQtWidgets/Common/ImageInfoModel.h
"
13
14
namespace
MantidQt
{
15
namespace
MantidWidgets {
16
21
class
EXPORT_OPT_MANTIDQT_COMMON
ImageInfoPresenter
{
22
23
public
:
24
ImageInfoPresenter
(
IImageInfoWidget
*view);
25
26
inline
const
ImageInfoModel
&
model
() {
return
*m_model; }
27
28
void
cursorAt(
const
double
x,
const
double
y,
const
double
signal,
const
QMap<QString, QString> &extraValues);
29
void
setWorkspace(
const
Mantid::API::Workspace_sptr
&ws);
30
void
fillTableCells(
const
ImageInfoModel::ImageInfo
&info);
31
inline
void
setShowSignal
(
const
bool
showSignal) { m_showSignal = showSignal; }
32
33
private
:
34
std::unique_ptr<ImageInfoModel>
m_model
;
35
IImageInfoWidget
*
m_view
;
36
bool
m_showSignal
;
37
};
38
39
}
// namespace MantidWidgets
40
}
// namespace MantidQt
DllOption.h
EXPORT_OPT_MANTIDQT_COMMON
#define EXPORT_OPT_MANTIDQT_COMMON
Definition
DllOption.h:15
IImageInfoWidget.h
ImageInfoModel.h
MantidQt::MantidWidgets::IImageInfoWidget
Definition
IImageInfoWidget.h:17
MantidQt::MantidWidgets::ImageInfoModel::ImageInfo
Definition
ImageInfoModel.h:24
MantidQt::MantidWidgets::ImageInfoModel
Definition
ImageInfoModel.h:22
MantidQt::MantidWidgets::ImageInfoPresenter
A table widget containing information about the pixel the mouse is over in an image.
Definition
ImageInfoPresenter.h:21
MantidQt::MantidWidgets::ImageInfoPresenter::model
const ImageInfoModel & model()
Definition
ImageInfoPresenter.h:26
MantidQt::MantidWidgets::ImageInfoPresenter::m_model
std::unique_ptr< ImageInfoModel > m_model
Definition
ImageInfoPresenter.h:34
MantidQt::MantidWidgets::ImageInfoPresenter::m_view
IImageInfoWidget * m_view
Definition
ImageInfoPresenter.h:35
MantidQt::MantidWidgets::ImageInfoPresenter::setShowSignal
void setShowSignal(const bool showSignal)
Definition
ImageInfoPresenter.h:31
MantidQt::MantidWidgets::ImageInfoPresenter::m_showSignal
bool m_showSignal
Definition
ImageInfoPresenter.h:36
MantidQt
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
Definition
AddWorkspaceDialog.h:18
Mantid::API::Workspace_sptr
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
Definition
Workspace_fwd.h:20
Generated by
1.9.8