24 std::unique_ptr<ItemCatalogue> CreateItemCatalogue()
26 auto result = std::make_unique<ItemCatalogue>();
29 result->registerItem<RoughnessItem>();
44 auto multilayer = insertItem<MultiLayerItem>();
46 auto top = insertItem<LayerItem>(multilayer);
48 auto middle = insertItem<LayerItem>(multilayer);
50 auto substrate = insertItem<LayerItem>(multilayer);
Main class to hold hierarchy of SessionItem objects.
void setItemCatalogue(std::unique_ptr< ItemCatalogue > catalogue)
Sets brand new catalog of user-defined items.
SampleModel(QObject *parent=nullptr)
static const std::string P_THICKNESS
static const std::string P_NAME
void create_default_multilayer()
Populate the model with default MultiLayer with 3 layers.
materialitems.h Collection of materials to populate MaterialModel.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.