BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
itemcataloguefactory.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // qt-mvvm: Model-view-view-model framework for large GUI applications
4 //
5 //! @file mvvm/model/mvvm/factories/itemcataloguefactory.cpp
6 //! @brief Implements class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
17 
18 using namespace ModelView;
19 
20 std::unique_ptr<ItemCatalogue> ModelView::CreateStandardItemCatalogue()
21 {
22  auto result = std::make_unique<ItemCatalogue>();
23  result->registerItem<ColorMapItem>();
24  result->registerItem<ColorMapViewportItem>();
25  result->registerItem<CompoundItem>();
26  result->registerItem<ContainerItem>();
27  result->registerItem<Data1DItem>();
28  result->registerItem<Data2DItem>();
29  result->registerItem<FixedBinAxisItem>();
30  result->registerItem<GraphItem>();
31  result->registerItem<GraphViewportItem>();
32  result->registerItem<LinkedItem>();
33  result->registerItem<PenItem>();
34  result->registerItem<PointwiseAxisItem>();
35  result->registerItem<PropertyItem>();
36  result->registerItem<SessionItem>();
37  result->registerItem<TextItem>();
38  result->registerItem<VectorItem>();
39  result->registerItem<ViewportAxisItem>();
40  return result;
41 }
Two-dimensional color map representation of Data2DItem.
Definition: colormapitem.h:28
Container with viewport and collection of ColorMapItem's to plot.
Complex item holding mixed SessionItem types (single properties and other CompountItems).
Definition: compounditem.h:28
Simple container to store any type of children.
Definition: containeritem.h:25
Represents one-dimensional data (axis and values).
Definition: data1ditem.h:30
Represents two-dimensional data (axes definition and 2d array of values).
Definition: data2ditem.h:29
Item to represent fixed bin axis.
Definition: axisitems.h:75
One-dimensional graph representation of Data1DItem.
Definition: graphitem.h:29
2D viewport specialized for showing multiple GraphItem's.
Item to store a persistent link to other arbitrary items.
Definition: linkeditem.h:30
Represents basics settings of QPen.
Item to represent pointwise axis.
Definition: axisitems.h:94
Item to carry concrete editable entity (e.g.
Definition: propertyitem.h:27
The main object representing an editable/displayable/serializable entity.
Definition: sessionitem.h:38
Represent text item on plot.
Vector item with three x,y,z property items.
Definition: vectoritem.h:24
Item to represent viewport axis.
Definition: axisitems.h:43
Defines class CLASS?
materialitems.h Collection of materials to populate MaterialModel.
MVVM_MODEL_EXPORT std::unique_ptr< ItemCatalogue > CreateStandardItemCatalogue()
Creates a catalog of items supported by SessionModel out-of-the-box.
Defines class CLASS?