19 #include <QXmlStreamWriter>
25 "Cross correlation length of roughnesses between interfaces", 0.0,
37 QVector<ItemWithMaterial*> result;
39 result.append(layer->itemsWithMaterial());
103 layer->setIsTopLayer(
m_layers.first() == layer);
104 layer->setIsBottomLayer(
m_layers.last() == layer);
114 m_layers.first()->setIsTopLayer(
true);
115 m_layers.last()->setIsBottomLayer(
true);
123 if (beforeThisLayer !=
nullptr)
124 index =
m_layers.indexOf(beforeThisLayer);
127 l->setIsTopLayer(
m_layers.first() == l);
128 l->setIsBottomLayer(
m_layers.last() == l);
157 l->setIsTopLayer(
m_layers.first() == l);
158 l->setIsBottomLayer(
m_layers.last() == l);
Defines GUI::Util namespace.
Defines class MultiLayerItem.
@ other
The unit has no enum value defined in here (e.g. when defined as an explicit string)
Describes properties of a double value which are necessary to allow GUI representation,...
void init(const QString &label, const QString &tooltip, double value, const variant< QString, Unit > &unit, const QString &persistentTag)
MaterialItem * addRefractiveMaterial(const QString &name, double delta, double beta)
QString sampleName() const
void setDescription(const QString &description)
LayerItem * addLayer(int index=-1)
Creates and inserts a layer at given index.
MaterialItems & materialItems()
void setSampleName(const QString &name)
QVector< LayerItem * > m_layers
void initFrom(const MultiLayerItem *other)
void addStandardMaterials()
void removeLayer(LayerItem *item)
MaterialItems m_materials
void writeContentTo(QXmlStreamWriter *writer) const
DoubleProperty m_crossCorrelationLength
QVector< LayerItem * > layers() const
QVector< ItemWithMaterial * > itemsWithMaterial() const
void serialize(Streamer &s)
QString description() const
void readContentFrom(QXmlStreamReader *reader)
DoubleDescriptor crossCorrLength() const
VectorProperty m_externalField
void moveLayer(LayerItem *item, LayerItem *beforeThisLayer)
void setExternalField(const R3 &externalField)
VectorDescriptor externalFieldVector() const
Supports serialization to or deserialization from QXmlStream.
QXmlStreamReader * xmlReader()
Returns stream reader or nullptr.
void assertVersion(unsigned expectedVersion) const
As reader, throws DeserializationException unless the expected version is read. As writer,...
Describes properties of a 3D vector, consisting of three double values.
void init(const QString &label, const QString &tooltip, const variant< QString, Unit > &unit, const QString &persistentTag)
QString const & name(EShape k)
void copyContents(const T *source, T *dest)
void rwVector(Streamer &s, const QString &tag, QVector< T > &vec, Args... argsForConstructor)
Serializes a list of items of known and fixed type. Passes optional arguments to the constructor.
void rwProperty(Streamer &s, DoubleProperty &d)
void rwValue(Streamer &s, const QString &tag, bool &val)
void rwClass(Streamer &s, const QString &tag, T &t)
Serializes an item from a class that provides the function void serialize(Streamer&).