Mantid
Loading...
Searching...
No Matches
PeakTransformQLab.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_lab_x", "Q_lab_y", regex("^Q_lab_x.*$"), regex("^Q_lab_y.*$"), regex("^Q_lab_z.*$")) {}
16
17PeakTransformQLab::PeakTransformQLab(const std::string &xPlotLabel, const std::string &yPlotLabel)
18 : PeakTransform(xPlotLabel, yPlotLabel, regex("^Q_lab_x.*$"), regex("^Q_lab_y.*$"), regex("^Q_lab_z.*$")) {}
19
23PeakTransform_sptr PeakTransformQLab::clone() const { return std::make_shared<PeakTransformQLab>(*this); }
24
31}
32
37} // namespace Mantid::Geometry
Structure describing a single-crystal peak.
Definition: IPeak.h:26
virtual Mantid::Kernel::V3D getQLabFrame() const =0
Mantid::Kernel::SpecialCoordinateSystem getCoordinateSystem() const override
Getter for the special coordinate representation of this transform type.
PeakTransform_sptr clone() const override
Virtual constructor.
Mantid::Kernel::V3D transformPeak(const Mantid::Geometry::IPeak &peak) const override
Transform peak.
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.