BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Functions | |
void | applyParticleColor (const Particle &particle, RealSpace::Particles::Particle &particle3D, double alpha=1) |
void | applyParticleCoreShellTransformations (const Particle &particle, RealSpace::Particles::Particle &particle3D, const ParticleCoreShell &particleCoreShell, const kvector_t &origin=kvector_t(0, 0, 0)) |
Apply transformations (translation, rotation) to a particle (core/shell) in a ParticleCoreShell. More... | |
void | applyParticleTransformations (const Particle &particle, RealSpace::Particles::Particle &particle3D, const kvector_t &origin=kvector_t(0, 0, 0)) |
Apply transformations (translation, rotation) to a 3D Particle or to a particle belonging to a ParticleComposition. More... | |
QVector< double > | computeCumulativeAbundances (const SessionItem &layoutItem) |
RealSpace::Vector3D | implementParticleRotationfromIRotation (const IRotation *&rotation) |
Particle3DContainer | mesoCrystal3DContainer (const MesoCrystalItem &mesoCrystalItem, double total_abundance=1.0, const QVector3D &origin={}) |
std::vector< Particle3DContainer > | particle3DContainerVector (const SessionItem &layoutItem, const QVector3D &origin={}) |
Particle3DContainer | particleComposition3DContainer (const ParticleComposition &particleComposition3DContainer, double total_abundance=1.0, const QVector3D &origin={}) |
Particle3DContainer | particleCoreShell3DContainer (const ParticleCoreShell &particleCoreShell, double total_abundance=1.0, const QVector3D &origin={}) |
std::vector< Particle3DContainer > | particleDistribution3DContainer (const ParticleDistribution &particleDistribution, double total_abundance=1.0, const QVector3D &origin={}) |
void | populateParticlesAtLatticePositions (const std::vector< std::vector< double >> &lattice_positions, const std::vector< Particle3DContainer > &particle3DContainer_vector, RealSpaceModel *model, const SceneGeometry &sceneGeometry, const RealSpaceBuilder *builder3D) |
Particle3DContainer | singleParticle3DContainer (const Particle &particle, double total_abundance=1.0, const QVector3D &origin={}) |
void RealSpaceBuilderUtils::applyParticleColor | ( | const Particle & | particle, |
RealSpace::Particles::Particle & | particle3D, | ||
double | alpha = 1 |
||
) |
Definition at line 202 of file RealSpaceBuilderUtils.cpp.
References RealSpace::Object::color, MaterialItem::color(), Material::getName(), Particle::material(), MaterialModel::materialFromName(), and AppSvc::materialModel().
Referenced by particleCoreShell3DContainer(), and singleParticle3DContainer().
void RealSpaceBuilderUtils::applyParticleCoreShellTransformations | ( | const Particle & | particle, |
RealSpace::Particles::Particle & | particle3D, | ||
const ParticleCoreShell & | particleCoreShell, | ||
const kvector_t & | origin = kvector_t(0, 0, 0) |
||
) |
Apply transformations (translation, rotation) to a particle (core/shell) in a ParticleCoreShell.
Definition at line 172 of file RealSpaceBuilderUtils.cpp.
References Particle::clone(), implementParticleRotationfromIRotation(), IParticle::position(), IParticle::rotation(), RealSpace::Particles::Particle::transform(), BasicVector3D< T >::x(), BasicVector3D< T >::y(), and BasicVector3D< T >::z().
Referenced by particleCoreShell3DContainer().
void RealSpaceBuilderUtils::applyParticleTransformations | ( | const Particle & | particle, |
RealSpace::Particles::Particle & | particle3D, | ||
const kvector_t & | origin = kvector_t(0, 0, 0) |
||
) |
Apply transformations (translation, rotation) to a 3D Particle or to a particle belonging to a ParticleComposition.
Definition at line 145 of file RealSpaceBuilderUtils.cpp.
References RealSpace::Particles::Particle::addTransform(), implementParticleRotationfromIRotation(), IParticle::position(), IParticle::rotation(), BasicVector3D< T >::x(), BasicVector3D< T >::y(), and BasicVector3D< T >::z().
Referenced by singleParticle3DContainer().
QVector< double > RealSpaceBuilderUtils::computeCumulativeAbundances | ( | const SessionItem & | layoutItem | ) |
Definition at line 67 of file RealSpaceBuilderUtils.cpp.
References SessionItem::getItems(), ParticleItem::P_ABUNDANCE, and ParticleLayoutItem::T_PARTICLES.
Referenced by particle3DContainerVector().
RealSpace::Vector3D RealSpaceBuilderUtils::implementParticleRotationfromIRotation | ( | const IRotation *& | rotation | ) |
Definition at line 122 of file RealSpaceBuilderUtils.cpp.
References Units::deg2rad().
Referenced by applyParticleCoreShellTransformations(), applyParticleTransformations(), and RealSpaceMesoCrystal::populateMesoCrystal().
Particle3DContainer RealSpaceBuilderUtils::mesoCrystal3DContainer | ( | const MesoCrystalItem & | mesoCrystalItem, |
double | total_abundance = 1.0 , |
||
const QVector3D & | origin = {} |
||
) |
Definition at line 417 of file RealSpaceBuilderUtils.cpp.
References RealSpaceMesoCrystal::populateMesoCrystal().
Referenced by particle3DContainerVector(), RealSpaceMesoCrystal::populateMesoCrystal(), and RealSpaceBuilder::populateParticleFromParticleItem().
std::vector< Particle3DContainer > RealSpaceBuilderUtils::particle3DContainerVector | ( | const SessionItem & | layoutItem, |
const QVector3D & | origin = {} |
||
) |
Definition at line 216 of file RealSpaceBuilderUtils.cpp.
References computeCumulativeAbundances(), ParticleItem::createParticle(), ParticleCompositionItem::createParticleComposition(), ParticleCoreShellItem::createParticleCoreShell(), ParticleDistributionItem::createParticleDistribution(), Particle3DContainer::cumulativeAbundance(), SessionItem::getItems(), mesoCrystal3DContainer(), particleComposition3DContainer(), particleCoreShell3DContainer(), particleDistribution3DContainer(), Particle3DContainer::setCumulativeAbundance(), singleParticle3DContainer(), MesoCrystalItem::T_BASIS_PARTICLE, ParticleCoreShellItem::T_CORE, ParticleCompositionItem::T_PARTICLES, ParticleDistributionItem::T_PARTICLES, ParticleLayoutItem::T_PARTICLES, and ParticleCoreShellItem::T_SHELL.
Referenced by RealSpaceBuilder::populateLayout().
Particle3DContainer RealSpaceBuilderUtils::particleComposition3DContainer | ( | const ParticleComposition & | particleComposition3DContainer, |
double | total_abundance = 1.0 , |
||
const QVector3D & | origin = {} |
||
) |
Definition at line 342 of file RealSpaceBuilderUtils.cpp.
References Particle3DContainer::addParticle(), ParticleComposition::clone(), Particle3DContainer::containerSize(), Particle3DContainer::createParticle(), Particle3DContainer::particle3DBlend(), particleCoreShell3DContainer(), Particle3DContainer::setCumulativeAbundance(), Particle3DContainer::setParticleType(), and singleParticle3DContainer().
Referenced by particle3DContainerVector(), particleDistribution3DContainer(), RealSpaceMesoCrystal::populateMesoCrystal(), and RealSpaceBuilder::populateParticleFromParticleItem().
Particle3DContainer RealSpaceBuilderUtils::particleCoreShell3DContainer | ( | const ParticleCoreShell & | particleCoreShell, |
double | total_abundance = 1.0 , |
||
const QVector3D & | origin = {} |
||
) |
Definition at line 305 of file RealSpaceBuilderUtils.cpp.
References Particle3DContainer::addParticle(), applyParticleColor(), applyParticleCoreShellTransformations(), ParticleCoreShell::clone(), TransformTo3D::createParticlefromIFormFactor(), Particle3DContainer::setCumulativeAbundance(), and Particle3DContainer::setParticleType().
Referenced by particle3DContainerVector(), particleComposition3DContainer(), particleDistribution3DContainer(), RealSpaceMesoCrystal::populateMesoCrystal(), and RealSpaceBuilder::populateParticleFromParticleItem().
std::vector< Particle3DContainer > RealSpaceBuilderUtils::particleDistribution3DContainer | ( | const ParticleDistribution & | particleDistribution, |
double | total_abundance = 1.0 , |
||
const QVector3D & | origin = {} |
||
) |
Definition at line 382 of file RealSpaceBuilderUtils.cpp.
References ParticleDistribution::generateParticles(), particleComposition3DContainer(), particleCoreShell3DContainer(), and singleParticle3DContainer().
Referenced by particle3DContainerVector().
void RealSpaceBuilderUtils::populateParticlesAtLatticePositions | ( | const std::vector< std::vector< double >> & | lattice_positions, |
const std::vector< Particle3DContainer > & | particle3DContainer_vector, | ||
RealSpaceModel * | model, | ||
const SceneGeometry & | sceneGeometry, | ||
const RealSpaceBuilder * | builder3D | ||
) |
Definition at line 83 of file RealSpaceBuilderUtils.cpp.
References SceneGeometry::layer_bottom_thickness(), SceneGeometry::layer_size(), SceneGeometry::layer_top_thickness(), and RealSpaceBuilder::populateParticleFromParticle3DContainer().
Referenced by RealSpaceBuilder::populateLayout().
Particle3DContainer RealSpaceBuilderUtils::singleParticle3DContainer | ( | const Particle & | particle, |
double | total_abundance = 1.0 , |
||
const QVector3D & | origin = {} |
||
) |
Definition at line 283 of file RealSpaceBuilderUtils.cpp.
References Particle3DContainer::addParticle(), applyParticleColor(), applyParticleTransformations(), Particle::clone(), TransformTo3D::createParticlefromIFormFactor(), Particle3DContainer::setCumulativeAbundance(), and Particle3DContainer::setParticleType().
Referenced by particle3DContainerVector(), particleComposition3DContainer(), particleDistribution3DContainer(), RealSpaceMesoCrystal::populateMesoCrystal(), and RealSpaceBuilder::populateParticleFromParticleItem().