Mantid
Loading...
Searching...
No Matches
SymmetryOperationSymbolParser.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
11#include "MantidGeometry/DllConfig.h"
12
13namespace Mantid {
14namespace Geometry {
15
52class MANTID_GEOMETRY_DLL SymmetryOperationSymbolParser {
53public:
54 static MatrixVectorPair<int, V3R> parseIdentifier(const std::string &identifier);
55 static std::string getNormalizedIdentifier(const MatrixVectorPair<int, V3R> &data);
56 static std::string getNormalizedIdentifier(const Kernel::IntMatrix &matrix, const V3R &vector);
57
58protected:
60
61 static void verifyMatrix(const Kernel::IntMatrix &matrix);
62 static bool isValidMatrixRow(const int *element, size_t columnNumber);
63};
64
65} // namespace Geometry
66} // namespace Mantid
This is a parser for symmetry operation symbols in the Jones faithful representation.
Helper class which provides the Collimation Length for SANS instruments.