oln::neighborhood3d Class Reference

Neighborhood 3 dimensions. More...

#include <neighborhood3d.hh>

Inheritance diagram for oln::neighborhood3d:

Inheritance graph
[legend]
Collaboration diagram for oln::neighborhood3d:

Collaboration graph
[legend]
List of all members.

Public Types

typedef abstract::neighborhoodnd<
neighborhood3d
super_type
 Super type.
typedef neighborhood3d self_type
 Self type.
typedef struct_elt_traits<
self_type >::iter_type 
iter_type
 The associate image's type of iterator.
typedef struct_elt_traits<
self_type >::neighb_type 
neighb_type
typedef struct_elt_traits<
self_type >::dpoint_type 
dpoint_type
 The associate image's type of dpoint (move point).

Public Member Functions

neighborhood3dadd (const dpoint_type &dp)
 Add a dpoint (move point) to the neighborhood.
neighborhood3dadd (coord slice, coord row, coord col)
 Add a point by coordinates to the neighborhood.
 neighborhood3d ()
 Construct a neighborhood of 3 dimensions.
 neighborhood3d (unsigned size)
 Construct a neighborhood of 3 dimensions.
 neighborhood3d (unsigned n, const coord crd[])
 Construct a neighborhood of 3 dimension.

Static Public Member Functions

static std::string name ()
 Return the name of the type.

Protected Member Functions

coord delta_update_ (const dpoint_type &dp)
 Update delta.

Friends

class abstract::window_base< abstract::neighborhood< neighborhood3d >, neighborhood3d >

Detailed Description

Neighborhood 3 dimensions.

It looks like structuring elements but here, when you add an element, you add its opposite. Points have 3 dimensions.

Definition at line 64 of file neighborhood3d.hh.


Member Typedef Documentation

typedef struct_elt_traits< self_type >::iter_type oln::neighborhood3d::iter_type

The associate image's type of iterator.

Warning:
Prefer the macros oln_iter_type(Iterable) and oln_iter_type_(Iterable) (the same without the 'typename' keyword)

Definition at line 78 of file neighborhood3d.hh.

typedef struct_elt_traits< self_type >::dpoint_type oln::neighborhood3d::dpoint_type

The associate image's type of dpoint (move point).

Warning:
Prefer the macros oln_dpoint_type(Pointable) and oln_dpoint_type_(Pointable) (the same without the 'typename' keyword)

Reimplemented from oln::abstract::neighborhoodnd< Exact >.

Definition at line 86 of file neighborhood3d.hh.


Constructor & Destructor Documentation

oln::neighborhood3d::neighborhood3d ( unsigned  size  )  [inline]

Construct a neighborhood of 3 dimensions.

Definition at line 129 of file neighborhood3d.hh.

00129                                   : super_type(size)
00130     {}

oln::neighborhood3d::neighborhood3d ( unsigned  n,
const coord  crd[] 
) [inline]

Construct a neighborhood of 3 dimension.

Definition at line 137 of file neighborhood3d.hh.

References add().

00137                                                   : super_type()
00138     {
00139       for (unsigned i = 0; i < 3 * n; i += 3)
00140         add(dpoint_type(crd[i], crd[i+1], crd[i+2]));
00141     }


Member Function Documentation

neighborhood3d& oln::neighborhood3d::add ( const dpoint_type dp  )  [inline]

Add a dpoint (move point) to the neighborhood.

Add a new member to the neighborhood. This point must be of 3 dimensions.

Definition at line 98 of file neighborhood3d.hh.

References oln::abstract::neighborhoodnd< Exact >::add_().

Referenced by add(), oln::mk_neighb_block(), oln::mk_neighb_ellipsoid(), and neighborhood3d().

00099     {
00100       this->exact().add_(dp);
00101       return this->exact().add_(-dp);
00102     }

neighborhood3d& oln::neighborhood3d::add ( coord  slice,
coord  row,
coord  col 
) [inline]

Add a point by coordinates to the neighborhood.

Add a new member by its coordinates to the neighborhood. The coordinates have 3 dimensions.

Definition at line 114 of file neighborhood3d.hh.

References add().

00115     {
00116       return this->add(dpoint3d(slice, row, col));
00117     }

coord oln::neighborhood3d::delta_update_ ( const dpoint_type dp  )  [inline, protected]

Update delta.

Definition at line 161 of file neighborhood3d.hh.

References oln::abstract::window_base< Sup, Exact >::delta_.

00162     {
00163       delta_(abs(dp.slice()));
00164       delta_(abs(dp.row()));
00165       delta_(abs(dp.col()));
00166       return delta_;
00167     }


The documentation for this class was generated from the following file:
Generated on Tue Feb 20 20:24:17 2007 for Olena by  doxygen 1.5.1