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