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

rm IDetector::iterateOverNonMaskedPoints

parent abc6e3a9
No related branches found
No related tags found
1 merge request!2044replace SimulationAreaIterator by plain loops
......@@ -197,13 +197,6 @@ std::vector<const INode*> IDetector::nodeChildren() const
return std::vector<const INode*>() << &m_polAnalyzer << m_resolution.get();
}
void IDetector::iterateOverNonMaskedPoints(std::function<void(const_iterator)> func) const
{
for (auto it = SimulationAreaIterator::createBegin(this);
it != SimulationAreaIterator::createEnd(this); ++it)
func(it);
}
size_t IDetector::roiToFullIndex(const size_t i) const
{
if (m_explicitROI.size() != 2)
......
......@@ -114,11 +114,6 @@ public:
//! Applies the detector resolution to the given intensity maps
void applyDetectorResolution(Datafield* intensity_map) const;
//! Iterate over all non-masked points within "region of interest".
//! If no region of interest is explicitly defined, then the whole detector is taken as
//! "region of interest".
void iterateOverNonMaskedPoints(std::function<void(const_iterator)> func) const;
//! True if a region of interest is explicitly set.
bool hasExplicitRegionOfInterest() const;
......
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