NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
nest::GridMask< D > Class Template Reference

Mask defined in terms of grid points rather than spacial coordinates. More...

#include <grid_mask.h>

Inheritance diagram for nest::GridMask< D >:
nest::AbstractMask

Public Member Functions

 GridMask (const DictionaryDatum &d)
 Parameters: columns - horizontal size in grid coordinates rows - vertical size in grid coordinates layers - z-size in grid coordinates (for 3D layers) More...
 
bool inside (const std::vector< double_t > &) const
 
void set_anchor (const Position< D, int_t > &)
 
DictionaryDatum get_dict () const
 
GridMask< D > * clone () const
 
AbstractMaskintersect_mask (const AbstractMask &) const
 Create the intersection of this mask with another. More...
 
AbstractMaskunion_mask (const AbstractMask &) const
 Create the union of this mask with another. More...
 
AbstractMaskminus_mask (const AbstractMask &) const
 Create the difference of this mask and another. More...
 
Position< D, int_tget_upper_left () const
 
Position< D, int_tget_lower_right () const
 
template<>
Name get_name ()
 
template<>
Name get_name ()
 
- Public Member Functions inherited from nest::AbstractMask
virtual ~AbstractMask ()
 Virtual destructor. More...
 

Static Public Member Functions

static Name get_name ()
 

Protected Attributes

Position< D, int_tupper_left_
 
Position< D, int_tlower_right_
 

Detailed Description

template<int D>
class nest::GridMask< D >

Mask defined in terms of grid points rather than spacial coordinates.

Only suitable for grid layers.

Constructor & Destructor Documentation

template<int D>
nest::GridMask< D >::GridMask ( const DictionaryDatum d)

Parameters: columns - horizontal size in grid coordinates rows - vertical size in grid coordinates layers - z-size in grid coordinates (for 3D layers)

References nest::names::columns, nest::names::d, getValue< long >(), nest::names::layers, and nest::names::rows.

Referenced by nest::GridMask< D >::clone().

Member Function Documentation

template<int D>
GridMask<D>* nest::GridMask< D >::clone ( void  ) const
inline
template<int D>
DictionaryDatum nest::GridMask< D >::get_dict ( ) const
virtual
Returns
a dictionary with the definition for this mask.

Reimplemented from nest::AbstractMask.

References nest::names::columns, nest::names::d, nest::names::layers, and nest::names::rows.

template<int D>
Position<D,int_t> nest::GridMask< D >::get_lower_right ( ) const
inline
template<int D>
static Name nest::GridMask< D >::get_name ( )
static
Returns
the name of this mask type.
template<>
Name nest::GridMask< 2 >::get_name ( )
inline

References nest::names::grid.

template<>
Name nest::GridMask< 3 >::get_name ( )
inline

References nest::names::grid3d.

template<int D>
Position<D,int_t> nest::GridMask< D >::get_upper_left ( ) const
inline
template<int D>
bool nest::GridMask< D >::inside ( const std::vector< double_t > &  ) const
inlinevirtual
Returns
true if point is inside mask.

Implements nest::AbstractMask.

template<int D>
AbstractMask* nest::GridMask< D >::intersect_mask ( const AbstractMask other) const
inlinevirtual

Create the intersection of this mask with another.

Masks must have the same dimension

Returns
a new dynamically allocated mask.

Implements nest::AbstractMask.

template<int D>
AbstractMask* nest::GridMask< D >::minus_mask ( const AbstractMask other) const
inlinevirtual

Create the difference of this mask and another.

Masks must have the same dimension.

Returns
a new dynamically allocated mask.

Implements nest::AbstractMask.

template<int D>
void nest::GridMask< D >::set_anchor ( const Position< D, int_t > &  anchor)
template<int D>
AbstractMask* nest::GridMask< D >::union_mask ( const AbstractMask other) const
inlinevirtual

Create the union of this mask with another.

Masks must have the same dimension.

Returns
a new dynamically allocated mask.

Implements nest::AbstractMask.

Member Data Documentation

template<int D>
Position<D,int_t> nest::GridMask< D >::lower_right_
protected
template<int D>
Position<D,int_t> nest::GridMask< D >::upper_left_
protected

The documentation for this class was generated from the following file: