Mask combining two masks with a Boolean OR, the sum. More...
#include <mask.h>
Public Member Functions | |
| UnionMask (const Mask< D > &m1, const Mask< D > &m2) | |
| Construct the union of the two given masks. | |
| UnionMask (const UnionMask &m) | |
| ~UnionMask () | |
| bool | inside (const Position< D > &p) const |
| bool | inside (const Box< D > &b) const |
| bool | outside (const Box< D > &b) const |
| Box< D > | get_bbox () const |
| The whole mask is inside (i.e., false everywhere outside) the bounding box. | |
| Mask< D > * | clone () const |
| Clone method. | |
| Public Member Functions inherited from nest::Mask< D > | |
| ~Mask () override | |
| bool | inside (const std::vector< double > &pt) const override |
| AbstractMask * | intersect_mask (const AbstractMask &other) const override |
| Create the intersection of this mask with another. | |
| AbstractMask * | union_mask (const AbstractMask &other) const override |
| Create the union of this mask with another. | |
| AbstractMask * | minus_mask (const AbstractMask &other) const override |
| Create the difference of this mask and another. | |
| Public Member Functions inherited from nest::AbstractMask | |
| virtual | ~AbstractMask () |
| virtual Dictionary | get_dict () const |
Protected Attributes | |
| Mask< D > * | mask1_ |
| Mask< D > * | mask2_ |
Mask combining two masks with a Boolean OR, the sum.
|
inline |
|
inline |
|
inline |
|
virtual |
Clone method.
Implements nest::Mask< D >.
References UnionMask().
Referenced by UnionMask(), and UnionMask().
|
virtual |
The whole mask is inside (i.e., false everywhere outside) the bounding box.
Implements nest::Mask< D >.
References nest::Box< D >::lower_left, mask1_, mask2_, and nest::Box< D >::upper_right.
|
virtual |
Implements nest::Mask< D >.
|
virtual |
|
virtual |
Reimplemented from nest::Mask< D >.
|
protected |
Referenced by get_bbox(), inside(), inside(), outside(), UnionMask(), UnionMask(), and ~UnionMask().
|
protected |
Referenced by get_bbox(), inside(), inside(), outside(), UnionMask(), UnionMask(), and ~UnionMask().