Mantid
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
Mantid::Geometry::PeakTransformQSample Class Reference

Used to remap coordinates into a form consistent with an axis reordering. More...

#include <PeakTransformQSample.h>

Inheritance diagram for Mantid::Geometry::PeakTransformQSample:
Mantid::Geometry::PeakTransform

Public Member Functions

PeakTransform_sptr clone () const override
 Clone the PeakTransformQSample. More...
 
Mantid::Kernel::SpecialCoordinateSystem getCoordinateSystem () const override
 Getter for the special coordinate representation of this transform type. More...
 
std::string getFriendlyName () const override
 Getter for the transform name. More...
 
 PeakTransformQSample ()
 Constructor. More...
 
 PeakTransformQSample (const std::string &xPlotLabel, const std::string &yPlotLabel)
 Constructor. More...
 
Mantid::Kernel::V3D transformPeak (const Mantid::Geometry::IPeak &peak) const override
 Transform peak. More...
 
- Public Member Functions inherited from Mantid::Geometry::PeakTransform
virtual std::shared_ptr< PeakTransformclone () 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 &regexOne, const boost::regex &regexTwo, const boost::regex &regexThree)
 
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
 

Static Public Member Functions

static std::string name ()
 Transform name. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Mantid::Geometry::PeakTransform
 PeakTransform (const PeakTransform &)=default
 
- Protected Attributes inherited from Mantid::Geometry::PeakTransform
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
 

Detailed Description

Used to remap coordinates into a form consistent with an axis reordering.

Definition at line 18 of file PeakTransformQSample.h.

Constructor & Destructor Documentation

◆ PeakTransformQSample() [1/2]

Mantid::Geometry::PeakTransformQSample::PeakTransformQSample ( )

Constructor.

Definition at line 14 of file PeakTransformQSample.cpp.

◆ PeakTransformQSample() [2/2]

Mantid::Geometry::PeakTransformQSample::PeakTransformQSample ( const std::string &  xPlotLabel,
const std::string &  yPlotLabel 
)

Constructor.

Definition at line 18 of file PeakTransformQSample.cpp.

Member Function Documentation

◆ clone()

PeakTransform_sptr Mantid::Geometry::PeakTransformQSample::clone ( ) const
overridevirtual

Clone the PeakTransformQSample.

Implements Mantid::Geometry::PeakTransform.

Definition at line 25 of file PeakTransformQSample.cpp.

◆ getCoordinateSystem()

Mantid::Kernel::SpecialCoordinateSystem Mantid::Geometry::PeakTransformQSample::getCoordinateSystem ( ) const
overridevirtual

Getter for the special coordinate representation of this transform type.

Returns
Special coordinate system associated with this type of transform.

Implements Mantid::Geometry::PeakTransform.

Definition at line 38 of file PeakTransformQSample.cpp.

References Mantid::Kernel::QSample.

◆ getFriendlyName()

std::string Mantid::Geometry::PeakTransformQSample::getFriendlyName ( ) const
inlineoverridevirtual

Getter for the transform name.

Implements Mantid::Geometry::PeakTransform.

Definition at line 30 of file PeakTransformQSample.h.

◆ name()

static std::string Mantid::Geometry::PeakTransformQSample::name ( )
inlinestatic

Transform name.

Definition at line 21 of file PeakTransformQSample.h.

◆ transformPeak()

Mantid::Kernel::V3D Mantid::Geometry::PeakTransformQSample::transformPeak ( const Mantid::Geometry::IPeak peak) const
overridevirtual

Transform peak.

Parameters
peak: peak to transform according to internal mapping.
Returns
re-mapped coordinates.

Implements Mantid::Geometry::PeakTransform.

Definition at line 31 of file PeakTransformQSample.cpp.

References Mantid::Geometry::IPeak::getQSampleFrame(), and Mantid::Geometry::PeakTransform::transform().


The documentation for this class was generated from the following files: