| 1 |
|
/*========================================================================= |
| 2 |
|
|
| 3 |
|
Program: Insight Segmentation & Registration Toolkit |
| 4 |
|
Module: $RCSfile: itkImageRegionIterator.txx.html,v $ |
| 5 |
|
Language: C++ |
| 6 |
|
Date: $Date: 2006/01/17 19:15:39 $ |
| 7 |
|
Version: $Revision: 1.4 $ |
| 8 |
|
|
| 9 |
|
Copyright (c) Insight Software Consortium. All rights reserved. |
| 10 |
|
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. |
| 11 |
|
|
| 12 |
|
This software is distributed WITHOUT ANY WARRANTY; without even |
| 13 |
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 14 |
|
PURPOSE. See the above copyright notices for more information. |
| 15 |
|
|
| 16 |
|
=========================================================================*/ |
| 17 |
DEF |
#ifndef _itkImageRegionIterator_txx |
| 18 |
DEF |
#define _itkImageRegionIterator_txx |
| 19 |
|
|
| 20 |
|
#include "itkImageRegionIterator.h" |
| 21 |
|
|
| 22 |
|
namespace itk |
| 23 |
|
{ |
| 24 |
|
|
| 25 |
|
|
| 26 |
EML |
|
| 27 |
|
template< typename TImage > |
| 28 |
|
ImageRegionIterator<TImage> |
| 29 |
|
::ImageRegionIterator() |
| 30 |
IND |
**: ImageRegionConstIterator<TImage>() |
| 31 |
|
{ |
| 32 |
|
|
| 33 |
|
|
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
|
| 37 |
EML |
|
| 38 |
|
template< typename TImage > |
| 39 |
|
ImageRegionIterator<TImage> |
| 40 |
|
::ImageRegionIterator(ImageType *ptr, const RegionType& region) : |
| 41 |
IND |
**ImageRegionConstIterator<TImage>( ptr, region ) |
| 42 |
|
{ |
| 43 |
|
|
| 44 |
|
|
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
template< typename TImage > |
| 50 |
|
ImageRegionIterator<TImage> |
| 51 |
|
::ImageRegionIterator( const ImageIteratorWithIndex<TImage> &it): |
| 52 |
IND |
**ImageRegionConstIterator<TImage>(it) |
| 53 |
|
{ |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
|
| 57 |
|
template< typename TImage > |
| 58 |
|
ImageRegionIterator<TImage> |
| 59 |
|
::ImageRegionIterator( const ImageRegionConstIterator<TImage> &it): |
| 60 |
IND |
**ImageRegionConstIterator<TImage>(it) |
| 61 |
|
{ |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
|
| 65 |
|
template< typename TImage > |
| 66 |
|
ImageRegionIterator<TImage> & |
| 67 |
|
ImageRegionIterator<TImage> |
| 68 |
|
::operator=( const ImageRegionConstIterator<TImage> &it) |
| 69 |
|
{ |
| 70 |
|
this->ImageRegionConstIterator<TImage>::operator=(it); |
| 71 |
|
return *this; |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
|
| 75 |
|
|
| 76 |
|
template< typename TImage > |
| 77 |
|
ImageRegionIterator<TImage> |
| 78 |
|
ImageRegionIterator<TImage> |
| 79 |
|
::Begin() const |
| 80 |
|
{ |
| 81 |
|
return this->Superclass::Begin(); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
|
| 85 |
EML |
|
| 86 |
|
|
| 87 |
|
template< typename TImage > |
| 88 |
|
ImageRegionIterator<TImage> |
| 89 |
|
ImageRegionIterator<TImage> |
| 90 |
|
::End() const |
| 91 |
|
{ |
| 92 |
|
return this->Superclass::End(); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
|
| 96 |
EML |
|
| 97 |
EML |
|
| 98 |
|
} // end namespace itk |
| 99 |
|
|
| 100 |
|
#endif |
| 101 |
|
|