-
Notifications
You must be signed in to change notification settings - Fork 122
/
PeakTransformQLab.h
48 lines (43 loc) · 1.49 KB
/
PeakTransformQLab.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef MANTID_API_PeakTransformQLab_H_
#define MANTID_API_PeakTransformQLab_H_
#include "MantidAPI/PeakTransform.h"
#include "MantidAPI/ConcretePeakTransformFactory.h"
namespace Mantid
{
namespace API
{
/**
@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);
/// Destructor
virtual ~PeakTransformQLab();
/// Copy constructor
PeakTransformQLab(const PeakTransformQLab& other);
/// Assigment
PeakTransformQLab & operator=(const PeakTransformQLab & other);
/// Virtual constructor
PeakTransform_sptr clone() const;
/// Transform peak.
Mantid::Kernel::V3D transformPeak(const Mantid::API::IPeak& peak) const;
/// Get the transform friendly name.
virtual std::string getFriendlyName() const
{
return name();
}
/// Getter for the special coordinate representation of this transform type.
Mantid::API::SpecialCoordinateSystem getCoordinateSystem() const;
};
/// Typedef a factory for type of PeaksTransform.
typedef ConcretePeakTransformFactory<PeakTransformQLab> PeakTransformQLabFactory;
}
}
#endif /* MANTID_API_PeakTransformQLab_H_ */