BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Holds iteration logic over active detector channels in the presence of ROI. More...
Public Types | |
using | iterator = SimulationAreaIterator |
Public Member Functions | |
SimulationRoiArea (const IDetector *detector) | |
SimulationAreaIterator | begin () |
size_t | detectorIndex (size_t index) const |
Return detector index from iterator index. More... | |
SimulationAreaIterator | end () |
virtual bool | isMasked (size_t) const |
returns true if given iterator index correspond to masked detector channel More... | |
size_t | roiIndex (size_t index) const |
Return index in ROI map from iterator index. More... | |
size_t | totalSize () const |
Protected Attributes | |
const IDetector * | m_detector |
size_t | m_max_index |
Holds iteration logic over active detector channels in the presence of ROI.
On the contrary to SimulationArea class, iterates also over masked areas.
Definition at line 65 of file SimulationArea.h.
|
inherited |
Definition at line 33 of file SimulationArea.h.
|
explicit |
Definition at line 69 of file SimulationArea.cpp.
|
inherited |
Definition at line 38 of file SimulationArea.cpp.
Referenced by IDetector2D::active_indices(), and IDetector::iterate().
|
inherited |
Return detector index from iterator index.
Definition at line 59 of file SimulationArea.cpp.
References RegionOfInterest::detectorIndex(), SimulationArea::m_detector, and IDetector::regionOfInterest().
Referenced by SimulationAreaIterator::detectorIndex(), and SimulationArea::isMasked().
|
inherited |
Definition at line 43 of file SimulationArea.cpp.
References SimulationArea::totalSize().
Referenced by IDetector2D::active_indices(), and IDetector::iterate().
|
virtual |
returns true if given iterator index correspond to masked detector channel
Reimplemented from SimulationArea.
Definition at line 71 of file SimulationArea.cpp.
|
inherited |
Return index in ROI map from iterator index.
Definition at line 54 of file SimulationArea.cpp.
Referenced by SimulationAreaIterator::roiIndex().
|
inlineinherited |
Definition at line 56 of file SimulationArea.h.
References SimulationArea::m_max_index.
Referenced by SimulationAreaIterator::SimulationAreaIterator(), SimulationArea::end(), and SimulationAreaIterator::nextIndex().
|
protectedinherited |
Definition at line 52 of file SimulationArea.h.
Referenced by SimulationArea::SimulationArea(), SimulationArea::detectorIndex(), and SimulationArea::isMasked().
|
protectedinherited |
Definition at line 53 of file SimulationArea.h.
Referenced by SimulationArea::SimulationArea(), and SimulationArea::totalSize().