#include <window2d.hh>
Inheritance diagram for oln::window2d:
Public Types | |
typedef abstract::windownd< window2d > | super_type |
The super type. | |
typedef window2d | self_type |
The 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 >::neighb_type | neighb_type |
Type of neighbor. | |
typedef struct_elt_traits< self_type >::dpoint_type | dpoint_type |
The associate image's type of dpoint (move point). | |
Public Member Functions | |
window2d & | add (const dpoint_type &dp) |
Add a dpoint (move point) to the window.
| |
window2d & | add (coord row, coord col) |
Add a point by coordinates to the window.
| |
window2d () | |
Construct a window of 2 dimensions. | |
window2d (unsigned size) | |
Construct a window of 2 dimensions.
| |
window2d (unsigned n, const coord crd[]) | |
Construct a window of 2 dimensions from several points.
| |
window2d (const io::internal::anything &r) | |
Static Public Member Functions | |
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::window< window2d >, window2d > |
A window is a set of points. This class defines how to deal with. These points have 2 dimension.
Definition at line 63 of file window2d.hh.
|
The associate image's type of dpoint (move point).
Reimplemented from oln::abstract::windownd< window2d >. Definition at line 88 of file window2d.hh. Referenced by window2d(). |
|
The associate image's type of iterator.
Definition at line 77 of file window2d.hh. |
|
Add a point by coordinates to the window.
Add a new member by its coordinates to the window. The coordinates are the row number and the column number because the window has 2 dimensions. Definition at line 115 of file window2d.hh. References add(), oln::coord, and oln::abstract::struct_elt< window2d >::dp().
00116 { 00117 dpoint_type dp(row, col); 00118 return add(dp); 00119 } |
|
Add a dpoint (move point) to the window.
Add a new member to the window. This point must be of 2 dimensions. Definition at line 100 of file window2d.hh. Referenced by add(), oln::topo::tarjan::obsolete::flat_zone< I >::doit(), oln::mk_win_ellipse(), oln::mk_win_from_neighb(), oln::mk_win_rectangle(), and window2d().
00101 {
00102 return this->exact().add_(dp);
00103 }
|
|
Update delta.
Definition at line 169 of file window2d.hh. References oln::abstract::window_base< window< window2d >, window2d >::delta_.
|