Mantid
Loading...
Searching...
No Matches
ImageInfoModelMatrixWS.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#pragma once
8
9#include "DllOption.h"
10
15#include <tuple>
16
17namespace Mantid {
18namespace Geometry {
19class IComponent;
20class Instrument;
21} // namespace Geometry
22namespace API {
23class SpectrumInfo;
24}
25} // namespace Mantid
26
27namespace MantidQt {
28namespace MantidWidgets {
29
35
36public:
38
39 ImageInfoModel::ImageInfo info(const double x, const double y, const double signal,
40 const QMap<QString, QString> &extraValues) const override;
41
42private:
43 void setUnitsInfo(ImageInfoModel::ImageInfo *info, int infoIndex, const size_t wsIndex, const double x) const;
44 void cacheWorkspaceInfo();
45 void createItemNames();
46
47private:
50 std::shared_ptr<const Mantid::Geometry::Instrument> m_instrument;
51 std::shared_ptr<const Mantid::Geometry::IComponent> m_source;
52 std::shared_ptr<const Mantid::Geometry::IComponent> m_sample;
56};
57
58} // namespace MantidWidgets
59} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
IPeaksWorkspace_sptr workspace
Definition: IndexPeaks.cpp:114
Model to support looking up information about a given point with a MatrixWorkspace.
const Mantid::API::SpectrumInfo * m_spectrumInfo
std::shared_ptr< const Mantid::Geometry::Instrument > m_instrument
std::shared_ptr< const Mantid::Geometry::IComponent > m_sample
ImageInfoModel::ImageInfo::StringItems m_names
std::shared_ptr< const Mantid::Geometry::IComponent > m_source
API::SpectrumInfo is an intermediate step towards a SpectrumInfo that is part of Instrument-2....
Definition: SpectrumInfo.h:53
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::shared_ptr< Unit > Unit_sptr
Shared pointer to the Unit base class.
Definition: Unit.h:229
Helper class which provides the Collimation Length for SANS instruments.