Mantid
Loading...
Searching...
No Matches
QLab.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 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 "MantidGeometry/DllConfig.h"
11#include "MantidKernel/MDUnit.h"
13#include <memory>
14
15namespace Mantid {
16namespace Geometry {
17
20class MANTID_GEOMETRY_DLL QLab : public MDFrame {
21public:
22 QLab();
23 Mantid::Kernel::UnitLabel getUnitLabel() const override;
24 const Mantid::Kernel::MDUnit &getMDUnit() const override;
25 bool setMDUnit(const Mantid::Kernel::MDUnit &newUnit) override;
26 bool canConvertTo(const Mantid::Kernel::MDUnit &otherUnit) const override;
27 bool isQ() const override;
28 bool isSameType(const MDFrame &frame) const override;
29 std::string name() const override;
30 QLab *clone() const override;
31 Mantid::Kernel::SpecialCoordinateSystem equivalientSpecialCoordinateSystem() const override;
32
33 // Type name
34 static const std::string QLabName;
35
36private:
38 const std::unique_ptr<const Mantid::Kernel::MDUnit> m_unit;
39};
40
41} // namespace Geometry
42} // namespace Mantid
std::string name
Definition Run.cpp:60
MDFrame : The coordinate frame for a dimension, or set of dimensions in a multidimensional workspace.
Definition MDFrame.h:22
QLab : Q in the lab frame MDFrame.
Definition QLab.h:20
const std::unique_ptr< const Mantid::Kernel::MDUnit > m_unit
Fixed to be inverse angstroms.
Definition QLab.h:38
static const std::string QLabName
Definition QLab.h:34
MDUnit : Unit type for multidimensional data types.
Definition MDUnit.h:20
A base-class for the a class that is able to return unit labels in different representations.
Definition UnitLabel.h:20
SpecialCoordinateSystem
Special coordinate systems for Q3D.
Helper class which provides the Collimation Length for SANS instruments.