15 #ifndef BORNAGAIN_GUI_MODEL_SAMPLE_MATERIALITEMS_H
16 #define BORNAGAIN_GUI_MODEL_SAMPLE_MATERIALITEMS_H
@ other
The unit has no enum value defined in here (e.g. when defined as an explicit string)
void addMaterial(MaterialItem *material)
Add the material and take ownership of it.
MaterialItem * addRefractiveMaterial(const QString &name, double delta, double beta)
MaterialItem * materialFromIdentifier(const QString &identifier) const
MaterialItem * defaultMaterial() const
void materialAddedOrRemoved()
void initFrom(const MaterialItems &from)
Copies the complete content, emitting signals for existing and changed materials.
MaterialItem * addSLDMaterial(const QString &name, double sld, double abs_term)
QVector< MaterialItem * > m_materialItems
all materials (owned by this class)
void removeMaterial(const QString &identifier)
MaterialItems(QObject *parent=nullptr)
MaterialItems * createCopy() const
MaterialItem * insertCopy(const MaterialItem &material)
Inserts a copy of the given material and returns the newly inserted item.
bool operator==(const MaterialItems &other) const
Compares for complete equality (same material identifiers, same order of materials,...
const QVector< MaterialItem * > & materialItems() const
void materialChanged(MaterialItem *materialItem)
MaterialItem * materialFromName(const QString &name) const
bool operator!=(const MaterialItems &other) const
void serialize(Streamer &s)
Supports serialization to or deserialization from QXmlStream.
QString const & name(EShape k)