16 : m_frame(frame), m_algorithmName(
std::move(algorithmName)), m_algorithmVersion(algorithmVersion) {}
34 root[
"shape"] = shape;
37 root[
"frame"] =
frame;
PeakShapeBase : Base class for concrete PeakShapes containing common code.
Mantid::Kernel::SpecialCoordinateSystem m_frame
Special coordinate system.
std::string m_algorithmName
Generating algorithm name.
std::string algorithmName() const override
Get the name of the algorithm used to make this shape.
void buildCommon(Json::Value &root) const
Build common parts of outgoing JSON serialization.
bool operator==(const PeakShapeBase &other) const
Equals operator.
Kernel::SpecialCoordinateSystem frame() const override
Get the coordinate frame.
int algorithmVersion() const override
Get the version of the algorithm used to make this shape.
PeakShapeBase(Kernel::SpecialCoordinateSystem frame, std::string algorithmName=std::string(), int algorithmVersion=-1)
Constructor.
int m_algorithmVersion
Generating algorithm version.
virtual std::string shapeName() const =0
Shape name.
SpecialCoordinateSystem
Special coordinate systems for Q3D.