22 : m_shapes(other.m_shapes), m_mask_of_shape(other.m_mask_of_shape),
23 m_number_of_masked_channels(other.m_number_of_masked_channels)
53 "to add masks to uninitialized detector.");
58 for (
size_t dim = 0; dim < detector.
dimension(); ++dim) {
71 for (
size_t dim = 0; dim < data.
getRank(); ++dim)
122 bool is_masked(
false);
123 for (
size_t i_shape =
m_shapes.
size(); i_shape > 0; --i_shape) {
#define ASSERT(condition)
Defines class Histogram2D.
Defines interface IDetector2D.
Defines class RegionOfInterest.
Collection of detector masks.
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
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.
Interface for one-dimensional axes.
Abstract 2D detector interface.
size_t dimension() const
Returns actual dimensionality of the detector (number of defined axes)
const IAxis & getAxis(size_t index) const
static IHistogram * createHistogram(const OutputData< double > &source)
Basic class for all shapes in 2D.
virtual IShape2D * clone() const =0
virtual bool contains(double x, double y) const =0
Returns true if point with given coordinates is inside or on border of the shape.
void copyFrom(const OutputData< T > &x)
void setAllTo(const T &value)
Sets content of output data to specific value.
void copyShapeFrom(const OutputData< U > &other)
size_t getRank() const
Returns number of dimensions.
void addAxis(const IAxis &new_axis)
Bin1D getAxisBin(size_t global_index, size_t i_selected_axis) const
Returns bin of selected axis for given global_index.
const IAxis & getAxis(size_t serial_number) const
returns axis with given serial number
size_t getAllocatedSize() const
Returns total size of data buffer (product of bin number in every dimension).
void clear()
Sets object into initial state (no dimensions, data)
void push_back(T *pointer)