Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
UnknownFrame.h 2.05 KiB
#ifndef MANTID_GEOMETRY_UNKNOWN_H_
#define MANTID_GEOMETRY_UNKNOWN_H_

#include "MantidKernel/MDUnit.h"
#include "MantidKernel/System.h"
#include "MantidKernel/UnitLabel.h"
#include "MantidGeometry/MDGeometry/GeneralFrame.h"
#include "MantidGeometry/DllConfig.h"
#include <memory>

namespace Mantid {
namespace Geometry {

/** UnknownFrame : Unknown MDFrame

  Copyright &copy; 2015 ISIS Rutherford Appleton Laboratory, NScD Oak Ridge
  National Laboratory & European Spallation Source

  This file is part of Mantid.

  Mantid is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 3 of the License, or
  (at your option) any later version.

  Mantid is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.

  File change history is stored at: <https://github.com/mantidproject/mantid>
  Code Documentation is available at: <http://doxygen.mantidproject.org>
*/
class MANTID_GEOMETRY_DLL UnknownFrame : public MDFrame {
public:
  UnknownFrame(std::unique_ptr<Kernel::MDUnit> unit);
  UnknownFrame(const Kernel::UnitLabel &unit);
  virtual ~UnknownFrame();
  std::string name() const;
  bool canConvertTo(const Mantid::Kernel::MDUnit &otherUnit) const;
  bool isQ() const;
  bool isSameType(const MDFrame& frame) const;
  Mantid::Kernel::UnitLabel getUnitLabel() const;
  const Mantid::Kernel::MDUnit &getMDUnit() const;
  Mantid::Kernel::SpecialCoordinateSystem
  equivalientSpecialCoordinateSystem() const;
  UnknownFrame *clone() const;
  // Type name
  static const std::string UnknownFrameName;

private:
  /// Label unit
  const std::unique_ptr<Mantid::Kernel::MDUnit> m_unit;
};

} // namespace Geometry
} // namespace Mantid

#endif /* MANTID_GEOMETRY_QLAB_H_ */