15 #ifndef BORNAGAIN_DEVICE_MASK_DETECTORMASK_H
16 #define BORNAGAIN_DEVICE_MASK_DETECTORMASK_H
Defines and implements templated class OwningVector.
Stores radiation power per bin.
Collection of detector masks.
const MaskPattern * patternAt(size_t iMask) const
int numberOfMaskedChannels() 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
DetectorMask(const IAxis &xAxis, const IAxis &yAxis)
DetectorMask & operator=(const DetectorMask &other)
OwningVector< MaskPattern > m_stack
std::vector< bool > m_masked
void addMask(const IShape2D &shape, bool mask_value)
Add mask to the stack of detector masks. The value "true" means that the area will be excluded from t...
Abstract base class for one-dimensional axes.
Basic class for all shapes in 2D.
MaskPattern(IShape2D *shape_, bool doMask_)
MaskPattern * clone() const
MaskPattern(const MaskPattern &)=delete