BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 50 of file RealSpaceBuilderUtils.h.
Public Member Functions | |
BuilderUtils (std::function< QColor(const QString &)> fnColorFromMaterialName) | |
void | applyParticleColor (const Particle &particle, GUI::RealSpace::Particles::Particle &particle3D, double alpha=1) |
void | applyParticleCoreShellTransformations (const Particle &particle, GUI::RealSpace::Particles::Particle &particle3D, const ParticleCoreShell &particleCoreShell, const R3 &origin=R3(0, 0, 0)) |
Apply transformations (translation, rotation) to a particle (core/shell) in a ParticleCoreShell. More... | |
void | applyParticleTransformations (const Particle &particle, GUI::RealSpace::Particles::Particle &particle3D, const R3 &origin=R3(0, 0, 0)) |
Apply transformations (translation, rotation) to a 3D Particle or to a particle belonging to a ParticleComposition. More... | |
QVector< double > | computeCumulativeAbundances (const ParticleLayoutItem &layoutItem) |
GUI::RealSpace::Vector3D | implementParticleRotationfromIRotation (const IRotation *&rotation) |
Particle3DContainer | mesoCrystal3DContainer (const MesoCrystalItem &mesoCrystalItem, double total_abundance=1.0, const QVector3D &origin={}) |
std::vector< Particle3DContainer > | particle3DContainerVector (const ParticleLayoutItem &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={}) |
void | populateParticlesAtLatticePositions (const std::vector< std::vector< double >> &lattice_positions, const std::vector< Particle3DContainer > &particle3DContainer_vector, GUI::RealSpace::Model *model, const SceneGeometry &sceneGeometry, const RealSpaceBuilder *builder3D) |
Particle3DContainer | singleParticle3DContainer (const Particle &particle, double total_abundance=1.0, const QVector3D &origin={}) |
Private Attributes | |
std::function< QColor(const QString &)> | m_fnColorFromMaterialName |
GUI::RealSpace::BuilderUtils::BuilderUtils | ( | std::function< QColor(const QString &)> | fnColorFromMaterialName | ) |
Definition at line 57 of file RealSpaceBuilderUtils.cpp.
void GUI::RealSpace::BuilderUtils::applyParticleColor | ( | const Particle & | particle, |
GUI::RealSpace::Particles::Particle & | particle3D, | ||
double | alpha = 1 |
||
) |
void GUI::RealSpace::BuilderUtils::applyParticleCoreShellTransformations | ( | const Particle & | particle, |
GUI::RealSpace::Particles::Particle & | particle3D, | ||
const ParticleCoreShell & | particleCoreShell, | ||
const R3 & | origin = R3(0, 0, 0) |
||
) |
Apply transformations (translation, rotation) to a particle (core/shell) in a ParticleCoreShell.
Definition at line 168 of file RealSpaceBuilderUtils.cpp.
References GUI::RealSpace::Particles::Particle::transform().
void GUI::RealSpace::BuilderUtils::applyParticleTransformations | ( | const Particle & | particle, |
GUI::RealSpace::Particles::Particle & | particle3D, | ||
const R3 & | origin = R3(0, 0, 0) |
||
) |
Apply transformations (translation, rotation) to a 3D Particle or to a particle belonging to a ParticleComposition.
Definition at line 142 of file RealSpaceBuilderUtils.cpp.
References GUI::RealSpace::Particles::Particle::addTransform().
QVector< double > GUI::RealSpace::BuilderUtils::computeCumulativeAbundances | ( | const ParticleLayoutItem & | layoutItem | ) |
Definition at line 66 of file RealSpaceBuilderUtils.cpp.
References ParticleLayoutItem::particles().
GUI::RealSpace::Vector3D GUI::RealSpace::BuilderUtils::implementParticleRotationfromIRotation | ( | const IRotation *& | rotation | ) |
Definition at line 119 of file RealSpaceBuilderUtils.cpp.
Particle3DContainer GUI::RealSpace::BuilderUtils::mesoCrystal3DContainer | ( | const MesoCrystalItem & | mesoCrystalItem, |
double | total_abundance = 1.0 , |
||
const QVector3D & | origin = {} |
||
) |
Definition at line 347 of file RealSpaceBuilderUtils.cpp.
References RealSpaceMesoCrystal::populateMesoCrystal().
Referenced by particle3DContainerVector().
std::vector< Particle3DContainer > GUI::RealSpace::BuilderUtils::particle3DContainerVector | ( | const ParticleLayoutItem & | layoutItem, |
const QVector3D & | origin = {} |
||
) |
Definition at line 211 of file RealSpaceBuilderUtils.cpp.
References Particle3DContainer::createParticle(), Particle3DContainer::cumulativeAbundance(), mesoCrystal3DContainer(), ParticleLayoutItem::particles(), and Particle3DContainer::setCumulativeAbundance().
Particle3DContainer GUI::RealSpace::BuilderUtils::particleComposition3DContainer | ( | const ParticleComposition & | particleComposition3DContainer, |
double | total_abundance = 1.0 , |
||
const QVector3D & | origin = {} |
||
) |
Definition at line 309 of file RealSpaceBuilderUtils.cpp.
References Particle3DContainer::addParticle(), Particle3DContainer::containerSize(), Particle3DContainer::createParticle(), Particle3DContainer::particle3DBlend(), Particle3DContainer::setCumulativeAbundance(), and Particle3DContainer::setParticleType().
Particle3DContainer GUI::RealSpace::BuilderUtils::particleCoreShell3DContainer | ( | const ParticleCoreShell & | particleCoreShell, |
double | total_abundance = 1.0 , |
||
const QVector3D & | origin = {} |
||
) |
Definition at line 276 of file RealSpaceBuilderUtils.cpp.
References Particle3DContainer::addParticle(), GUI::View::TransformTo3D::createParticlefromFormfactor(), Particle3DContainer::setCumulativeAbundance(), and Particle3DContainer::setParticleType().
void GUI::RealSpace::BuilderUtils::populateParticlesAtLatticePositions | ( | const std::vector< std::vector< double >> & | lattice_positions, |
const std::vector< Particle3DContainer > & | particle3DContainer_vector, | ||
GUI::RealSpace::Model * | model, | ||
const SceneGeometry & | sceneGeometry, | ||
const RealSpaceBuilder * | builder3D | ||
) |
Definition at line 81 of file RealSpaceBuilderUtils.cpp.
References SceneGeometry::layerSize, RealSpaceBuilder::populateParticleFromParticle3DContainer(), and SceneGeometry::topOrBottomLayerThickness.
Particle3DContainer GUI::RealSpace::BuilderUtils::singleParticle3DContainer | ( | const Particle & | particle, |
double | total_abundance = 1.0 , |
||
const QVector3D & | origin = {} |
||
) |
Definition at line 257 of file RealSpaceBuilderUtils.cpp.
References Particle3DContainer::addParticle(), GUI::View::TransformTo3D::createParticlefromFormfactor(), Particle3DContainer::setCumulativeAbundance(), and Particle3DContainer::setParticleType().
|
private |
Definition at line 103 of file RealSpaceBuilderUtils.h.