15 #ifndef BORNAGAIN_GUI_MODEL_SAMPLE_MULTILAYERITEM_H
16 #define BORNAGAIN_GUI_MODEL_SAMPLE_MULTILAYERITEM_H
27 class QXmlStreamReader;
28 class QXmlStreamWriter;
53 QVector<LayerItem*>
layers()
const;
Defines class DoubleProperty.
Defines class MaterialItems.
@ other
The unit has no enum value defined in here (e.g. when defined as an explicit string)
Defines class VectorProperty.
Describes properties of a double value which are necessary to allow GUI representation,...
Class for representing a double value, its attributes and its accessors.
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.
Describes properties of a 3D vector, consisting of three double values.
Holds a 3D vector of type R3 as well as additional info like label, tooltip.
QString const & name(EShape k)