Mantid
Loading...
Searching...
No Matches
PeakNoShapeFactory.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
9
10namespace Mantid::DataObjects {
11
12void PeakNoShapeFactory::setSuccessor(std::shared_ptr<const PeakShapeFactory> /*successorFactory*/) {}
13
18Mantid::Geometry::PeakShape *PeakNoShapeFactory::create(const std::string & /*source*/) const { return new NoShape; }
19
20} // namespace Mantid::DataObjects
PeakShapeNone : No peak shape.
Definition: NoShape.h:17
Mantid::Geometry::PeakShape * create(const std::string &source) const override
Creational method.
void setSuccessor(std::shared_ptr< const PeakShapeFactory > successorFactory) override
Set the successor factory.
PeakShape : Abstract type to describes the shape of a peak.
Definition: PeakShape.h:20