BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 24 of file ParticleCompositionItem.h.
Public Member Functions | |
ParticleCompositionItem (const MaterialItems *materials) | |
DoubleDescriptor | abundance () const |
void | addParticle (ItemWithParticles *particle) |
QVector< ItemWithParticles * > | containedItemsWithParticles () const override |
Return full hierarchical contained items with particles. More... | |
std::unique_ptr< ParticleComposition > | createParticleComposition () const |
std::unique_ptr< IRotation > | createRotation () const |
nullptr only if "no rotation". Can contain identity! More... | |
QVector< ItemWithParticles * > | particles () const |
R3 | position () const |
VectorDescriptor | positionVector () const |
void | removeParticle (ItemWithParticles *particle) |
SelectionDescriptor< RotationItem * > | rotation () |
Returns selection descriptor for rotation methods. More... | |
void | serialize (Streamer &s) override |
void | setAbundance (double abundance) |
void | setPosition (const R3 &position) |
void | setRotation (RotationItem *p) |
nullptr is allowed and sets to "no rotation" More... | |
Protected Attributes | |
DoubleProperty | m_abundance |
VectorProperty | m_position |
SelectionProperty< RotationItem * > | m_rotation |
Private Attributes | |
const MaterialItems * | m_materials |
QVector< ItemWithParticles * > | m_particles |
ParticleCompositionItem::ParticleCompositionItem | ( | const MaterialItems * | materials | ) |
Definition at line 38 of file ParticleCompositionItem.cpp.
References m_materials.
|
inherited |
Definition at line 32 of file ItemWithParticles.cpp.
References ItemWithParticles::m_abundance.
Referenced by MesoCrystalForm::MesoCrystalForm(), ParticleCompositionForm::ParticleCompositionForm(), ParticleCoreShellForm::ParticleCoreShellForm(), ParticleForm::ParticleForm(), ParameterTreeBuilder::addParticle(), ParticleItem::createParticle(), createParticleComposition(), ParticleCoreShellItem::createParticleCoreShell(), and ItemWithParticles::setAbundance().
void ParticleCompositionItem::addParticle | ( | ItemWithParticles * | particle | ) |
Definition at line 86 of file ParticleCompositionItem.cpp.
References m_particles.
Referenced by SampleEditorController::addParticle().
|
overridevirtual |
Return full hierarchical contained items with particles.
For example ParticleCompositionItem contains other items, ParticleItem doesn't.
Implements ItemWithParticles.
Definition at line 97 of file ParticleCompositionItem.cpp.
References m_particles.
std::unique_ptr< ParticleComposition > ParticleCompositionItem::createParticleComposition | ( | ) | const |
Definition at line 54 of file ParticleCompositionItem.cpp.
References ItemWithParticles::abundance(), ItemWithParticles::createRotation(), m_particles, and ItemWithParticles::position().
|
inherited |
nullptr only if "no rotation". Can contain identity!
Definition at line 67 of file ItemWithParticles.cpp.
References SelectionProperty< T >::get(), ItemWithParticles::m_rotation, and RotationItem::rotation().
Referenced by MesoCrystalItem::createMesoCrystal(), ParticleItem::createParticle(), createParticleComposition(), and ParticleCoreShellItem::createParticleCoreShell().
QVector< ItemWithParticles * > ParticleCompositionItem::particles | ( | ) | const |
Definition at line 81 of file ParticleCompositionItem.cpp.
References m_particles.
Referenced by ParticleCompositionForm::ParticleCompositionForm(), ParticleCompositionForm::onAboutToRemoveParticle(), and ParticleCompositionForm::onParticleAdded().
|
inherited |
Definition at line 42 of file ItemWithParticles.cpp.
References ItemWithParticles::m_position.
Referenced by MesoCrystalItem::createMesoCrystal(), ParticleItem::createParticle(), createParticleComposition(), ParticleCoreShellItem::createParticleCoreShell(), and ItemWithParticles::setPosition().
|
inherited |
Definition at line 52 of file ItemWithParticles.cpp.
References ItemWithParticles::m_position.
Referenced by MesoCrystalForm::MesoCrystalForm(), ParticleCompositionForm::ParticleCompositionForm(), ParticleCoreShellForm::ParticleCoreShellForm(), ParticleForm::ParticleForm(), and ParameterTreeBuilder::addParticle().
void ParticleCompositionItem::removeParticle | ( | ItemWithParticles * | particle | ) |
Definition at line 91 of file ParticleCompositionItem.cpp.
References m_particles.
|
inherited |
Returns selection descriptor for rotation methods.
Definition at line 57 of file ItemWithParticles.cpp.
References ItemWithParticles::m_rotation.
Referenced by MesoCrystalForm::MesoCrystalForm(), ParticleCompositionForm::ParticleCompositionForm(), ParticleCoreShellForm::ParticleCoreShellForm(), ParticleForm::ParticleForm(), and ParameterTreeBuilder::addRotation().
|
overridevirtual |
Implements ItemWithParticles.
Definition at line 45 of file ParticleCompositionItem.cpp.
References Streamer::assertVersion(), ItemWithParticles::m_abundance, m_materials, m_particles, ItemWithParticles::m_position, ItemWithParticles::m_rotation, and Serialize::rwProperty().
|
inherited |
Definition at line 37 of file ItemWithParticles.cpp.
References ItemWithParticles::abundance(), ItemWithParticles::m_abundance, and DoubleProperty::set().
|
inherited |
Definition at line 47 of file ItemWithParticles.cpp.
References ItemWithParticles::m_position, ItemWithParticles::position(), and VectorProperty::set().
|
inherited |
nullptr is allowed and sets to "no rotation"
Definition at line 62 of file ItemWithParticles.cpp.
References ItemWithParticles::m_rotation, and SelectionProperty< T >::set().
|
protectedinherited |
Definition at line 56 of file ItemWithParticles.h.
Referenced by ItemWithParticles::ItemWithParticles(), ItemWithParticles::abundance(), MesoCrystalItem::serialize(), serialize(), ParticleCoreShellItem::serialize(), ParticleItem::serialize(), and ItemWithParticles::setAbundance().
|
private |
Definition at line 39 of file ParticleCompositionItem.h.
Referenced by ParticleCompositionItem(), and serialize().
|
private |
Definition at line 38 of file ParticleCompositionItem.h.
Referenced by addParticle(), containedItemsWithParticles(), createParticleComposition(), particles(), removeParticle(), and serialize().
|
protectedinherited |
Definition at line 57 of file ItemWithParticles.h.
Referenced by ItemWithParticles::ItemWithParticles(), ItemWithParticles::position(), ItemWithParticles::positionVector(), MesoCrystalItem::serialize(), serialize(), ParticleCoreShellItem::serialize(), ParticleItem::serialize(), and ItemWithParticles::setPosition().
|
protectedinherited |
Definition at line 58 of file ItemWithParticles.h.
Referenced by ItemWithParticles::ItemWithParticles(), ItemWithParticles::createRotation(), ItemWithParticles::rotation(), MesoCrystalItem::serialize(), serialize(), ParticleItem::serialize(), and ItemWithParticles::setRotation().