Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Mantid::DataObjects::PeakShapeSphericalFactory Class Reference

PeakShapeSphericalFactory : Factory for spherical peak shapes for de-serializing from JSON. More...

#include <PeakShapeSphericalFactory.h>

Inheritance diagram for Mantid::DataObjects::PeakShapeSphericalFactory:
Mantid::DataObjects::PeakShapeFactory

Public Member Functions

Mantid::Geometry::PeakShapecreate (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::PeakShapecreate (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...
 

Detailed Description

PeakShapeSphericalFactory : Factory for spherical peak shapes for de-serializing from JSON.

Definition at line 22 of file PeakShapeSphericalFactory.h.

Member Function Documentation

◆ create()

Mantid::Geometry::PeakShape * Mantid::DataObjects::PeakShapeSphericalFactory::create ( const std::string &  source) const
overridevirtual

Make product.

PeakShapeSphericalFactory::create : Creational method.

Parameters
source: Source JSON
Returns
PeakShape object

Implements Mantid::DataObjects::PeakShapeFactory.

Definition at line 23 of file PeakShapeSphericalFactory.cpp.

References m_successor, radius, and Mantid::DataObjects::PeakShapeSpherical::sphereShapeName().

◆ setSuccessor()

void Mantid::DataObjects::PeakShapeSphericalFactory::setSuccessor ( PeakShapeFactory_const_sptr  successorFactory)
override

Set a successor should this factory be unsuitable.

Set successor.

Parameters
successorFactory: successor

Definition at line 68 of file PeakShapeSphericalFactory.cpp.

References m_successor.

Member Data Documentation

◆ m_successor

PeakShapeFactory_const_sptr Mantid::DataObjects::PeakShapeSphericalFactory::m_successor
private

Successor factory.

Definition at line 31 of file PeakShapeSphericalFactory.h.

Referenced by create(), and setSuccessor().


The documentation for this class was generated from the following files: