15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_MATERIALEDITOR_MATERIALITEMUTILS_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_MATERIALEDITOR_MATERIALITEMUTILS_H
Defines class ExternalProperty.
Defines class MaterialItem.
The ExternalProperty class defines custom QVariant property to carry the text, color and an identifie...
A wrapper for underlying material implementation.
ExternalProperty selectMaterialProperty(const ExternalProperty &previous=ExternalProperty())
Calls material selector dialog.
QString materialTag(const SessionItem &item)
Returns material tag for given item. Returns empty string, if item doesn't have materials.
MaterialItem * findMaterial(const ExternalProperty &material_property)
QColor suggestMaterialColor(const QString &name)
std::unique_ptr< Material > createDomainMaterial(const ExternalProperty &material_property)
QVector< SessionItem * > materialPropertyItems(SessionItem *item)
Gather material property items from a given item.
QStringList materialRelatedModelTypes()
Returns list of model types which contains registered MaterialProperty.
ExternalProperty colorProperty(const QColor &color)
Constructs color property from given color.
ExternalProperty materialProperty(const SessionItem &materialItem)
Constructs material property corresponding to given material.
ExternalProperty defaultMaterialProperty()
ExternalProperty selectColorProperty(const ExternalProperty &previous=ExternalProperty())
Calls color selector dialog.
QString const & name(EShape k)