Newer
Older
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2009 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
Gigg, Martyn Anthony
committed
//--------------------------------
// Includes
//--------------------------------
#include "MantidAPI/Algorithm.h"
namespace API {
class ExperimentInfo;
}
Gigg, Martyn Anthony
committed
/**
This class allows the shape of the sample to be defined by using the allowed
Gigg, Martyn Anthony
committed
@author Martyn Gigg, Tessella Support Services plc
@date 13/03/2009
*/
class DLLExport CreateSampleShape : public API::Algorithm {
public:
static void setSampleShape(API::ExperimentInfo &expt,
const std::string &shapeXML);
Gigg, Martyn Anthony
committed
public:
const std::string name() const override { return "CreateSampleShape"; }
const std::string summary() const override {
return "Create a shape object to model the sample.";
}
int version() const override { return (1); }
const std::vector<std::string> seeAlso() const override {
return {"SetSample", "AbsorptionCorrection", "SetSampleMaterial",
"CopySample"};
const std::string category() const override { return "Sample;"; }
const std::string alias() const override { return "SetSampleShape"; }
Gigg, Martyn Anthony
committed
private:
void init() override;
void exec() override;
Gigg, Martyn Anthony
committed
};
} // namespace DataHandling
} // namespace Mantid