9#include "MantidGeometry/DllConfig.h"
37 Sphere *doClone()
const override;
46 std::unique_ptr<Sphere> clone()
const;
48 std::string
className()
const override {
return "Sphere"; }
52 int setSurface(
const std::string &)
override;
59 double distance(
const Kernel::V3D &)
const override;
72 void setBaseEqn()
override;
74 void write(std::ostream &)
const override;
75 void getBoundingBox(
double &xmax,
double &ymax,
double &zmax,
double &xmin,
double &ymin,
double &zmin)
override;
78 constexpr static int g_NSLICES = 5;
80 constexpr static int g_NSTACKS = 5;
81#ifdef ENABLE_OPENCASCADE
82 TopoDS_Shape createShape()
override;
virtual void Accept(const Surface &)=0
Accept a surface.
Holds a basic quadratic surface.
Holds a Sphere as vector form.
double getRadius() const
Get Radius.
std::string className() const override
Effective typename.
Kernel::V3D m_centre
Point for centre.
void setRadius(const double &r)
Set Radius.
Kernel::V3D getCentre() const
Get Centre.
double m_radius
Radius of sphere.
Sphere & operator=(const Sphere &)=delete
void acceptVisitor(BaseVisit &A) const override
Accept visitor for line calculation.
Sphere(const Sphere &)=default
Helper class which provides the Collimation Length for SANS instruments.