BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 37 of file RealSpaceBuilder.h.
Public Types | |
using | ItemForRealSpace = std::variant< MultiLayerItem *, LayerItem *, ParticleLayoutItem *, ItemWithParticles * > |
Defines the item types this class can handle. More... | |
Public Member Functions | |
RealSpaceBuilder (std::function< QColor(const QString &)> fnColorFromMaterialName) | |
void | populate (RealSpace::Model *model, ItemForRealSpace item, const SceneGeometry &sceneGeometry, const RealSpace::Camera::Position &cameraPosition=RealSpace::Camera::Position(RealSpace::Vector3D(0, -200, 120), RealSpace::Vector3D(0, 0, 0), RealSpace::Vector3D::_z)) const |
void | populateParticleFromParticle3DContainer (RealSpace::Model *model, const Particle3DContainer &particle3DContainer, const QVector3D &lattice_position={}) const |
Private Member Functions | |
void | populateLayer (RealSpace::Model *model, const LayerItem &layerItem, const SceneGeometry &sceneGeometry, const QVector3D &origin={}, bool isTopLayer=false) const |
void | populateLayout (RealSpace::Model *model, const ParticleLayoutItem &layoutItem, const SceneGeometry &sceneGeometry, const QVector3D &origin={}) const |
void | populateMultiLayer (RealSpace::Model *model, const MultiLayerItem &mlayerItem, const SceneGeometry &sceneGeometry, const QVector3D &origin={}) const |
void | populateParticleFromParticleItem (RealSpace::Model *model, const ItemWithParticles &particleItem) const |
Private Attributes | |
std::unique_ptr< RealSpace::BuilderUtils > | m_builderUtils |
using RealSpaceBuilder::ItemForRealSpace = std::variant<MultiLayerItem*, LayerItem*, ParticleLayoutItem*, ItemWithParticles*> |
Defines the item types this class can handle.
Definition at line 41 of file RealSpaceBuilder.h.
RealSpaceBuilder::RealSpaceBuilder | ( | std::function< QColor(const QString &)> | fnColorFromMaterialName | ) |
Definition at line 66 of file RealSpaceBuilder.cpp.
References m_builderUtils.
void RealSpaceBuilder::populate | ( | RealSpace::Model * | model, |
ItemForRealSpace | item, | ||
const SceneGeometry & | sceneGeometry, | ||
const RealSpace::Camera::Position & | cameraPosition = RealSpace::Camera::Position(RealSpace::Vector3D(0, -200, 120), RealSpace::Vector3D(0, 0, 0), RealSpace::Vector3D::_z) |
||
) | const |
Definition at line 71 of file RealSpaceBuilder.cpp.
References GUI::RealSpace::Model::defCamPos, populateLayer(), populateLayout(), populateMultiLayer(), and populateParticleFromParticleItem().
Referenced by RealSpaceCanvas::updateScene().
|
private |
Definition at line 107 of file RealSpaceBuilder.cpp.
References GUI::RealSpace::Model::addBlend(), GUI::View::TransformTo3D::createLayer(), LayerItem::layouts(), and populateLayout().
Referenced by populate(), and populateMultiLayer().
|
private |
Definition at line 119 of file RealSpaceBuilder.cpp.
References GUI::RealSpace::Paracrystal2D::latticePositions(), SceneGeometry::layerSize, m_builderUtils, ParticleLayoutItem::particles(), and ParticleLayoutItem::totalDensity().
Referenced by populate(), and populateLayer().
|
private |
Definition at line 88 of file RealSpaceBuilder.cpp.
References MultiLayerItem::layers(), populateLayer(), and GUI::View::TransformTo3D::visualLayerThickness().
Referenced by populate().
void RealSpaceBuilder::populateParticleFromParticle3DContainer | ( | RealSpace::Model * | model, |
const Particle3DContainer & | particle3DContainer, | ||
const QVector3D & | lattice_position = {} |
||
) | const |
Definition at line 169 of file RealSpaceBuilder.cpp.
References GUI::RealSpace::Model::add(), GUI::RealSpace::Model::addBlend(), Particle3DContainer::containerSize(), Particle3DContainer::createParticle(), and Particle3DContainer::particle3DBlend().
Referenced by populateParticleFromParticleItem(), and GUI::RealSpace::BuilderUtils::populateParticlesAtLatticePositions().
|
private |
Definition at line 138 of file RealSpaceBuilder.cpp.
References Particle3DContainer::createParticle(), m_builderUtils, and populateParticleFromParticle3DContainer().
Referenced by populate().
|
private |
Definition at line 74 of file RealSpaceBuilder.h.
Referenced by RealSpaceBuilder(), populateLayout(), and populateParticleFromParticleItem().