31 if (p_layer == sample.
layer(i))
33 throw std::out_of_range(
"SampleUtils::Multilayer::IndexOfLayer: layer not found");
Defines class LayerInterface.
Declares functions in namespace MaterialUtils.
Defines class MultiLayer.
Defines namespace SampleUtils::Multilayer.
std::vector< const Material * > containedMaterials() const
Returns set of unique materials contained in this ISampleNode.
const LayerRoughness * roughness() const
Returns roughness of the interface.
A roughness of interface between two layers.
A layer in a MultiLayer sample.
Our sample model: a stack of layers one below the other.
const LayerInterface * layerInterface(size_t i_interface) const
Returns interface with given index.
const Layer * layer(size_t i_layer) const
Returns layer with given index.
size_t numberOfLayers() const
MATERIAL_TYPES checkMaterialTypes(const std::vector< const Material * > &materials)
Checks if all non-default materials in materials are of the same type and returns this type....
bool hasRoughness(const MultiLayer &sample)
const LayerRoughness * LayerTopRoughness(const MultiLayer &sample, size_t i)
Returns top roughness of layer.
size_t IndexOfLayer(const MultiLayer &sample, const Layer *p_layer)
Returns the index of the given layer.
bool ContainsCompatibleMaterials(const MultiLayer &sample)
Returns true if the sample contains non-default materials of one type only.