|
Mantid
|
PeakShapeDetectorBinFactory : Factory for DetectorBin peak shapes for de-serializing from JSON. More...
#include <PeakShapeDetectorBinFactory.h>
Public Member Functions | |
| Mantid::Geometry::PeakShape * | create (const std::string &source) const override |
| Make product. | |
| void | setSuccessor (PeakShapeFactory_const_sptr successorFactory) override |
| Set a successor should this factory be unsuitable. | |
Public Member Functions inherited from Mantid::DataObjects::PeakShapeFactory | |
| virtual void | setSuccessor (std::shared_ptr< const PeakShapeFactory > successorFactory)=0 |
| Set the successor factory. | |
| virtual | ~PeakShapeFactory ()=default |
| Destructor. | |
Private Attributes | |
| PeakShapeFactory_const_sptr | m_successor |
| Successor factory. | |
PeakShapeDetectorBinFactory : Factory for DetectorBin peak shapes for de-serializing from JSON.
Definition at line 22 of file PeakShapeDetectorBinFactory.h.
|
overridevirtual |
Make product.
Create the PeakShapeDetectorBin.
| source | : source JSON |
Implements Mantid::DataObjects::PeakShapeFactory.
Definition at line 24 of file PeakShapeDetectorBinFactory.cpp.
References Mantid::DataObjects::PeakShapeDetectorBin::detectorBinShapeName(), detectorList, index, and m_successor.
|
override |
Set a successor should this factory be unsuitable.
Set successor.
| successorFactory | : successor |
Definition at line 63 of file PeakShapeDetectorBinFactory.cpp.
References m_successor.
|
private |
Successor factory.
Definition at line 31 of file PeakShapeDetectorBinFactory.h.
Referenced by create(), and setSuccessor().