Mantid
|
Used to remap coordinates into a form consistent with an axis reordering. More...
#include <PeakTransform.h>
Public Member Functions | |
virtual std::shared_ptr< PeakTransform > | clone () const =0 |
Virtual constructor. More... | |
virtual Mantid::Kernel::SpecialCoordinateSystem | getCoordinateSystem () const =0 |
Getter for the special coordinate representation of this transform type. More... | |
boost::regex | getFreePeakAxisRegex () const |
Get a regex to find the axis of the free peak. More... | |
virtual std::string | getFriendlyName () const =0 |
Getter for a friendly name to describe the transform type. More... | |
PeakTransform (std::string xPlotLabel, std::string yPlotLabel, const boost::regex ®exOne, const boost::regex ®exTwo, const boost::regex ®exThree) | |
virtual Mantid::Kernel::V3D | transform (const Mantid::Kernel::V3D &original) const |
Perform Transform. More... | |
Mantid::Kernel::V3D | transformBack (const Mantid::Kernel::V3D &transformed) const |
Perform reverse transform. More... | |
virtual Mantid::Kernel::V3D | transformPeak (const Mantid::Geometry::IPeak &peak) const =0 |
Perform Transform. More... | |
virtual | ~PeakTransform ()=default |
Protected Member Functions | |
PeakTransform (const PeakTransform &)=default | |
Protected Attributes | |
boost::regex | m_FirstRegex |
int | m_indexOfPeakX |
int | m_indexOfPeakY |
int | m_indexOfPeakZ |
int | m_indexOfPlotX |
int | m_indexOfPlotY |
int | m_indexOfPlotZ |
boost::regex | m_SecondRegex |
boost::regex | m_ThirdRegex |
std::string | m_xPlotLabel |
std::string | m_yPlotLabel |
Used to remap coordinates into a form consistent with an axis reordering.
Definition at line 21 of file PeakTransform.h.
Mantid::Geometry::PeakTransform::PeakTransform | ( | std::string | xPlotLabel, |
std::string | yPlotLabel, | ||
const boost::regex & | regexOne, | ||
const boost::regex & | regexTwo, | ||
const boost::regex & | regexThree | ||
) |
Definition at line 12 of file PeakTransform.cpp.
References m_FirstRegex, m_indexOfPeakX, m_indexOfPeakY, m_indexOfPeakZ, m_indexOfPlotX, m_indexOfPlotY, m_indexOfPlotZ, m_SecondRegex, m_ThirdRegex, m_xPlotLabel, and m_yPlotLabel.
|
virtualdefault |
|
protecteddefault |
|
pure virtual |
Virtual constructor.
Implemented in Mantid::Geometry::PeakTransformHKL, Mantid::Geometry::PeakTransformQLab, and Mantid::Geometry::PeakTransformQSample.
|
pure virtual |
Getter for the special coordinate representation of this transform type.
Implemented in Mantid::Geometry::PeakTransformHKL, Mantid::Geometry::PeakTransformQLab, and Mantid::Geometry::PeakTransformQSample.
boost::regex Mantid::Geometry::PeakTransform::getFreePeakAxisRegex | ( | ) | const |
Get a regex to find the axis of the free peak.
Definition at line 83 of file PeakTransform.cpp.
References m_FirstRegex, m_indexOfPlotZ, m_SecondRegex, and m_ThirdRegex.
|
pure virtual |
Getter for a friendly name to describe the transform type.
Implemented in Mantid::Geometry::PeakTransformHKL, Mantid::Geometry::PeakTransformQLab, and Mantid::Geometry::PeakTransformQSample.
|
virtual |
Perform Transform.
Definition at line 94 of file PeakTransform.cpp.
References m_indexOfPlotX, m_indexOfPlotY, m_indexOfPlotZ, Mantid::Kernel::V3D::setX(), Mantid::Kernel::V3D::setY(), and Mantid::Kernel::V3D::setZ().
Referenced by Mantid::Geometry::PeakTransformHKL::transformPeak(), Mantid::Geometry::PeakTransformQLab::transformPeak(), and Mantid::Geometry::PeakTransformQSample::transformPeak().
Mantid::Kernel::V3D Mantid::Geometry::PeakTransform::transformBack | ( | const Mantid::Kernel::V3D & | transformed | ) | const |
Perform reverse transform.
Definition at line 103 of file PeakTransform.cpp.
References m_indexOfPeakX, m_indexOfPeakY, m_indexOfPeakZ, Mantid::Kernel::V3D::setX(), Mantid::Kernel::V3D::setY(), and Mantid::Kernel::V3D::setZ().
|
pure virtual |
Perform Transform.
Implemented in Mantid::Geometry::PeakTransformHKL, Mantid::Geometry::PeakTransformQLab, and Mantid::Geometry::PeakTransformQSample.
|
protected |
Definition at line 53 of file PeakTransform.h.
Referenced by getFreePeakAxisRegex(), and PeakTransform().
|
protected |
Definition at line 50 of file PeakTransform.h.
Referenced by PeakTransform(), and transformBack().
|
protected |
Definition at line 51 of file PeakTransform.h.
Referenced by PeakTransform(), and transformBack().
|
protected |
Definition at line 52 of file PeakTransform.h.
Referenced by PeakTransform(), and transformBack().
|
protected |
Definition at line 46 of file PeakTransform.h.
Referenced by PeakTransform(), and transform().
|
protected |
Definition at line 47 of file PeakTransform.h.
Referenced by PeakTransform(), and transform().
|
protected |
Definition at line 48 of file PeakTransform.h.
Referenced by getFreePeakAxisRegex(), PeakTransform(), and transform().
|
protected |
Definition at line 54 of file PeakTransform.h.
Referenced by getFreePeakAxisRegex(), and PeakTransform().
|
protected |
Definition at line 55 of file PeakTransform.h.
Referenced by getFreePeakAxisRegex(), and PeakTransform().
|
protected |
Definition at line 43 of file PeakTransform.h.
Referenced by PeakTransform().
|
protected |
Definition at line 44 of file PeakTransform.h.
Referenced by PeakTransform().