16 : m_frame(frame), m_algorithmName(
std::move(algorithmName)), m_algorithmVersion(algorithmVersion) {}
33 Json::Value frameJson(this->
frame());
34 root[
"shape"] = shapeJson;
35 root[
"algorithm_name"] = algorithmNameJson;
36 root[
"algorithm_version"] = algorithmVersionJson;
37 root[
"frame"] = frameJson;
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.