Mantid
Loading...
Searching...
No Matches
ImageInfoWidget.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"
13#include <QMap>
14
15namespace MantidQt {
16namespace MantidWidgets {
17
23 Q_OBJECT
24
25public:
26 ImageInfoWidget(QWidget *parent = nullptr);
27
28 // Note: QMap has sip binding via PyQt but only for specific types (both types have to be classes or the first type
29 // has to be int)
30 void cursorAt(const double x, const double y, const double signal,
31 const QMap<QString, QString> &extraValues) override;
32 void setWorkspace(const Mantid::API::Workspace_sptr &ws) override;
33 void showInfo(const ImageInfoModel::ImageInfo &info) override;
34
35private:
36 std::unique_ptr<ImageInfoPresenter> m_presenter;
37};
38
39} // namespace MantidWidgets
40} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
A table widget containing information about the pixel the mouse is over in an image.
std::unique_ptr< ImageInfoPresenter > m_presenter
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
Definition: Workspace_fwd.h:20