15 #ifndef BORNAGAIN_CORE_DETECTOR_DETECTORMASK_H
16 #define BORNAGAIN_CORE_DETECTOR_DETECTORMASK_H
46 bool isMasked(
size_t index)
const;
56 bool hasMasks()
const {
return !m_shapes.empty(); }
58 int numberOfMaskedChannels()
const {
return m_number_of_masked_channels; }
60 size_t numberOfMasks()
const;
62 const IShape2D* getMaskShape(
size_t mask_index,
bool& mask_value)
const;
68 std::vector<bool> m_mask_of_shape;
70 int m_number_of_masked_channels;
Defines basic class for all 2D shapes.
Defines and implements template class OutputData.
Collection of detector masks.
void removeMasks()
remove all masks and return object to initial state
bool hasMasks() const
returns true if has masks
void addMask(const IShape2D &shape, bool mask_value)
Add mask to the stack of detector masks.
void initMaskData(const IDetector2D &detector)
Init the map of masks for the given detector plane.
Two dimensional histogram.
Abstract 2D detector interface.
Basic class for all shapes in 2D.
Template class to store data of any type in multi-dimensional space.