15 #ifndef BORNAGAIN_CORE_PARTICLE_PARTICLECOMPOSITION_H
16 #define BORNAGAIN_CORE_PARTICLE_PARTICLECOMPOSITION_H
44 std::vector<const INode*>
getChildren() const override final;
Defines interface IParticle.
Visitor interface to visit ISample objects.
Pure virtual base class for Particle, ParticleComposition, ParticleCoreShell, MesoCrystal.
kvector_t position() const
Returns particle position.
A composition of particles at fixed positions.
ParticleComposition * clone() const override final
Returns a clone of this ISample object.
void addParticle(const IParticle &particle)
std::vector< std::unique_ptr< IParticle > > m_particles
size_t check_index(size_t index) const
size_t nbrParticles() const
Returns number of different particles.
void addParticlePointer(IParticle *p_particle)
For internal use.
SafePointerVector< IParticle > decompose() const override final
Decompose in constituent IParticle objects.
std::vector< const INode * > getChildren() const override final
Returns a vector of children (const).
void accept(INodeVisitor *visitor) const override final
Calls the INodeVisitor's visit method.
ParticleLimits bottomTopZ() const override final
Top and bottom z-coordinate.
void addParticles(const IParticle &particle, std::vector< kvector_t > positions)
IFormFactor * createFormFactor() const override final
Creates a form factor for this particle.
A vector of pointers, owned by *this, with methods to handle them safely.
Vertical extension of a particle, specified by bottom and top z coordinate.