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

replace addAxis

parent d5681115
No related branches found
No related tags found
1 merge request!890set axes in Powerfield creator
...@@ -43,12 +43,7 @@ DetectorMask::DetectorMask() ...@@ -43,12 +43,7 @@ DetectorMask::DetectorMask()
DetectorMask::DetectorMask(const IAxis& xAxis, const IAxis& yAxis) DetectorMask::DetectorMask(const IAxis& xAxis, const IAxis& yAxis)
: DetectorMask() : DetectorMask()
{ {
m_masked->clear(); m_masked.reset(new Powerfield<bool>(xAxis, yAxis));
m_masked->addAxis(xAxis);
m_masked->addAxis(yAxis);
// m_masked.reset(new Powerfield<bool>(xAxis, yAxis));
process_masks(); process_masks();
} }
...@@ -82,10 +77,7 @@ void DetectorMask::addMask(const IShape2D& shape, bool mask_value) ...@@ -82,10 +77,7 @@ void DetectorMask::addMask(const IShape2D& shape, bool mask_value)
void DetectorMask::initMaskData(const IAxis& xAxis, const IAxis& yAxis) void DetectorMask::initMaskData(const IAxis& xAxis, const IAxis& yAxis)
{ {
m_masked->clear(); m_masked.reset(new Powerfield<bool>(xAxis, yAxis));
m_masked->addAxis(xAxis);
m_masked->addAxis(yAxis);
process_masks(); process_masks();
} }
......
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