BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 36 of file LayerItem.h.
Public Member Functions | |
LayerItem (const MaterialItems *materials) | |
ParticleLayoutItem * | addLayout () |
void | clearRoughness () |
QColor | color () const |
bool | isBottomLayer () const |
bool | isTopLayer () const |
QVector< ItemWithMaterial * > | itemsWithMaterial () |
QVector< ItemWithParticles * > | itemsWithParticles () const |
QString | layerName () const |
QVector< ParticleLayoutItem * > | layouts () const |
QColor | materialColor () const |
QString | materialIdentifier () const |
MaterialItem * | materialItem () const |
Returns the material item this item links to. More... | |
QString | materialName () const |
UIntDescriptor | numSlices () const |
void | removeLayout (ParticleLayoutItem *layout) |
SelectionDescriptor< LayerBasicRoughnessItem * > | roughness () |
void | serialize (Streamer &s) |
void | setBasicRoughness () |
void | setColor (const QColor &color) |
void | setIsBottomLayer (bool b) |
void | setIsTopLayer (bool b) |
void | setLayerName (const QString &name) |
void | setMaterial (const MaterialItem *materialItem) |
Set the material this item shall use. Stores the identifier, not the pointer! More... | |
void | setMaterial (const QString &materialIdentifier) |
Set the material this item shall use. Stores the given identifier, not a pointer to the material! More... | |
void | setMaterialUndefined () |
Set "no material defined". More... | |
DoubleDescriptor | thickness () const |
Protected Attributes | |
QString | m_materialIdentifier |
const MaterialItems * | m_materialItems |
Private Attributes | |
QColor | m_color |
bool | m_isBottomLayer = false |
bool | m_isTopLayer = false |
QVector< ParticleLayoutItem * > | m_layouts |
QString | m_name |
UIntProperty | m_numSlices |
DoubleProperty | m_thickness |
std::unique_ptr< LayerBasicRoughnessItem > | m_topRoughness |
|
explicit |
Definition at line 55 of file LayerItem.cpp.
References DoubleProperty::init(), UIntProperty::init(), m_name, m_numSlices, m_thickness, nanometer, and unitless.
ParticleLayoutItem * LayerItem::addLayout | ( | ) |
Definition at line 141 of file LayerItem.cpp.
References m_layouts, and ItemWithMaterial::m_materialItems.
Referenced by SampleEditorController::addLayout(), and GUI::Transform::FromCore::itemizeSample().
void LayerItem::clearRoughness | ( | ) |
Definition at line 126 of file LayerItem.cpp.
References m_topRoughness.
Referenced by roughness().
QColor LayerItem::color | ( | ) | const |
Definition at line 153 of file LayerItem.cpp.
References m_color.
Referenced by LayerForm::LayerForm(), setColor(), and LayerForm::updateColor().
bool LayerItem::isBottomLayer | ( | ) | const |
Definition at line 178 of file LayerItem.cpp.
References m_isBottomLayer.
Referenced by GUI::View::TransformTo3D::visualLayerThickness().
bool LayerItem::isTopLayer | ( | ) | const |
Definition at line 168 of file LayerItem.cpp.
References m_isTopLayer.
Referenced by GUI::View::TransformTo3D::visualLayerThickness().
QVector< ItemWithMaterial * > LayerItem::itemsWithMaterial | ( | ) |
Definition at line 80 of file LayerItem.cpp.
References layouts().
QVector< ItemWithParticles * > LayerItem::itemsWithParticles | ( | ) | const |
Definition at line 89 of file LayerItem.cpp.
References ParticleLayoutItem::containedItemsWithParticles(), and layouts().
QString LayerItem::layerName | ( | ) | const |
Definition at line 75 of file LayerItem.cpp.
References m_name.
Referenced by LayerForm::LayerForm(), and SampleValidator::validateInterferences().
QVector< ParticleLayoutItem * > LayerItem::layouts | ( | ) | const |
Definition at line 136 of file LayerItem.cpp.
References m_layouts.
Referenced by LayerForm::LayerForm(), itemsWithMaterial(), itemsWithParticles(), LayerForm::onAboutToRemoveLayout(), LayerForm::onLayoutAdded(), RealSpaceBuilder::populateLayer(), ParticleLayoutForm::updateTitle(), and SampleValidator::validateInterferences().
|
inherited |
Definition at line 42 of file ItemWithMaterial.cpp.
References MaterialItem::color(), and ItemWithMaterial::materialItem().
Referenced by GUI::View::TransformTo3D::createLayer().
|
inherited |
Definition at line 54 of file ItemWithMaterial.cpp.
References ItemWithMaterial::m_materialIdentifier.
Referenced by ItemWithMaterial::materialItem(), MaterialInplaceForm::selectMaterial(), ItemWithMaterial::setMaterial(), and SampleEditorController::setMaterialValue().
|
inherited |
Returns the material item this item links to.
Definition at line 59 of file ItemWithMaterial.cpp.
References ItemWithMaterial::m_materialItems, MaterialItems::materialFromIdentifier(), and ItemWithMaterial::materialIdentifier().
Referenced by ParticleItem::createParticle(), MaterialInplaceForm::createWidgets(), ItemWithMaterial::materialColor(), ItemWithMaterial::materialName(), MaterialInplaceForm::selectMaterial(), and ItemWithMaterial::setMaterial().
|
inherited |
Definition at line 48 of file ItemWithMaterial.cpp.
References ItemWithMaterial::materialItem(), and MaterialItem::matItemName().
Referenced by LayerForm::updateTitle().
UIntDescriptor LayerItem::numSlices | ( | ) | const |
Definition at line 131 of file LayerItem.cpp.
References m_numSlices.
Referenced by LayerForm::LayerForm().
void LayerItem::removeLayout | ( | ParticleLayoutItem * | layout | ) |
Definition at line 147 of file LayerItem.cpp.
References m_layouts.
Referenced by SampleEditorController::removeLayout().
SelectionDescriptor< LayerBasicRoughnessItem * > LayerItem::roughness | ( | ) |
Definition at line 102 of file LayerItem.cpp.
References clearRoughness(), SelectionDescriptor< T >::currentIndexGetter, SelectionDescriptor< T >::currentIndexSetter, SelectionDescriptor< T >::currentItem, SelectionDescriptor< T >::label, m_topRoughness, SelectionDescriptor< T >::options, setBasicRoughness(), and SelectionDescriptor< T >::tooltip.
Referenced by LayerForm::LayerForm().
void LayerItem::serialize | ( | Streamer & | s | ) |
Definition at line 183 of file LayerItem.cpp.
References Streamer::assertVersion(), m_color, m_layouts, ItemWithMaterial::m_materialIdentifier, ItemWithMaterial::m_materialItems, m_name, m_numSlices, m_thickness, m_topRoughness, Serialize::rwOptional(), Serialize::rwProperty(), Serialize::rwValue(), and Serialize::rwVector().
void LayerItem::setBasicRoughness | ( | ) |
Definition at line 121 of file LayerItem.cpp.
References m_topRoughness.
Referenced by roughness().
void LayerItem::setColor | ( | const QColor & | color | ) |
Definition at line 158 of file LayerItem.cpp.
References color(), and m_color.
Referenced by LayerForm::LayerForm(), and SampleEditorController::addLayerFromUndo().
void LayerItem::setIsBottomLayer | ( | bool | b | ) |
Definition at line 173 of file LayerItem.cpp.
References m_isBottomLayer.
Referenced by GUI::Transform::FromCore::itemizeSample().
void LayerItem::setIsTopLayer | ( | bool | b | ) |
Definition at line 163 of file LayerItem.cpp.
References m_isTopLayer.
Referenced by GUI::Transform::FromCore::itemizeSample().
void LayerItem::setLayerName | ( | const QString & | name | ) |
Definition at line 70 of file LayerItem.cpp.
References m_name, and GUI::RealSpace::Particles::name().
|
inherited |
Set the material this item shall use. Stores the identifier, not the pointer!
Definition at line 20 of file ItemWithMaterial.cpp.
References MaterialItem::identifier(), ItemWithMaterial::m_materialIdentifier, and ItemWithMaterial::materialItem().
Referenced by SampleEditorController::addLayerFromUndo(), GUI::Transform::FromCore::itemizeSample(), and SampleEditorController::selectMaterial().
|
inherited |
Set the material this item shall use. Stores the given identifier, not a pointer to the material!
Definition at line 25 of file ItemWithMaterial.cpp.
References ItemWithMaterial::m_materialIdentifier, and ItemWithMaterial::materialIdentifier().
|
inherited |
Set "no material defined".
Definition at line 37 of file ItemWithMaterial.cpp.
References ItemWithMaterial::m_materialIdentifier.
DoubleDescriptor LayerItem::thickness | ( | ) | const |
Definition at line 97 of file LayerItem.cpp.
References m_thickness.
Referenced by LayerForm::LayerForm(), LayerForm::updateLayerPositionDependentElements(), and GUI::View::TransformTo3D::visualLayerThickness().
|
private |
Definition at line 73 of file LayerItem.h.
Referenced by color(), serialize(), and setColor().
|
private |
Definition at line 75 of file LayerItem.h.
Referenced by isBottomLayer(), and setIsBottomLayer().
|
private |
Definition at line 74 of file LayerItem.h.
Referenced by isTopLayer(), and setIsTopLayer().
|
private |
Definition at line 76 of file LayerItem.h.
Referenced by addLayout(), layouts(), removeLayout(), and serialize().
|
protectedinherited |
Definition at line 51 of file ItemWithMaterial.h.
Referenced by ItemWithMaterial::materialIdentifier(), serialize(), ParticleItem::serialize(), ItemWithMaterial::setMaterial(), and ItemWithMaterial::setMaterialUndefined().
|
protectedinherited |
Definition at line 50 of file ItemWithMaterial.h.
Referenced by ItemWithMaterial::ItemWithMaterial(), addLayout(), ItemWithMaterial::materialItem(), and serialize().
|
private |
Definition at line 70 of file LayerItem.h.
Referenced by LayerItem(), layerName(), serialize(), and setLayerName().
|
private |
Definition at line 71 of file LayerItem.h.
Referenced by LayerItem(), numSlices(), and serialize().
|
private |
Definition at line 72 of file LayerItem.h.
Referenced by LayerItem(), serialize(), and thickness().
|
private |
Definition at line 77 of file LayerItem.h.
Referenced by clearRoughness(), roughness(), serialize(), and setBasicRoughness().