BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IClusteredParticles.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/Particle/IClusteredParticles.h
6 //! @brief Defines class IClusteredParticles.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************** //
14 
15 #ifndef BORNAGAIN_CORE_PARTICLE_ICLUSTEREDPARTICLES_H
16 #define BORNAGAIN_CORE_PARTICLE_ICLUSTEREDPARTICLES_H
17 
20 
21 class IFormFactor;
22 class IRotation;
23 
24 //! An ordered assembly of particles. Currently, the only child class is Crystal.
25 //! @ingroup samples_internal
26 
28 {
29 public:
30  IClusteredParticles* clone() const override = 0;
31 
32  //! Creates a total form factor for the mesocrystal with a specific shape and content
33  //! The bulk content of the mesocrystal is encapsulated by the IClusteredParticles object itself
35  const kvector_t& /*translation*/) const = 0;
36 
37  //! Creates region information with volumetric densities instead of absolute volume
38  //! These densities need to be multiplied by the total mesocrystal volume
39  virtual std::vector<HomogeneousRegion> homogeneousRegions() const = 0;
40 };
41 
42 #endif // BORNAGAIN_CORE_PARTICLE_ICLUSTEREDPARTICLES_H
Defines struct HomogeneousRegion, and declares fct createAveragedMaterial.
Defines interface class ISample.
An ordered assembly of particles.
IClusteredParticles * clone() const override=0
Returns a clone of this ISample object.
virtual std::vector< HomogeneousRegion > homogeneousRegions() const =0
Creates region information with volumetric densities instead of absolute volume These densities need ...
virtual IFormFactor * createTotalFormFactor(const IFormFactor &, const IRotation *, const kvector_t &) const =0
Creates a total form factor for the mesocrystal with a specific shape and content The bulk content of...
Pure virtual base class for all form factors.
Definition: IFormFactor.h:40
Pure virtual interface for rotations.
Definition: Rotations.h:27
Pure virtual base class for sample components and properties related to scattering.
Definition: ISample.h:28