Mantid
Loading...
Searching...
No Matches
NoShape.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 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 +
7#pragma once
8
9#include "MantidDataObjects/DllConfig.h"
11
12namespace Mantid {
13namespace DataObjects {
14
17class MANTID_DATAOBJECTS_DLL NoShape : public Mantid::Geometry::PeakShape {
18
19public:
21 std::string toJSON() const override;
23 NoShape *clone() const override;
25 std::string algorithmName() const override;
27 int algorithmVersion() const override;
29 std::string shapeName() const override;
31 Kernel::SpecialCoordinateSystem frame() const override;
32 boost::optional<double> radius(RadiusType) const override { return boost::optional<double>{}; }
34 static const std::string noShapeName();
35};
36
37} // namespace DataObjects
38} // namespace Mantid
PeakShapeNone : No peak shape.
Definition: NoShape.h:17
boost::optional< double > radius(RadiusType) const override
Radius.
Definition: NoShape.h:32
PeakShape : Abstract type to describes the shape of a peak.
Definition: PeakShape.h:20
RadiusType
For selecting different radius types.
Definition: PeakShape.h:35
SpecialCoordinateSystem
Special coordinate systems for Q3D.
Helper class which provides the Collimation Length for SANS instruments.