BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
GUI::RealSpace::Particles Namespace Reference

Classes

class  BarGauss
 
class  BarLorentz
 
class  Bipyramid4
 
class  Box
 
class  CantellatedCube
 
class  Cone
 
class  CosineRippleBox
 
class  CosineRippleGauss
 
class  CosineRippleLorentz
 
class  Cylinder
 
class  Dodecahedron
 
class  EllipsoidalCylinder
 
class  HemiEllipsoid
 
class  HorizontalCylinder
 
class  Icosahedron
 
class  Particle
 
class  PlatonicOctahedron
 
class  PlatonicTetrahedron
 
class  Prism3
 
class  Prism6
 
class  Pyramid2
 
class  Pyramid3
 
class  Pyramid4
 
class  Pyramid6
 
class  SawtoothRipple
 
class  SawtoothRippleBox
 
class  SawtoothRippleGauss
 
class  SawtoothRippleLorentz
 
class  Sphere
 
class  Spheroid
 
class  TruncatedCube
 
class  TruncatedSphere
 
class  TruncatedSpheroid
 

Enumerations

enum class  EShape {
  BarGauss , BarLorentz , Bipyramid4 , Box ,
  CantellatedCube , Cone , CosineRippleBox , CosineRippleGauss ,
  CosineRippleLorentz , Cylinder , Dodecahedron , EllipsoidalCylinder ,
  Sphere , Spheroid , HemiEllipsoid , HorizontalCylinder ,
  Icosahedron , None , PlatonicOctahedron , PlatonicTetrahedron ,
  Prism3 , Prism6 , Pyramid2 , Pyramid3 ,
  Pyramid4 , Pyramid6 , SawtoothRippleBox , SawtoothRippleGauss ,
  SawtoothRippleLorentz , TruncatedCube , TruncatedSphere , TruncatedSpheroid
}
 

Functions

QString const & name (EShape k)
 

Variables

static float const pi = float(M_PI)
 
static float const pi2f = float(M_PI_2)
 
static float const sqrt2f = std::sqrt(2.f)
 
static float const sqrt3f = std::sqrt(3.f)
 

Enumeration Type Documentation

◆ EShape

Enumerator
BarGauss 
BarLorentz 
Bipyramid4 
Box 
CantellatedCube 
Cone 
CosineRippleBox 
CosineRippleGauss 
CosineRippleLorentz 
Cylinder 
Dodecahedron 
EllipsoidalCylinder 
Sphere 
Spheroid 
HemiEllipsoid 
HorizontalCylinder 
Icosahedron 
None 
PlatonicOctahedron 
PlatonicTetrahedron 
Prism3 
Prism6 
Pyramid2 
Pyramid3 
Pyramid4 
Pyramid6 
SawtoothRippleBox 
SawtoothRippleGauss 
SawtoothRippleLorentz 
TruncatedCube 
TruncatedSphere 
TruncatedSpheroid 

Definition at line 22 of file particles.h.

22  {
23  BarGauss,
24  BarLorentz,
25  Bipyramid4,
26  Box,
28  Cone,
32  Cylinder,
35  Sphere,
36  Spheroid,
40  None,
43  Prism3,
44  Prism6,
45  Pyramid2,
46  Pyramid3,
47  Pyramid4,
48  Pyramid6,
55 };

Function Documentation

◆ name()

QString const & GUI::RealSpace::Particles::name ( EShape  k)

Definition at line 20 of file particles.cpp.

21 {
22  static QString names[] = {"",
23  "BarGauss",
24  "BarLorentz",
25  "Bipyramid4",
26  "Box",
27  "CantellatedCube",
28  "Cone",
29  "CosineRippleBox",
30  "CosineRippleGauss",
31  "CosineRippleLorentz",
32  "Cylinder",
33  "Dodecahedron",
34  "EllipsoidalCylinder",
35  "Sphere",
36  "Spheroid",
37  "HemiEllipsoid",
38  "HorizontalCylinder",
39  "Icosahedron",
40  "PlatonicOctahedron",
41  "PlatonicTetrahedron",
42  "Prism3",
43  "Prism6",
44  "Pyramid2",
45  "Pyramid3",
46  "Pyramid4",
47  "Pyramid6",
48  "SawtoothRippleBox",
49  "SawtoothRippleGauss",
50  "SawtoothRippleLorentz",
51  "TruncatedCube",
52  "TruncatedSphere",
53  "TruncatedSpheroid"};
54  return names[uint(k)];
55 }

Referenced by Data1DViewItem::Data1DViewItem(), FitParameterItem::FitParameterItem(), IShape2DView::IShape2DView(), InstrumentLibrary::add(), ParameterTreeBuilder::addBeamDistribution(), DataLoaders1D::addBuiltInLoader(), FitParameterModel::addColumn(), InstrumentsEditController::addCopy(), PropertyRepeater::addItem(), InstrumentListModel::addNewInstrument(), SessionItem::addProperty(), MaterialItems::addRefractiveMaterial(), MaterialEditorModel::addRefractiveMaterial(), MaterialItems::addSLDMaterial(), MaterialEditorModel::addSLDMaterial(), ModelMapper::callOnChildPropertyChange(), ModelMapper::callOnPropertyChange(), DatafieldIOService::cleanOldFiles(), cloneAsUserDefinedLoader(), GUI::Util::CoordName::coordFromName(), FitParameterContainerItem::createParameters(), GUI::ExamplesFactory::exampleInfo(), ApplicationOptions::find(), Data1DViewItem::isAxesUnitsPropertyName(), DataItem::isAxesUnitsPropertyName(), BasicAxisItem::isBoundsPropertiesName(), IntensityDataItem::isGradientPropertyName(), IntensityDataItem::isInterpolatedPropertyName(), MaskItem::isIsVisiblePropertyName(), SessionItem::isItemNamePropertyName(), GroupItem::isItemsTagName(), FitSuiteItem::isIterationCountPropertyName(), AmplitudeAxisItem::isLogScalePropertyName(), MaskItem::isMaskValuePropertyName(), SessionItem::isTag(), BasicAxisItem::isTitlePropertyName(), BasicAxisItem::isTitleVisiblePropertyName(), FitSuiteItem::isUpdateIntervalPropertyName(), GUI::ExamplesFactory::isValidExampleName(), BasicAxisItem::isVisibilityPropertyName(), Data1DViewItem::isXAxisPropertyName(), IntensityDataItem::isXaxisPropertyName(), SpecularDataItem::isXaxisPropertyName(), Data1DViewItem::isYAxisPropertyName(), IntensityDataItem::isYaxisPropertyName(), SpecularDataItem::isYaxisPropertyName(), IntensityDataItem::isZaxisPropertyName(), GUI::ExamplesFactory::itemizeSample(), jobStatusFromString(), MaterialItems::materialFromName(), SpecularDataImportWidget::onCreateNewFormatButton(), RunFitControlWidget::onFitSuitePropertyChange(), IntensityDataCanvas::onPropertyChanged(), Plot1DCanvas::onStatusString(), SpecularPlotCanvas::onStatusString(), ColorMapCanvas::onStatusString(), SessionItemTags::registerTag(), SessionItem::registerTag(), SpecularDataImportWidget::selectedLoader(), SpecularDataPropertyWidget::setCurrentItem(), RealDataItem::setDataName(), JobItem::setInstrumentName(), InstrumentEditController::setInstrumentName(), InstrumentsEditController::setInstrumentName(), IntensityDataPropertyWidget::setItem(), FitSessionController::setItem(), SessionItem::setItemName(), JobItem::setJobName(), LayerItem::setLayerName(), FitParameterItem::setLimitEnabled(), MaskItem::setMaskName(), MaterialEditorModel::setMaterialItemName(), MaterialItem::setMatItemName(), ItemComboToolbar::setPresentation(), MultiLayerItem::setSampleName(), SampleEditorController::setSampleName(), ComboProperty::setSelected(), ComboProperty::setValue(), RunFitControlWidget::subscribeToItem(), IntensityDataCanvas::subscribeToItem(), FitFlowWidget::subscribeToItem(), Plot1D::subscribeToItem(), SpecularPlot::subscribeToItem(), ColorMap::subscribeToItem(), ProjectionsPlot::subscribeToItem(), InstrumentLibrary::suggestName(), GUI::Util::String::suggestName(), DataItem::updateAxesUnits(), and ProjectSettingsView::updateInformation().

Variable Documentation

◆ pi

◆ pi2f

float const GUI::RealSpace::Particles::pi2f = float(M_PI_2)
static

Definition at line 102 of file particles.cpp.

Referenced by GUI::RealSpace::Particles::Bipyramid4::Bipyramid4().

◆ sqrt2f

◆ sqrt3f

float const GUI::RealSpace::Particles::sqrt3f = std::sqrt(3.f)
static