BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 25 of file ParticleCoreShellItem.h.
Public Member Functions | |
ParticleCoreShellItem (const MaterialItems *materials) | |
DoubleDescriptor | abundance () const |
void | clearCore () |
void | clearShell () |
QVector< ItemWithParticles * > | containedItemsWithParticles () const override |
Return full hierarchical contained items with particles. More... | |
ParticleItem * | core () const |
ParticleItem * | createCore (const MaterialItems *materials) |
std::unique_ptr< ParticleCoreShell > | createParticleCoreShell () const |
std::unique_ptr< IRotation > | createRotation () const |
nullptr only if "no rotation". Can contain identity! More... | |
ParticleItem * | createShell (const MaterialItems *materials) |
R3 | position () const |
VectorDescriptor | positionVector () const |
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... | |
ParticleItem * | shell () const |
Protected Attributes | |
DoubleProperty | m_abundance |
VectorProperty | m_position |
SelectionProperty< RotationItem * > | m_rotation |
Private Attributes | |
std::unique_ptr< ParticleItem > | m_core |
const MaterialItems * | m_materials |
std::unique_ptr< ParticleItem > | m_shell |
ParticleCoreShellItem::ParticleCoreShellItem | ( | const MaterialItems * | materials | ) |
Definition at line 35 of file ParticleCoreShellItem.cpp.
|
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(), ParticleCompositionItem::createParticleComposition(), createParticleCoreShell(), and ItemWithParticles::setAbundance().
void ParticleCoreShellItem::clearCore | ( | ) |
Definition at line 75 of file ParticleCoreShellItem.cpp.
References m_core.
void ParticleCoreShellItem::clearShell | ( | ) |
Definition at line 92 of file ParticleCoreShellItem.cpp.
References m_shell.
|
overridevirtual |
Return full hierarchical contained items with particles.
For example ParticleCompositionItem contains other items, ParticleItem doesn't.
Implements ItemWithParticles.
Definition at line 107 of file ParticleCoreShellItem.cpp.
References ParticleItem::containedItemsWithParticles(), core(), and shell().
ParticleItem * ParticleCoreShellItem::core | ( | ) | const |
Definition at line 70 of file ParticleCoreShellItem.cpp.
References m_core.
Referenced by ParticleCoreShellForm::ParticleCoreShellForm(), containedItemsWithParticles(), ParticleCoreShellForm::createCoreWidgets(), and ParticleCoreShellForm::showCoreInRealSpace().
ParticleItem * ParticleCoreShellItem::createCore | ( | const MaterialItems * | materials | ) |
Definition at line 80 of file ParticleCoreShellItem.cpp.
References MaterialItems::defaultMaterial(), and m_core.
Referenced by SampleEditorController::setCoreFormFactor().
std::unique_ptr< ParticleCoreShell > ParticleCoreShellItem::createParticleCoreShell | ( | ) | const |
Definition at line 50 of file ParticleCoreShellItem.cpp.
References ItemWithParticles::abundance(), ItemWithParticles::createRotation(), Error, m_core, m_shell, 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(), ParticleCompositionItem::createParticleComposition(), and createParticleCoreShell().
ParticleItem * ParticleCoreShellItem::createShell | ( | const MaterialItems * | materials | ) |
Definition at line 97 of file ParticleCoreShellItem.cpp.
References MaterialItems::defaultMaterial(), and m_shell.
Referenced by SampleEditorController::setShellFormFactor().
|
inherited |
Definition at line 42 of file ItemWithParticles.cpp.
References ItemWithParticles::m_position.
Referenced by MesoCrystalItem::createMesoCrystal(), ParticleItem::createParticle(), ParticleCompositionItem::createParticleComposition(), 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().
|
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 41 of file ParticleCoreShellItem.cpp.
References Streamer::assertVersion(), ItemWithParticles::m_abundance, m_core, m_materials, ItemWithParticles::m_position, m_shell, Serialize::rwOptional(), 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().
ParticleItem * ParticleCoreShellItem::shell | ( | ) | const |
Definition at line 87 of file ParticleCoreShellItem.cpp.
References m_shell.
Referenced by ParticleCoreShellForm::ParticleCoreShellForm(), containedItemsWithParticles(), ParticleCoreShellForm::createShellWidgets(), and ParticleCoreShellForm::showShellInRealSpace().
|
protectedinherited |
Definition at line 56 of file ItemWithParticles.h.
Referenced by ItemWithParticles::ItemWithParticles(), ItemWithParticles::abundance(), MesoCrystalItem::serialize(), ParticleCompositionItem::serialize(), serialize(), ParticleItem::serialize(), and ItemWithParticles::setAbundance().
|
private |
Definition at line 43 of file ParticleCoreShellItem.h.
Referenced by clearCore(), core(), createCore(), createParticleCoreShell(), and serialize().
|
private |
Definition at line 45 of file ParticleCoreShellItem.h.
Referenced by serialize().
|
protectedinherited |
Definition at line 57 of file ItemWithParticles.h.
Referenced by ItemWithParticles::ItemWithParticles(), ItemWithParticles::position(), ItemWithParticles::positionVector(), MesoCrystalItem::serialize(), ParticleCompositionItem::serialize(), 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(), ParticleCompositionItem::serialize(), ParticleItem::serialize(), and ItemWithParticles::setRotation().
|
private |
Definition at line 44 of file ParticleCoreShellItem.h.
Referenced by clearShell(), createParticleCoreShell(), createShell(), serialize(), and shell().