BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Decorator class that adds particles to ISampleNode objects. More...
Public Member Functions | |
ParticleLayout (const IAbstractParticle &particle, double abundance=-1.0) | |
void | accept (INodeVisitor *visitor) const override |
void | addParticle (const IAbstractParticle &particle, double abundance=-1.0, const kvector_t position={}, const IRotation &rotation=IdentityRotation()) |
Adds particle to the layout with abundance, position and the rotation defined. More... | |
ParticleLayout * | clone () const override |
std::vector< const INode * > | getChildren () const override |
double | getTotalAbundance () const |
const IInterferenceFunction * | interferenceFunction () const |
SafePointerVector< IParticle > | particles () const |
Returns information on all particles (type and abundance) and generates new particles if an IAbstractParticle denotes a collection. | |
void | setInterferenceFunction (const IInterferenceFunction &interference_function) |
Adds interference functions. | |
void | setTotalParticleSurfaceDensity (double particle_density) |
Sets total particle surface density. More... | |
void | setWeight (double weight) |
Sets the relative weight of this layout. | |
double | totalParticleSurfaceDensity () const |
double | weight () const |
Returns the relative weight of this layout. | |
Decorator class that adds particles to ISampleNode objects.
void ParticleLayout::addParticle | ( | const IAbstractParticle & | particle, |
double | abundance = -1.0 , |
||
const kvector_t | position = {} , |
||
const IRotation & | rotation = IdentityRotation() |
||
) |
void ParticleLayout::setTotalParticleSurfaceDensity | ( | double | particle_density | ) |
Sets total particle surface density.
particle_density | number of particles per square nanometer |