#include <slicing_morpher.hh>
Inheritance diagram for oln::morpher::slicing_morpher< SrcType, Exact >:
Public Types | |
typedef slicing_morpher< SrcType, Exact > | self_type |
The self type. | |
typedef image_id< self_type >::exact_type | exact_type |
The exact type of the morpher. | |
typedef super_slicing_morpher< SrcType, exact_type > | super_type |
The upper class. | |
typedef image_id< exact_type >::point_type | point_type |
The morpher point type. | |
typedef image_id< exact_type >::img_type | img_type |
typedef image_id< exact_type >::value_type | value_type |
The morpher value type. | |
Public Member Functions | |
slicing_morpher (const SrcType &ima, coord slice) | |
Construct a slicing morpher. | |
slicing_morpher (const self_type &r) | |
Construct a slicing morpher from another one. | |
slicing_morpher () | |
Empty constructor. | |
value_type & | at (const point_type &p) |
Return the stored value at the point. | |
const value_type | at (const point_type &p) const |
self_type & | assign (self_type &rhs) |
Perform a shallow copy from the decorated image of rhs to the current decorated image. The points will be shared by the two images. | |
self_type & | operator= (self_type &rhs) |
This operator= assigns rhs to the current image. | |
Static Public Member Functions | |
static std::string | name () |
Useful to debug. |
Using this class, a slicing of picture is a picture.
Definition at line 236 of file slicing_morpher.hh.
oln::morpher::slicing_morpher< SrcType, Exact >::slicing_morpher | ( | const SrcType & | ima, | |
coord | slice | |||
) | [inline] |
Construct a slicing morpher.
Definition at line 255 of file slicing_morpher.hh.
00256 : super_type(ima, slice) {}
oln::morpher::slicing_morpher< SrcType, Exact >::slicing_morpher | ( | ) | [inline] |
Empty constructor.
Needed by mlc_hierarchy::any_with_diamond.
Definition at line 267 of file slicing_morpher.hh.
value_type& oln::morpher::slicing_morpher< SrcType, Exact >::at | ( | const point_type & | p | ) | [inline] |
Return the stored value at the point.
Definition at line 275 of file slicing_morpher.hh.
References oln::morpher::abstract::generic_morpher< SrcType, Exact >::ima_.
Referenced by oln::morpher::slicing_morpher< SrcType, Exact >::assign().
00276 { 00277 typename SrcType::point_type tmp_p(p, this->slice_); 00278 return const_cast<value_type &>(this->ima_)[tmp_p]; 00279 }