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

PeakShapeEllipsoidFactory : Create ellipsoid peak shapes. More...

#include <PeakShapeEllipsoidFactory.h>

Inheritance diagram for Mantid::DataObjects::PeakShapeEllipsoidFactory:
Mantid::DataObjects::PeakShapeFactory

Public Member Functions

Mantid::Geometry::PeakShapecreate (const std::string &source) const override
 Create the PeakShape. More...
 
void setSuccessor (std::shared_ptr< const PeakShapeFactory > successorFactory) override
 Set successor. 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

PeakShapeEllipsoidFactory : Create ellipsoid peak shapes.

Definition at line 16 of file PeakShapeEllipsoidFactory.h.

Member Function Documentation

◆ create()

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

Create the PeakShape.

Parameters
source: source JSON
Returns
PeakShape via this factory or it's successors

Implements Mantid::DataObjects::PeakShapeFactory.

Definition at line 24 of file PeakShapeEllipsoidFactory.cpp.

References Mantid::DataObjects::PeakShapeEllipsoid::ellipsoidShapeName(), and m_successor.

◆ setSuccessor()

void Mantid::DataObjects::PeakShapeEllipsoidFactory::setSuccessor ( std::shared_ptr< const PeakShapeFactory successorFactory)
overridevirtual

Set successor.

Parameters
successorFactory: successor

Implements Mantid::DataObjects::PeakShapeFactory.

Definition at line 76 of file PeakShapeEllipsoidFactory.cpp.

References m_successor.

Member Data Documentation

◆ m_successor

PeakShapeFactory_const_sptr Mantid::DataObjects::PeakShapeEllipsoidFactory::m_successor
private

Successor factory.

Definition at line 25 of file PeakShapeEllipsoidFactory.h.

Referenced by create(), and setSuccessor().


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