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

replace addAxis

parent a201ac24
No related branches found
No related tags found
1 merge request!890set axes in Powerfield creator
......@@ -211,14 +211,14 @@ std::unique_ptr<Powerfield<double>> IDetector::createDetectorMap() const
const size_t dim = dimension();
ASSERT(dim != 0);
std::unique_ptr<Powerfield<double>> result(new Powerfield<double>);
std::vector<IAxis*> axes;
for (size_t iAxis = 0; iAxis < dim; ++iAxis) {
std::unique_ptr<IAxis> tempAxis(axis(iAxis).clone());
tempAxis->clip(regionOfInterestBounds(iAxis));
result->addAxis(*tempAxis);
IAxis* tmp = axis(iAxis).clone();
tmp->clip(regionOfInterestBounds(iAxis));
axes.emplace_back(tmp);
}
return result;
return std::unique_ptr<Powerfield<double>>{new Powerfield<double>(axes)};
}
void IDetector::setDataToDetectorMap(
......
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