Mantid
Loading...
Searching...
No Matches
UnknownFrame.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"
12#include "MantidKernel/System.h"
14#include <memory>
15
16namespace Mantid {
17namespace Geometry {
18
21class MANTID_GEOMETRY_DLL UnknownFrame : public MDFrame {
22public:
23 UnknownFrame(std::unique_ptr<Kernel::MDUnit> unit);
25 std::string name() const override;
26 bool setMDUnit(const Mantid::Kernel::MDUnit &newUnit) override;
27 bool canConvertTo(const Mantid::Kernel::MDUnit &otherUnit) const override;
28 bool isQ() const override;
29 bool isSameType(const MDFrame &frame) const override;
30 Mantid::Kernel::UnitLabel getUnitLabel() const override;
31 const Mantid::Kernel::MDUnit &getMDUnit() const override;
32 Mantid::Kernel::SpecialCoordinateSystem equivalientSpecialCoordinateSystem() const override;
33 UnknownFrame *clone() const override;
34 // Type name
35 static const std::string UnknownFrameName;
36
37private:
39 const std::unique_ptr<Mantid::Kernel::MDUnit> m_unit;
40};
41
42} // namespace Geometry
43} // namespace Mantid
MDFrame : The coordinate frame for a dimension, or set of dimensions in a multidimensional workspace.
Definition: MDFrame.h:22
UnknownFrame : Unknown MDFrame.
Definition: UnknownFrame.h:21
const std::unique_ptr< Mantid::Kernel::MDUnit > m_unit
Label unit.
Definition: UnknownFrame.h:39
static const std::string UnknownFrameName
Definition: UnknownFrame.h:35
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.