15 #ifndef BORNAGAIN_SAMPLE_HARDPARTICLE_BOX_H
16 #define BORNAGAIN_SAMPLE_HARDPARTICLE_BOX_H
27 Box(std::vector<double> P);
30 std::string
className() const final {
return "Box"; }
32 std::vector<ParaMeta>
parDefs() const final
34 return {{
"Length",
"nm",
"side length in x direction", 0, +
INF, 0},
35 {
"Width",
"nm",
"side length in y direction", 0, +
INF, 0},
36 {
"Height",
"nm",
"side length in z direction", 0, +
INF, 0}};
A rectangular prism (parallelepiped).
double radialExtension() const override
Returns the (approximate in some cases) radial size of the particle of this form factor's shape....
std::string className() const final
Returns the class name, to be hard-coded in each leaf class that inherits from INode.
Box * clone() const override
Returns a clone of this ISampleNode object.
Box(double length, double width, double height)
std::vector< ParaMeta > parDefs() const final
Returns the parameter definitions, to be hard-coded in each leaf class.
double height() const override
complex_t formfactor_at_bottom(C3 q) const override
double volume() const override