15 #ifndef BORNAGAIN_GUI_MODEL_MODEL_PARAMETERTREEUTILS_H
16 #define BORNAGAIN_GUI_MODEL_MODEL_PARAMETERTREEUTILS_H
56 const QString& label = QString());
59 const std::variant<VectorDescriptor, DoubleDescriptor>& v);
67 bool enableAbundance,
bool enablePosition =
true);
73 bool withMean =
true);
The BeamDistributionItem handles wavelength, inclination and azimuthal parameter distribution for Bea...
Describes properties of a double value which are necessary to allow GUI representation,...
Abstract base class for instrument-specific item classes.
The ParameterContainerItem is a top item to hold all ParameterItem, represents an entry point to para...
The ParameterItem class represent a tuning value in a parameter tuning tree.
ParameterTreeItems is a collection of items necessary to form a tuning tree for real time widget.
The ParameterTreeBuilder contains helper functions to create container with ParameterItems....
void addLattice(ParameterLabelItem *parentLabel, const Interference2DAbstractLatticeItem *itf)
ParameterLabelItem * addParticle(ParameterLabelItem *parentLabel, ItemWithParticles *p, bool enableAbundance, bool enablePosition=true)
Returns the top label which was created for the particle.
void addPolarization(ParameterLabelItem *instrumentLabel, const InstrumentItem *instrument)
void addMaterials()
add the job's materials
void addBackground(ParameterLabelItem *instrumentLabel, BackgroundItem *backgroundItem)
void addBeamDistribution(ParameterLabelItem *parentLabel, BeamDistributionItem *distributionItem, const QString &label, bool withMean=true)
bool allowMagneticFields() const
void addDetector(ParameterLabelItem *parentLabel, DetectorItem *detector)
ParameterTreeBuilder(JobItem *jobItem, bool recreateBackupValues)
void addParameterItem(ParameterLabelItem *parent, const DoubleDescriptor &d, const QString &label=QString())
void addSample()
add the job's sample
bool m_recreateBackupValues
void addRotation(ParameterLabelItem *parentLabel, ItemWithParticles *p)
ParameterContainerItem * parameterContainer()
void addInterference(ParameterLabelItem *layoutLabel, const ParticleLayoutItem *layout)
Describes properties of a 3D vector, consisting of three double values.