BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
A composition of particles at fixed positions.
Public Member Functions | |
ParticleComposition () | |
~ParticleComposition () override | |
void | addParticle (const IParticle &particle) |
void | addParticle (const IParticle &particle, R3 position) |
void | addParticles (const IParticle &particle, std::vector< R3 > positions) |
std::string | className () const final |
ParticleComposition * | clone () const override |
size_t | nbrParticles () const |
Returns number of different particles. More... | |
std::vector< const INode * > | nodeChildren () const override |
std::vector< const IParticle * > | particles () const |
ParticleComposition::ParticleComposition | ( | ) |
|
override |
void ParticleComposition::addParticle | ( | const IParticle & | particle | ) |
void ParticleComposition::addParticle | ( | const IParticle & | particle, |
R3 | position | ||
) |
void ParticleComposition::addParticles | ( | const IParticle & | particle, |
std::vector< R3 > | positions | ||
) |
|
final |
|
override |
size_t ParticleComposition::nbrParticles | ( | ) | const |
Returns number of different particles.
|
override |
std::vector<const IParticle*> ParticleComposition::particles | ( | ) | const |