Mantid
Loading...
Searching...
No Matches
PlotAxis.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2014 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
13
14#include <QString>
15#include <string>
16
17namespace MantidQt {
18namespace API {
19
24public:
32 PlotAxis(const bool plottingDistribution, const Mantid::API::MatrixWorkspace &workspace);
33
35 PlotAxis() = delete;
36
38 QString title() const;
39
40private:
42 void titleFromIndex(const Mantid::API::IMDWorkspace &workspace, const size_t index);
44 void titleFromDimension(const Mantid::Geometry::IMDDimension &dim);
46 void titleFromYData(const Mantid::API::MatrixWorkspace &workspace, const bool plottingDistribution);
47
49 QString m_title;
50};
51
52} // namespace API
53} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition DllOption.h:15
IPeaksWorkspace_sptr workspace
std::map< DeltaEMode::Type, std::string > index
Deals with formatting a label for a plot axis for a given type of workspace.
Definition PlotAxis.h:23
QString m_title
Title.
Definition PlotAxis.h:49
PlotAxis()=delete
Disable default constructor.
Basic MD Workspace Abstract Class.
Base MatrixWorkspace Abstract Class.
The class describes one dimension of multidimensional dataset representing an orthogonal dimension an...
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...