Mantid
Loading...
Searching...
No Matches
NullCoordTransform.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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
10
11namespace Mantid {
12namespace API {
13
20class MANTID_API_DLL NullCoordTransform : public Mantid::API::CoordTransform {
21public:
22 NullCoordTransform(size_t ndims = 3);
23 std::string toXMLString() const override;
24 std::string id() const override;
25 void apply(const Mantid::coord_t *inputVector, Mantid::coord_t *outVector) const override;
26 CoordTransform *clone() const override;
27
28private:
30 size_t m_ndims;
31};
32} // namespace API
33} // namespace Mantid
Unique SingleValueParameter Declaration for InputNDimensions.
NullCoordTransform : A transform that sets the outVector to have the same values as the inputVector.
size_t m_ndims
Number of dimensions.
Helper class which provides the Collimation Length for SANS instruments.
float coord_t
Typedef for the data type to use for coordinate axes in MD objects such as MDBox, MDEventWorkspace,...
Definition: MDTypes.h:27