| 1 |
|
/*========================================================================= |
| 2 |
|
|
| 3 |
|
Program: Insight Segmentation & Registration Toolkit |
| 4 |
|
Module: $RCSfile: itkImageIteratorWithIndex.txx.html,v $ |
| 5 |
|
Language: C++ |
| 6 |
|
Date: $Date: 2006/01/17 19:15:38 $ |
| 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 _itkImageIteratorWithIndex_txx |
| 18 |
DEF |
#define _itkImageIteratorWithIndex_txx |
| 19 |
|
|
| 20 |
|
#include "itkImageIteratorWithIndex.h" |
| 21 |
|
|
| 22 |
|
namespace itk |
| 23 |
|
{ |
| 24 |
|
|
| 25 |
|
|
| 26 |
EML |
|
| 27 |
|
//---------------------------------------------------------------------- |
| 28 |
|
// Constructor |
| 29 |
|
//---------------------------------------------------------------------- |
| 30 |
|
template<class TImage> |
| 31 |
|
ImageIteratorWithIndex<TImage> |
| 32 |
|
::ImageIteratorWithIndex() |
| 33 |
|
{ |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
|
| 37 |
EML |
|
| 38 |
|
//---------------------------------------------------------------------- |
| 39 |
|
// Constructor |
| 40 |
|
//---------------------------------------------------------------------- |
| 41 |
|
template<class TImage> |
| 42 |
|
ImageIteratorWithIndex<TImage> |
| 43 |
|
::ImageIteratorWithIndex(const Self& it): |
| 44 |
IND |
**ImageConstIteratorWithIndex<TImage>(it) |
| 45 |
|
{ |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
|
| 49 |
EML |
|
| 50 |
|
//---------------------------------------------------------------------- |
| 51 |
|
// Constructor |
| 52 |
|
//---------------------------------------------------------------------- |
| 53 |
|
template<class TImage> |
| 54 |
|
ImageIteratorWithIndex<TImage> |
| 55 |
|
::ImageIteratorWithIndex(TImage *ptr, const RegionType & region ): |
| 56 |
IND |
**ImageConstIteratorWithIndex<TImage>( ptr, region ) |
| 57 |
|
{ |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
|
| 61 |
|
//---------------------------------------------------------------------- |
| 62 |
|
// Constructor |
| 63 |
|
//---------------------------------------------------------------------- |
| 64 |
|
template<class TImage> |
| 65 |
|
ImageIteratorWithIndex<TImage> |
| 66 |
|
::ImageIteratorWithIndex(const ImageConstIteratorWithIndex<TImage> & it): |
| 67 |
IND |
**ImageConstIteratorWithIndex<TImage>( it ) |
| 68 |
|
{ |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
|
| 72 |
|
|
| 73 |
|
//---------------------------------------------------------------------- |
| 74 |
|
// Assignment Operator |
| 75 |
|
//---------------------------------------------------------------------- |
| 76 |
|
template<class TImage> |
| 77 |
|
ImageIteratorWithIndex<TImage> & |
| 78 |
|
ImageIteratorWithIndex<TImage> |
| 79 |
|
::operator=(const ImageConstIteratorWithIndex<TImage> & it) |
| 80 |
|
{ |
| 81 |
|
this->ImageConstIteratorWithIndex<TImage>::operator=( it ); |
| 82 |
|
return *this; |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
|
| 86 |
|
|
| 87 |
|
//---------------------------------------------------------------------- |
| 88 |
|
// Assignment Operator |
| 89 |
|
//---------------------------------------------------------------------- |
| 90 |
|
template<class TImage> |
| 91 |
|
ImageIteratorWithIndex<TImage> & |
| 92 |
|
ImageIteratorWithIndex<TImage> |
| 93 |
|
::operator=(const Self& it) |
| 94 |
|
{ |
| 95 |
|
this->ImageConstIteratorWithIndex<TImage>::operator=( it ); |
| 96 |
|
return *this; |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
|
| 100 |
|
|
| 101 |
EML |
|
| 102 |
EML |
|
| 103 |
|
} // end namespace itk |
| 104 |
|
|
| 105 |
|
|
| 106 |
EML |
|
| 107 |
EML |
|
| 108 |
|
#endif |
| 109 |
|
|