15 #ifndef BORNAGAIN_CORE_DETECTOR_DETECTORMASK_H
16 #define BORNAGAIN_CORE_DETECTOR_DETECTORMASK_H
Defines basic class for all 2D shapes.
Defines and implements template class OutputData.
Collection of detector masks.
int numberOfMaskedChannels() const
const OutputData< bool > * getMaskData() const
void removeMasks()
remove all masks and return object to initial state
const IShape2D * getMaskShape(size_t mask_index, bool &mask_value) const
int m_number_of_masked_channels
bool isMasked(size_t index) const
bool hasMasks() const
returns true if has masks
size_t numberOfMasks() const
Histogram2D * createHistogram() const
DetectorMask & operator=(const DetectorMask &other)
void addMask(const IShape2D &shape, bool mask_value)
Add mask to the stack of detector masks.
SafePointerVector< IShape2D > m_shapes
void initMaskData(const IDetector2D &detector)
Init the map of masks for the given detector plane.
std::vector< bool > m_mask_of_shape
OutputData< bool > m_mask_data
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.