Newer
Older
#ifndef MANTID_GEOMETRY_PEAKTRANSFORMQLab_H_
#define MANTID_GEOMETRY_PEAKTRANSFORMQLab_H_
#include "MantidKernel/System.h"
#include "MantidGeometry/Crystal/PeakTransform.h"
#include "MantidGeometry/Crystal/ConcretePeakTransformFactory.h"
/**
@class PeakTransformQLab
Used to remap coordinates into a form consistent with an axis reordering.
*/
class DLLExport PeakTransformQLab : public PeakTransform {
public:
static std::string name() { return "Q (lab frame)"; }
/// Constructor
PeakTransformQLab();
/// Constructor
PeakTransformQLab(const std::string &xPlotLabel,
const std::string &yPlotLabel);
/// Virtual constructor
PeakTransform_sptr clone() const override;
Mantid::Kernel::V3D
transformPeak(const Mantid::Geometry::IPeak &peak) const override;
/// Get the transform friendly name.
std::string getFriendlyName() const override { return name(); }
/// Getter for the special coordinate representation of this transform type.
Mantid::Kernel::SpecialCoordinateSystem getCoordinateSystem() const override;
/// Typedef a factory for type of PeaksTransform.
typedef ConcretePeakTransformFactory<PeakTransformQLab>
PeakTransformQLabFactory;
}
#endif /* MANTID_GEOMETRY_PEAKTRANSFORMQLab_H_ */