#include <window3d.hh>
Inheritance diagram for oln::window3d:
Public Types | |
typedef abstract::windownd< window3d > | super_type |
The super type. | |
typedef window3d | 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 |
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 | |
window3d & | add (const dpoint_type &dp) |
Add a dpoint (move point) to the window. | |
window3d & | add (coord slice, coord row, coord col) |
Add a point by coordinates to the window. | |
window3d () | |
Construct a window of 3 dimensions. | |
window3d (unsigned size) | |
Construct a window of 3 dimensions. | |
window3d (unsigned n, const coord crd[]) | |
Construct a window of 3 dimensions from several points. | |
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::window< window3d >, window3d > |
A window is a set of points. This class defines how to deal with. These points have 3 dimensions.
Definition at line 63 of file window3d.hh.
typedef struct_elt_traits< self_type >::iter_type oln::window3d::iter_type |
The associate image's type of iterator.
Definition at line 77 of file window3d.hh.
typedef struct_elt_traits< self_type >::dpoint_type oln::window3d::dpoint_type |
The associate image's type of dpoint (move point).
Reimplemented from oln::abstract::windownd< Exact >.
Definition at line 87 of file window3d.hh.
oln::window3d::window3d | ( | unsigned | size | ) | [inline] |
Construct a window of 3 dimensions.
Definition at line 128 of file window3d.hh.
00128 : super_type(size) 00129 {}
oln::window3d::window3d | ( | unsigned | n, | |
const coord | crd[] | |||
) | [inline] |
Construct a window of 3 dimensions from several points.
Definition at line 136 of file window3d.hh.
References add().
00136 : super_type(n) 00137 { 00138 for (unsigned i = 0; i < 3 * n; i += 3) 00139 add(dpoint_type(crd[i], crd[i+1], crd[i+2])); 00140 }
window3d& oln::window3d::add | ( | const dpoint_type & | dp | ) | [inline] |
Add a dpoint (move point) to the window.
Definition at line 98 of file window3d.hh.
References oln::abstract::windownd< Exact >::add_().
Referenced by add(), oln::mk_win_block(), oln::mk_win_ellipsoid(), oln::io::internal::read(), and window3d().
Add a point by coordinates to the window.
Definition at line 113 of file window3d.hh.
References add().
00114 { 00115 return this->add(dpoint_type(slice, row, col)); 00116 }
coord oln::window3d::delta_update_ | ( | const dpoint_type & | dp | ) | [inline, protected] |
Update delta.
Definition at line 160 of file window3d.hh.
References oln::abstract::window_base< Sup, Exact >::delta_.
00161 { 00162 delta_(abs(dp.slice())); 00163 delta_(abs(dp.row())); 00164 delta_(abs(dp.col())); 00165 return delta_; 00166 }