Mask defining a circular or spherical region. More...
#include <mask.h>
Public Member Functions | |
| BallMask (Position< D > center, double radius) | |
| BallMask (const Dictionary &) | |
| Creates a BallMask from a Dictionary which should contain the key "radius" with a double value and optionally the key "anchor" (the center position) with an array of doubles. | |
| ~BallMask () override | |
| bool | inside (const Position< D > &p) const override |
| bool | inside (const Box< D > &) const override |
| bool | outside (const Box< D > &b) const override |
| Box< D > | get_bbox () const override |
| The whole mask is inside (i.e., false everywhere outside) the bounding box. | |
| Dictionary | get_dict () const override |
| Mask< D > * | clone () const override |
| Clone method. | |
| bool | inside (const Box< 2 > &b) const |
| bool | inside (const Box< 3 > &b) const |
| std::string | get_name () |
| std::string | get_name () |
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. | |
| virtual bool | inside (const std::vector< double > &) const=0 |
Public Member Functions inherited from nest::AbstractMask | |
| virtual | ~AbstractMask () |
Static Public Member Functions | |
| static std::string | get_name () |
Protected Attributes | |
| Position< D > | center_ |
| double | radius_ |
Mask defining a circular or spherical region.
|
inline |
| center | Center of sphere |
| radius | Radius of sphere |
| nest::BallMask< D >::BallMask | ( | const Dictionary & | d | ) |
Creates a BallMask from a Dictionary which should contain the key "radius" with a double value and optionally the key "anchor" (the center position) with an array of doubles.
References nest::names::anchor(), and nest::names::radius().
|
inlineoverride |
|
overridevirtual |
|
overridevirtual |
The whole mask is inside (i.e., false everywhere outside) the bounding box.
Implements nest::Mask< D >.
References nest::Box< D >::lower_left, and nest::Box< D >::upper_right.
|
overridevirtual |
Reimplemented from nest::AbstractMask.
References nest::names::anchor(), and nest::names::radius().
|
static |
|
inline |
|
inline |
| bool nest::BallMask< 2 >::inside | ( | const Box< 2 > & | b | ) | const |
| bool nest::BallMask< 3 >::inside | ( | const Box< 3 > & | b | ) | const |
|
overridevirtual |
Implements nest::Mask< D >.
|
overridevirtual |
Implements nest::Mask< D >.
|
overridevirtual |
Reimplemented from nest::Mask< D >.
|
protected |
|
protected |