BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Form for editing a core/shell particle.
Definition at line 28 of file ParticleCoreShellForm.h.
Classes | |
struct | Location |
Public Member Functions | |
ParticleCoreShellForm (QWidget *parent, ParticleCoreShellItem *item, SampleEditorController *ec, bool allowRemove=true) | |
ParticleCoreShellItem * | coreShellItem () const |
void | createCoreWidgets () |
void | createShellWidgets () |
void | enableStructureEditing (bool b) |
Private Member Functions | |
void | onCoreComboChanged () |
void | onShellComboChanged () |
void | showCoreInRealSpace () |
void | showShellInRealSpace () |
Private Attributes | |
Location | core |
SampleEditorController * | m_ec |
ParticleCoreShellItem * | m_item |
QAction * | m_removeAction = nullptr |
Location | shell |
ParticleCoreShellForm::ParticleCoreShellForm | ( | QWidget * | parent, |
ParticleCoreShellItem * | item, | ||
SampleEditorController * | ec, | ||
bool | allowRemove = true |
||
) |
Definition at line 52 of file ParticleCoreShellForm.cpp.
References ItemWithParticles::abundance(), GroupBoxCollapser::addAction(), FormLayouter::addRow(), FormLayouter::addSelection(), FormLayouter::addValue(), FormLayouter::addVector(), ParticleCoreShellForm::Location::collapser, ParticleCoreShellItem::core(), core, createCoreWidgets(), ActionFactory::createRemoveAction(), createShellWidgets(), ActionFactory::createShowInRealSpaceAction(), ParticleItem::formfactor_at_bottom(), ParticleCoreShellForm::Location::formfactorCombo, GroupBoxCollapser::installIntoGroupBox(), ParticleCoreShellForm::Location::layouter, m_removeAction, onCoreComboChanged(), onShellComboChanged(), ItemWithParticles::positionVector(), SampleEditorController::removeParticle(), SampleEditorController::requestViewInRealSpace(), ItemWithParticles::rotation(), FormLayouter::setContentsMargins(), ParticleCoreShellItem::shell(), shell, showCoreInRealSpace(), and showShellInRealSpace().
ParticleCoreShellItem * ParticleCoreShellForm::coreShellItem | ( | ) | const |
Definition at line 203 of file ParticleCoreShellForm.cpp.
References m_item.
Referenced by SampleEditorController::setCoreFormFactor(), and SampleEditorController::setShellFormFactor().
void ParticleCoreShellForm::createCoreWidgets | ( | ) |
Definition at line 159 of file ParticleCoreShellForm.cpp.
References ParticleCoreShellForm::Location::collapser, ParticleCoreShellItem::core(), core, ParticleCoreShellForm::Location::layouter, m_item, FormFactorItemCatalog::menuEntry(), and GroupBoxCollapser::setTitle().
Referenced by ParticleCoreShellForm(), and SampleEditorController::setCoreFormFactor().
void ParticleCoreShellForm::createShellWidgets | ( | ) |
Definition at line 178 of file ParticleCoreShellForm.cpp.
References ParticleCoreShellForm::Location::collapser, ParticleCoreShellForm::Location::layouter, m_item, FormFactorItemCatalog::menuEntry(), GroupBoxCollapser::setTitle(), ParticleCoreShellItem::shell(), and shell.
Referenced by ParticleCoreShellForm(), and SampleEditorController::setShellFormFactor().
void ParticleCoreShellForm::enableStructureEditing | ( | bool | b | ) |
Definition at line 197 of file ParticleCoreShellForm.cpp.
References m_removeAction.
|
private |
Definition at line 129 of file ParticleCoreShellForm.cpp.
References core, ParticleCoreShellForm::Location::formfactorCombo, ParticleCoreShellForm::Location::layouter, m_ec, and SampleEditorController::setCoreFormFactor().
Referenced by ParticleCoreShellForm().
|
private |
Definition at line 138 of file ParticleCoreShellForm.cpp.
References ParticleCoreShellForm::Location::formfactorCombo, ParticleCoreShellForm::Location::layouter, m_ec, SampleEditorController::setShellFormFactor(), and shell.
Referenced by ParticleCoreShellForm().
|
private |
Definition at line 147 of file ParticleCoreShellForm.cpp.
References ParticleCoreShellItem::core(), m_ec, m_item, and SampleEditorController::requestViewInRealSpace().
Referenced by ParticleCoreShellForm().
|
private |
Definition at line 153 of file ParticleCoreShellForm.cpp.
References m_ec, m_item, SampleEditorController::requestViewInRealSpace(), and ParticleCoreShellItem::shell().
Referenced by ParticleCoreShellForm().
|
private |
Definition at line 56 of file ParticleCoreShellForm.h.
Referenced by ParticleCoreShellForm(), createCoreWidgets(), and onCoreComboChanged().
|
private |
Definition at line 50 of file ParticleCoreShellForm.h.
Referenced by onCoreComboChanged(), onShellComboChanged(), showCoreInRealSpace(), and showShellInRealSpace().
|
private |
Definition at line 48 of file ParticleCoreShellForm.h.
Referenced by coreShellItem(), createCoreWidgets(), createShellWidgets(), showCoreInRealSpace(), and showShellInRealSpace().
|
private |
Definition at line 49 of file ParticleCoreShellForm.h.
Referenced by ParticleCoreShellForm(), and enableStructureEditing().
|
private |
Definition at line 57 of file ParticleCoreShellForm.h.
Referenced by ParticleCoreShellForm(), createShellWidgets(), and onShellComboChanged().