#include <iter3d.hh>
Inheritance diagram for oln::abstract::iter3d< Exact >:
Public Types | |
typedef iter< Exact > | super_type |
The exact type of the object. | |
Public Member Functions | |
coord | slice () const |
Get the coordinates (slice) of iterator's current point. | |
coord | row () const |
Get the coordinates (row) of iterator's current point. | |
coord | col () const |
Get the coordinates (col) of iterator's current point. | |
Static Public Member Functions | |
std::string | name () |
Return the name of the type. | |
Protected Member Functions | |
point3d | to_point () const |
Get the current point viewed by the iterator. | |
iter3d () | |
Constructor. | |
iter3d (const image3d_size &size) | |
Construct an iterator (3d) on an image (3d).
| |
Protected Attributes | |
const coord | nslices_ |
The number of slices of the image you are iterating. | |
const coord | nrows_ |
The number of rows of the image you are iterating. | |
const coord | ncols_ |
The number of columns of the image you are iterating. | |
Friends | |
class | iter< Exact > |
Allow iterable object (like image, window, ...) of 3 dimensions traversing.
Definition at line 70 of file iter3d.hh.
|
Construct an iterator (3d) on an image (3d).
Definition at line 160 of file iter3d.hh.
00160 : 00161 super_type(), 00162 nslices_(size.nslices()), 00163 nrows_(size.nrows()), 00164 ncols_(size.ncols()) 00165 { 00166 precondition(size.nslices() > 0 00167 && size.nrows() > 0 00168 && size.ncols() > 0); 00169 this->exact().goto_begin_(); 00170 } }; |
|
Get the coordinates (col) of iterator's current point.
Definition at line 112 of file iter3d.hh.
00113 { 00114 return this->p_.col(); 00115 } |
|
Get the coordinates (row) of iterator's current point.
Definition at line 99 of file iter3d.hh.
00100 { 00101 return this->p_.row(); 00102 } |
|
Get the coordinates (slice) of iterator's current point.
Definition at line 86 of file iter3d.hh.
00087 { 00088 return this->p_.slice(); 00089 } |
|
Get the current point viewed by the iterator.
Definition at line 135 of file iter3d.hh.
|