Mantid
Loading...
Searching...
No Matches
HKL.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 HKL : public MDFrame {
21public:
22 HKL(const HKL &other);
23 HKL &operator=(const HKL &other);
24 HKL(std::unique_ptr<Kernel::MDUnit> &unit);
25 HKL(Kernel::MDUnit *unit);
26 static const std::string HKLName;
27
28 // MDFrame interface
29 Kernel::UnitLabel getUnitLabel() const override;
30 const Kernel::MDUnit &getMDUnit() const override;
31 bool setMDUnit(const Mantid::Kernel::MDUnit &newUnit) override;
32 bool canConvertTo(const Kernel::MDUnit &otherUnit) const override;
33 bool isQ() const override;
34 bool isSameType(const MDFrame &frame) const override;
35 std::string name() const override;
36 HKL *clone() const override;
37 Mantid::Kernel::SpecialCoordinateSystem equivalientSpecialCoordinateSystem() const override;
38
39private:
40 std::unique_ptr<Kernel::MDUnit> m_unit;
41};
42
43} // namespace Geometry
44} // namespace Mantid
std::string name
Definition Run.cpp:60
HKL : HKL MDFrame.
Definition HKL.h:20
static const std::string HKLName
Definition HKL.h:26
std::unique_ptr< Kernel::MDUnit > m_unit
Definition HKL.h:40
MDFrame : The coordinate frame for a dimension, or set of dimensions in a multidimensional workspace.
Definition MDFrame.h:22
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.