BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
ParticleComposition Class Reference

Description

A composition of particles at fixed positions.

Inheritance diagram for ParticleComposition:

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
 
ParticleCompositionclone () 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
 

Constructor & Destructor Documentation

◆ ParticleComposition()

ParticleComposition::ParticleComposition ( )

◆ ~ParticleComposition()

ParticleComposition::~ParticleComposition ( )
override

Member Function Documentation

◆ addParticle() [1/2]

void ParticleComposition::addParticle ( const IParticle &  particle)

◆ addParticle() [2/2]

void ParticleComposition::addParticle ( const IParticle &  particle,
R3  position 
)

◆ addParticles()

void ParticleComposition::addParticles ( const IParticle &  particle,
std::vector< R3 positions 
)

◆ className()

std::string ParticleComposition::className ( ) const
final

◆ clone()

ParticleComposition* ParticleComposition::clone ( ) const
override

◆ nbrParticles()

size_t ParticleComposition::nbrParticles ( ) const

Returns number of different particles.

◆ nodeChildren()

std::vector<const INode*> ParticleComposition::nodeChildren ( ) const
override

◆ particles()

std::vector<const IParticle*> ParticleComposition::particles ( ) const