Mask defined in terms of grid points rather than spacial coordinates. More...
#include <grid_mask.h>
Public Member Functions | |
| GridMask (const Dictionary &d) | |
| Parameters: shape - size in grid coordinates (length 2 for 2D layers or length 3 for 3D layers) | |
| bool | inside (const std::vector< double > &) const override |
| void | set_anchor (const Position< D, int > &) |
| Dictionary | get_dict () const override |
| GridMask< D > * | clone () const |
| AbstractMask * | intersect_mask (const AbstractMask &) const override |
| Create the intersection of this mask with another. | |
| AbstractMask * | union_mask (const AbstractMask &) const override |
| Create the union of this mask with another. | |
| AbstractMask * | minus_mask (const AbstractMask &) const override |
| Create the difference of this mask and another. | |
| Position< D, int > | get_upper_left () const |
| Position< D, int > | get_lower_right () const |
| std::string | get_name () |
| std::string | get_name () |
Public Member Functions inherited from nest::AbstractMask | |
| virtual | ~AbstractMask () |
Static Public Member Functions | |
| static std::string | get_name () |
Protected Attributes | |
| Position< D, int > | upper_left_ |
| Position< D, int > | lower_right_ |
Mask defined in terms of grid points rather than spacial coordinates.
Only suitable for grid layers.
| nest::GridMask< D >::GridMask | ( | const Dictionary & | d | ) |
Parameters: shape - size in grid coordinates (length 2 for 2D layers or length 3 for 3D layers)
References nest::names::shape().
|
inline |
|
overridevirtual |
Reimplemented from nest::AbstractMask.
References nest::names::shape().
|
inline |
References nest::GridMask< D >::lower_right_.
Referenced by nest::MaskedLayer< D >::check_mask_().
|
static |
|
inline |
|
inline |
|
inline |
References nest::GridMask< D >::upper_left_.
Referenced by nest::MaskedLayer< D >::check_mask_().
|
inlineoverridevirtual |
Implements nest::AbstractMask.
|
inlineoverridevirtual |
Create the intersection of this mask with another.
Masks must have the same dimension
Implements nest::AbstractMask.
|
inlineoverridevirtual |
Create the difference of this mask and another.
Masks must have the same dimension.
Implements nest::AbstractMask.
| void nest::GridMask< D >::set_anchor | ( | const Position< D, int > & | anchor | ) |
|
inlineoverridevirtual |
Create the union of this mask with another.
Masks must have the same dimension.
Implements nest::AbstractMask.
|
protected |
Referenced by nest::GridMask< D >::get_lower_right().
|
protected |
Referenced by nest::GridMask< D >::get_upper_left().