BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 23 of file FormFactorItemCatalog.h.
Classes | |
struct | UiInfo |
Public Types | |
using | CatalogedType = FormFactorItem |
enum class | Type : uint8_t { BarGauss = 1 , BarLorentz = 2 , Bipyramid4 = 3 , Box = 4 , CantellatedCube = 5 , Cone = 6 , CosineRippleBox = 7 , CosineRippleGauss = 8 , CosineRippleLorentz = 9 , Cylinder = 10 , Dodecahedron = 11 , EllipsoidalCylinder = 12 , Sphere = 13 , Spheroid = 14 , HemiEllipsoid = 15 , HorizontalCylinder = 16 , Icosahedron = 17 , PlatonicOctahedron = 18 , PlatonicTetrahedron = 19 , Prism3 = 20 , Prism6 = 21 , Pyramid2 = 22 , Pyramid3 = 23 , Pyramid4 = 24 , Pyramid6 = 25 , SawtoothRippleBox = 26 , SawtoothRippleGauss = 27 , SawtoothRippleLorentz = 28 , TruncatedCube = 29 , TruncatedSphere = 30 , TruncatedSpheroid = 31 } |
Static Public Member Functions | |
static FormFactorItem * | create (Type type) |
Creates the item of the given type. More... | |
static QVector< Type > | hardParticleTypes () |
static QString | menuEntry (const FormFactorItem *item) |
static QVector< Type > | rippleTypes () |
static Type | type (const FormFactorItem *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 FormFactorItemCatalog.h.
|
strong |
Definition at line 28 of file FormFactorItemCatalog.h.
|
static |
Creates the item of the given type.
If type is "None", a nullptr is returned.
Definition at line 19 of file FormFactorItemCatalog.cpp.
References CREATE, and type().
Referenced by SampleEditorController::createAndInitParticle(), SampleEditorController::setCoreFormFactor(), and SampleEditorController::setShellFormFactor().
|
static |
Definition at line 99 of file FormFactorItemCatalog.cpp.
References Bipyramid4, Box, CantellatedCube, Cone, Cylinder, Dodecahedron, EllipsoidalCylinder, HemiEllipsoid, HorizontalCylinder, Icosahedron, PlatonicOctahedron, PlatonicTetrahedron, Prism3, Prism6, Pyramid2, Pyramid3, Pyramid4, Pyramid6, Sphere, Spheroid, TruncatedCube, TruncatedSphere, and TruncatedSpheroid.
Referenced by LayerEditorUtils::createAddParticleButton().
|
static |
Definition at line 316 of file FormFactorItemCatalog.cpp.
References FormFactorItemCatalog::UiInfo::menuEntry, type(), and uiInfo().
Referenced by ParticleForm::ParticleForm(), ParticleCoreShellForm::createCoreWidgets(), and ParticleCoreShellForm::createShellWidgets().
|
static |
Definition at line 127 of file FormFactorItemCatalog.cpp.
References BarGauss, BarLorentz, Box, CosineRippleBox, CosineRippleGauss, CosineRippleLorentz, SawtoothRippleBox, SawtoothRippleGauss, and SawtoothRippleLorentz.
Referenced by LayerEditorUtils::createAddParticleButton().
|
static |
Returns the enum type of the given item.
Definition at line 273 of file FormFactorItemCatalog.cpp.
References CHECK.
Referenced by create(), MesoCrystalForm::createBasisCombo(), menuEntry(), 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 64 of file FormFactorItemCatalog.cpp.
References BarGauss, BarLorentz, Bipyramid4, Box, CantellatedCube, Cone, CosineRippleBox, CosineRippleGauss, CosineRippleLorentz, Cylinder, Dodecahedron, EllipsoidalCylinder, HemiEllipsoid, HorizontalCylinder, Icosahedron, PlatonicOctahedron, PlatonicTetrahedron, Prism3, Prism6, Pyramid2, Pyramid3, Pyramid4, Pyramid6, SawtoothRippleBox, SawtoothRippleGauss, SawtoothRippleLorentz, Sphere, Spheroid, TruncatedCube, TruncatedSphere, and TruncatedSpheroid.
Referenced by MesoCrystalForm::createBasisCombo().
|
static |
UiInfo on the given type.
Definition at line 134 of file FormFactorItemCatalog.cpp.
References BarGauss, BarLorentz, Bipyramid4, Box, CantellatedCube, Cone, CosineRippleBox, CosineRippleGauss, CosineRippleLorentz, Cylinder, Dodecahedron, EllipsoidalCylinder, HemiEllipsoid, HorizontalCylinder, Icosahedron, PlatonicOctahedron, PlatonicTetrahedron, Prism3, Prism6, Pyramid2, Pyramid3, Pyramid4, Pyramid6, SawtoothRippleBox, SawtoothRippleGauss, SawtoothRippleLorentz, Sphere, Spheroid, TruncatedCube, TruncatedSphere, TruncatedSpheroid, and type().
Referenced by LayerEditorUtils::createAddParticleButton(), MesoCrystalForm::createBasisCombo(), and menuEntry().