Mantid
Loading...
Searching...
No Matches
PeakTransformQSample.cpp
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 +
8#include <memory>
9
10using boost::regex;
11
12namespace Mantid::Geometry {
13
15 : PeakTransform("Q_sample_x", "Q_sample_y", regex("^Q_sample_x.*$"), regex("^Q_sample_y.*$"),
16 regex("^Q_sample_z.*$")) {}
17
18PeakTransformQSample::PeakTransformQSample(const std::string &xPlotLabel, const std::string &yPlotLabel)
19 : PeakTransform(xPlotLabel, yPlotLabel, regex("^Q_sample_x.*$"), regex("^Q_sample_y.*$"), regex("^Q_sample_z.*$")) {
20}
21
25PeakTransform_sptr PeakTransformQSample::clone() const { return std::make_shared<PeakTransformQSample>(*this); }
26
33}
34
40}
41} // namespace Mantid::Geometry
Structure describing a single-crystal peak.
Definition: IPeak.h:26
virtual Mantid::Kernel::V3D getQSampleFrame() const =0
Mantid::Kernel::V3D transformPeak(const Mantid::Geometry::IPeak &peak) const override
Transform peak.
PeakTransform_sptr clone() const override
Clone the PeakTransformQSample.
Mantid::Kernel::SpecialCoordinateSystem getCoordinateSystem() const override
Getter for the special coordinate representation of this transform type.
Used to remap coordinates into a form consistent with an axis reordering.
Definition: PeakTransform.h:21
virtual Mantid::Kernel::V3D transform(const Mantid::Kernel::V3D &original) const
Perform Transform.
Class for 3D vectors.
Definition: V3D.h:34
std::shared_ptr< PeakTransform > PeakTransform_sptr
Typedef for a PeakTransform wrapped in a shared_pointer.
Definition: PeakTransform.h:59
SpecialCoordinateSystem
Special coordinate systems for Q3D.