25 MaterialContainerItem::MaterialContainerItem()
Complex item holding mixed SessionItem types (single properties and other CompountItems).
T * addProperty(const std::string &name)
Adds property item of given type.
Property to carry text, color and identifier.
static RealLimits limitless()
Creates an object withoud bounds (default)
std::string identifier() const
Returns unique identifier.
void registerTag(const TagInfo &tagInfo, bool set_as_default=false)
Registers tag to hold items under given name.
void setProperty(const std::string &tag, const T &value)
Sets value to property item.
static TagInfo universalTag(std::string name, std::vector< std::string > modelTypes={})
Constructs universal tag intended for unlimited amount of various items.
Base class with all materials with name and color defined.
void init_magnetic_field()
static const std::string P_COLOR
ModelView::ExternalProperty external_property() const
Returns ExternalProperty representing this material.
static const std::string P_H_X
static const std::string P_H_Z
static const std::string P_NAME
static const std::string P_H_Y
MaterialBaseItem(const std::string &model_type)
static const std::string T_MATERIALS
static const std::string P_SLD_REAL
void set_properties(const std::string &name, const QColor &color, double real, double imag)
static const std::string P_SLD_IMAG
MVVM_MODEL_EXPORT bool HasTag(const SessionItem &item, const std::string &tag)
Returns true if given item has registered tag.
materialitems.h Collection of materials to populate MaterialModel.
QString const & name(EShape k)
const std::string MaterialContainerItemType
const std::string SLDMaterialItemType
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.