15 #ifndef BORNAGAIN_SAMPLE_HARDPARTICLE_SPHERE_H
16 #define BORNAGAIN_SAMPLE_HARDPARTICLE_SPHERE_H
27 Sphere(std::vector<double> P,
bool position_at_center =
false);
30 std::string
className() const final {
return "Sphere"; }
32 std::vector<ParaMeta>
parDefs() const final {
return {{
"Radius",
"nm",
"radius", 0, +
INF, 0}}; }
Abstract base class for rotations.
std::vector< ParaMeta > parDefs() const final
Returns the parameter definitions, to be hard-coded in each leaf class.
double topZ(const IRotation *rotation) const override
Sphere * clone() const override
Returns a clone of this ISampleNode object.
std::string className() const final
Returns the class name, to be hard-coded in each leaf class that inherits from INode.
bool canSliceAnalytically(const IRotation *) const override
Default implementation only allows rotations along z-axis.
bool m_position_at_center
Sphere(double radius, bool position_at_center=false)
double bottomZ(const IRotation *rotation) const override
double radialExtension() const override
Returns the (approximate in some cases) radial size of the particle of this form factor's shape....
complex_t formfactor_at_bottom(C3 q) const override