BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 23 of file InterferenceItemCatalog.h.
Classes | |
struct | UiInfo |
Public Types | |
using | CatalogedType = InterferenceItem |
enum class | Type : uint8_t { None = 0 , RadialParaCrystalRadial = 1 , ParaCrystal2D = 2 , Lattice1D = 3 , Lattice2D = 4 , FiniteLattice2D = 5 , HardDisk = 6 } |
Static Public Member Functions | |
static InterferenceItem * | create (Type type) |
Creates the item of the given type. More... | |
static Type | type (const InterferenceItem *item) |
Returns the enum type of the given item. More... | |
static QVector< Type > | types () |
Available types of interference items. More... | |
static UiInfo | uiInfo (Type t) |
UiInfo on the given type. More... | |
Definition at line 25 of file InterferenceItemCatalog.h.
|
strong |
Enumerator | |
---|---|
None | |
RadialParaCrystalRadial | |
ParaCrystal2D | |
Lattice1D | |
Lattice2D | |
FiniteLattice2D | |
HardDisk |
Definition at line 28 of file InterferenceItemCatalog.h.
|
static |
Creates the item of the given type.
If type is "None", a nullptr is returned.
Definition at line 18 of file InterferenceItemCatalog.cpp.
References FiniteLattice2D, HardDisk, Lattice1D, Lattice2D, None, ParaCrystal2D, RadialParaCrystalRadial, and type().
|
static |
Returns the enum type of the given item.
Definition at line 75 of file InterferenceItemCatalog.cpp.
References FiniteLattice2D, HardDisk, Lattice1D, Lattice2D, None, ParaCrystal2D, and RadialParaCrystalRadial.
Referenced by ParameterTreeBuilder::addInterference(), create(), and uiInfo().
|
static |
Available types of interference items.
Contains also type "None". This list is sorted as expected in the UI (e.g. in combo box)
Definition at line 40 of file InterferenceItemCatalog.cpp.
References FiniteLattice2D, HardDisk, Lattice1D, Lattice2D, None, ParaCrystal2D, and RadialParaCrystalRadial.
|
static |
UiInfo on the given type.
Definition at line 47 of file InterferenceItemCatalog.cpp.
References FiniteLattice2D, HardDisk, Lattice1D, Lattice2D, None, ParaCrystal2D, RadialParaCrystalRadial, and type().
Referenced by ParameterTreeBuilder::addInterference().