Skip to content
Snippets Groups Projects
Commit 5b82e7d7 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

disambiguate fct name SourceItem::setFootprintItem

parent eee03cf0
No related branches found
No related tags found
1 merge request!2695minor, while studying footprint and roughness items
...@@ -145,7 +145,7 @@ void SourceItem::setSquareFootprint(double value) ...@@ -145,7 +145,7 @@ void SourceItem::setSquareFootprint(double value)
m_footprint.setCertainItem(new FootprintSquareItem(value)); m_footprint.setCertainItem(new FootprintSquareItem(value));
} }
void SourceItem::setFootprint(const IFootprint* footprint) void SourceItem::setFootprintItem(const IFootprint* footprint)
{ {
if (!footprint) if (!footprint)
return; return;
...@@ -241,7 +241,7 @@ void ScanItem::setScan(const BeamScan* scan) ...@@ -241,7 +241,7 @@ void ScanItem::setScan(const BeamScan* scan)
axis_item->setMin(axis->min() / Units::deg); axis_item->setMin(axis->min() / Units::deg);
axis_item->setMax(axis->max() / Units::deg); axis_item->setMax(axis->max() / Units::deg);
setFootprint(scan->commonFootprint()); setFootprintItem(scan->commonFootprint());
} }
void ScanItem::writeTo(QXmlStreamWriter* w) const void ScanItem::writeTo(QXmlStreamWriter* w) const
......
...@@ -44,7 +44,7 @@ public: ...@@ -44,7 +44,7 @@ public:
void setAzimuthalAngle(double value); void setAzimuthalAngle(double value);
PolyItem<FootprintCatalog>& footprintSelection() { return m_footprint; } PolyItem<FootprintCatalog>& footprintSelection() { return m_footprint; }
void setFootprint(const IFootprint* footprint); void setFootprintItem(const IFootprint* footprint);
void setGaussianFootprint(double value); void setGaussianFootprint(double value);
void setSquareFootprint(double value); void setSquareFootprint(double value);
......
...@@ -185,7 +185,7 @@ void setGISASBeamItem(BeamItem* beam_item, const ScatteringSimulation& simulatio ...@@ -185,7 +185,7 @@ void setGISASBeamItem(BeamItem* beam_item, const ScatteringSimulation& simulatio
beam_item->setWavelength(beam.wavelength()); beam_item->setWavelength(beam.wavelength());
beam_item->setInclinationAngle(Units::rad2deg(beam.alpha_i())); beam_item->setInclinationAngle(Units::rad2deg(beam.alpha_i()));
beam_item->setAzimuthalAngle(Units::rad2deg(beam.phi_i())); beam_item->setAzimuthalAngle(Units::rad2deg(beam.phi_i()));
beam_item->setFootprint(beam.footprint()); beam_item->setFootprintItem(beam.footprint());
for (const ParameterDistribution& pd : simulation.paramDistributions()) { for (const ParameterDistribution& pd : simulation.paramDistributions()) {
if (pd.whichParameter() == ParameterDistribution::BeamWavelength) if (pd.whichParameter() == ParameterDistribution::BeamWavelength)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment