BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 27 of file ItemWithParticles.h.
Public Member Functions | |
virtual | ~ItemWithParticles ()=default |
DoubleDescriptor | abundance () const |
virtual QVector< ItemWithParticles * > | containedItemsWithParticles () const =0 |
Return full hierarchical contained items with particles. More... | |
std::unique_ptr< IRotation > | createRotation () const |
nullptr only if "no rotation". Can contain identity! More... | |
R3 | position () const |
VectorDescriptor | positionVector () const |
SelectionDescriptor< RotationItem * > | rotation () |
Returns selection descriptor for rotation methods. More... | |
virtual void | serialize (Streamer &s)=0 |
void | setAbundance (double abundance) |
void | setPosition (const R3 &position) |
void | setRotation (RotationItem *p) |
nullptr is allowed and sets to "no rotation" More... | |
Protected Member Functions | |
ItemWithParticles (const QString &abundanceTooltip, const QString &positionTooltip) | |
Protected Attributes | |
DoubleProperty | m_abundance |
VectorProperty | m_position |
SelectionProperty< RotationItem * > | m_rotation |
|
virtualdefault |
|
protected |
Definition at line 23 of file ItemWithParticles.cpp.
References SelectionProperty< T >::init(), VectorProperty::init(), DoubleProperty::init(), m_abundance, m_position, m_rotation, nanometer, and unitless.
DoubleDescriptor ItemWithParticles::abundance | ( | ) | const |
Definition at line 32 of file ItemWithParticles.cpp.
References m_abundance.
Referenced by MesoCrystalForm::MesoCrystalForm(), ParticleCompositionForm::ParticleCompositionForm(), ParticleCoreShellForm::ParticleCoreShellForm(), ParticleForm::ParticleForm(), ParameterTreeBuilder::addParticle(), ParticleItem::createParticle(), ParticleCompositionItem::createParticleComposition(), ParticleCoreShellItem::createParticleCoreShell(), and setAbundance().
|
pure virtual |
Return full hierarchical contained items with particles.
For example ParticleCompositionItem contains other items, ParticleItem doesn't.
Implemented in ParticleItem, ParticleCoreShellItem, ParticleCompositionItem, and MesoCrystalItem.
Referenced by MesoCrystalItem::containedItemsWithParticles().
std::unique_ptr< IRotation > ItemWithParticles::createRotation | ( | ) | const |
nullptr only if "no rotation". Can contain identity!
Definition at line 67 of file ItemWithParticles.cpp.
References SelectionProperty< T >::get(), m_rotation, and RotationItem::rotation().
Referenced by MesoCrystalItem::createMesoCrystal(), ParticleItem::createParticle(), ParticleCompositionItem::createParticleComposition(), and ParticleCoreShellItem::createParticleCoreShell().
R3 ItemWithParticles::position | ( | ) | const |
Definition at line 42 of file ItemWithParticles.cpp.
References m_position.
Referenced by MesoCrystalItem::createMesoCrystal(), ParticleItem::createParticle(), ParticleCompositionItem::createParticleComposition(), ParticleCoreShellItem::createParticleCoreShell(), and setPosition().
VectorDescriptor ItemWithParticles::positionVector | ( | ) | const |
Definition at line 52 of file ItemWithParticles.cpp.
References m_position.
Referenced by MesoCrystalForm::MesoCrystalForm(), ParticleCompositionForm::ParticleCompositionForm(), ParticleCoreShellForm::ParticleCoreShellForm(), ParticleForm::ParticleForm(), and ParameterTreeBuilder::addParticle().
SelectionDescriptor< RotationItem * > ItemWithParticles::rotation | ( | ) |
Returns selection descriptor for rotation methods.
Definition at line 57 of file ItemWithParticles.cpp.
References m_rotation.
Referenced by MesoCrystalForm::MesoCrystalForm(), ParticleCompositionForm::ParticleCompositionForm(), ParticleCoreShellForm::ParticleCoreShellForm(), ParticleForm::ParticleForm(), and ParameterTreeBuilder::addRotation().
|
pure virtual |
Implemented in ParticleItem, ParticleCoreShellItem, ParticleCompositionItem, and MesoCrystalItem.
void ItemWithParticles::setAbundance | ( | double | abundance | ) |
Definition at line 37 of file ItemWithParticles.cpp.
References abundance(), m_abundance, and DoubleProperty::set().
void ItemWithParticles::setPosition | ( | const R3 & | position | ) |
Definition at line 47 of file ItemWithParticles.cpp.
References m_position, position(), and VectorProperty::set().
void ItemWithParticles::setRotation | ( | RotationItem * | p | ) |
nullptr is allowed and sets to "no rotation"
Definition at line 62 of file ItemWithParticles.cpp.
References m_rotation, and SelectionProperty< T >::set().
|
protected |
Definition at line 56 of file ItemWithParticles.h.
Referenced by ItemWithParticles(), abundance(), MesoCrystalItem::serialize(), ParticleCompositionItem::serialize(), ParticleCoreShellItem::serialize(), ParticleItem::serialize(), and setAbundance().
|
protected |
Definition at line 57 of file ItemWithParticles.h.
Referenced by ItemWithParticles(), position(), positionVector(), MesoCrystalItem::serialize(), ParticleCompositionItem::serialize(), ParticleCoreShellItem::serialize(), ParticleItem::serialize(), and setPosition().
|
protected |
Definition at line 58 of file ItemWithParticles.h.
Referenced by ItemWithParticles(), createRotation(), rotation(), MesoCrystalItem::serialize(), ParticleCompositionItem::serialize(), ParticleItem::serialize(), and setRotation().