Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > d5e74628f0e673bb8680aebce32b2c04 > files > 16057

itk-doc-3.12.0-1mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta name="robots" content="noindex">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ITK: itkImageConstIteratorWithIndex.h Source File</title>
<link href="DoxygenStyle.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">


<!--  Section customized for INSIGHT : Tue Jul 17 01:02:45 2001 -->
<center>
<a href="index.html" class="qindex">Main Page</a>&nbsp;&nbsp; 
<a href="modules.html" class="qindex">Groups</a>&nbsp;&nbsp;
<a href="namespaces.html" class="qindex">Namespace List</a>&nbsp;&nbsp;
<a href="hierarchy.html" class="qindex">Class Hierarchy</a>&nbsp;&nbsp;
<a href="classes.html" class="qindex">Alphabetical List</a>&nbsp;&nbsp;
<a href="annotated.html" class="qindex">Compound List</a>&nbsp;&nbsp; 
<a href="files.html" class="qindex">File
List</a>&nbsp;&nbsp; 
<a href="namespacemembers.html" class="qindex">Namespace Members</a>&nbsp;&nbsp; 
<a href="functions.html" class="qindex">Compound Members</a>&nbsp;&nbsp; 
<a href="globals.html" class="qindex">File Members</a>&nbsp;&nbsp;
<a href="pages.html" class="qindex">Concepts</a></center>


<!-- Generated by Doxygen 1.5.9 -->
  <div class="navpath"><a class="el" href="dir_02e23d841c198393a6e961e9a0678fff.html">Code</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_ea7fc529ede9a38b0438cf13831ae873.html">Common</a>
  </div>
<div class="contents">
<h1>itkImageConstIteratorWithIndex.h</h1><a href="itkImageConstIteratorWithIndex_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span>
<a name="l00002"></a>00002 <span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment">  Program:   Insight Segmentation &amp; Registration Toolkit</span>
<a name="l00004"></a>00004 <span class="comment">  Module:    $RCSfile: itkImageConstIteratorWithIndex.h,v $</span>
<a name="l00005"></a>00005 <span class="comment">  Language:  C++</span>
<a name="l00006"></a>00006 <span class="comment">  Date:      $Date: 2008-10-17 01:41:59 $</span>
<a name="l00007"></a>00007 <span class="comment">  Version:   $Revision: 1.25 $</span>
<a name="l00008"></a>00008 <span class="comment"></span>
<a name="l00009"></a>00009 <span class="comment">  Copyright (c) Insight Software Consortium. All rights reserved.</span>
<a name="l00010"></a>00010 <span class="comment">  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.</span>
<a name="l00011"></a>00011 <span class="comment"></span>
<a name="l00012"></a>00012 <span class="comment">     This software is distributed WITHOUT ANY WARRANTY; without even</span>
<a name="l00013"></a>00013 <span class="comment">     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span>
<a name="l00014"></a>00014 <span class="comment">     PURPOSE.  See the above copyright notices for more information.</span>
<a name="l00015"></a>00015 <span class="comment"></span>
<a name="l00016"></a>00016 <span class="comment">=========================================================================*/</span>
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef __itkImageConstIteratorWithIndex_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkImageConstIteratorWithIndex_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkIndex_8h.html">itkIndex.h</a>"</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkImage_8h.html">itkImage.h</a>"</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;memory&gt;</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="keyword">namespace </span>itk
<a name="l00025"></a>00025 {
<a name="l00026"></a>00026 
<a name="l00090"></a>00090 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> TImage&gt;
<a name="l00091"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html">00091</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">ImageConstIteratorWithIndex</a>
<a name="l00092"></a>00092 {
<a name="l00093"></a>00093 <span class="keyword">public</span>:
<a name="l00095"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#cb3756c8c91c9d2fa9357618df027828">00095</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">ImageConstIteratorWithIndex</a> <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">Self</a>;
<a name="l00096"></a>00096 
<a name="l00101"></a>00101   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(ImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, TImage::ImageDimension);
<a name="l00102"></a>00102 
<a name="l00104"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#cf82b2986fcd8be011a3cf7f8226a972">00104</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">TImage::IndexType</a>          <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a>;
<a name="l00105"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#666a69717655c3dc1e3358bf7c34b830">00105</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> IndexType::IndexValueType  IndexValueType;
<a name="l00106"></a>00106 
<a name="l00108"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#22812dec14f8622b562858219cd2dcee">00108</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">TImage::SizeType</a>           <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">SizeType</a>;
<a name="l00109"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#a34eb1df8133d9e2f8c5596de86af201">00109</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> SizeType::SizeValueType    SizeValueType;
<a name="l00110"></a>00110 
<a name="l00112"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#267a25bbd59e8b7042aee0d5d10c6376">00112</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">TImage::RegionType</a>         <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">RegionType</a>;
<a name="l00113"></a>00113 
<a name="l00115"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#dff3c50e85f8f3f66120ef879489af81">00115</a>   <span class="keyword">typedef</span> TImage   ImageType;
<a name="l00116"></a>00116 
<a name="l00120"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#208238878fd95cd0c02ce6fdb16013cf">00120</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> TImage::PixelContainer       PixelContainer;
<a name="l00121"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#e618dfa09786ced0308bf943b20eead1">00121</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">PixelContainer::Pointer</a>      PixelContainerPointer;
<a name="l00122"></a>00122 
<a name="l00124"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#02b2178922af5f957dc75af953d1dc00">00124</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> TImage::InternalPixelType   InternalPixelType;
<a name="l00125"></a>00125 
<a name="l00127"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#0a240ec7023d07dccfcb4247f6be2a3f">00127</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> TImage::PixelType   PixelType;
<a name="l00128"></a>00128 
<a name="l00131"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#8a00e0f5d77545f20b5eacb3d04b0aad">00131</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> TImage::AccessorType            AccessorType;
<a name="l00132"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#ca45764cf9198ce7095e17add4cd9120">00132</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> TImage::AccessorFunctorType     AccessorFunctorType;
<a name="l00133"></a>00133 
<a name="l00135"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#3e21000fcca215f0c44c4ec0883fa932">00135</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> TImage::OffsetType           OffsetType;
<a name="l00136"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#505a4f80c7c5b7490cc782d3b29661b4">00136</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> OffsetType::OffsetValueType  OffsetValueType;
<a name="l00137"></a>00137 
<a name="l00140"></a>00140   <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">ImageConstIteratorWithIndex</a>();
<a name="l00141"></a>00141 
<a name="l00144"></a>00144   <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">ImageConstIteratorWithIndex</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">Self</a>&amp; it);
<a name="l00145"></a>00145 
<a name="l00148"></a>00148   <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">ImageConstIteratorWithIndex</a>( <span class="keyword">const</span> TImage *ptr,
<a name="l00149"></a>00149                                <span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">RegionType</a>&amp; region );
<a name="l00150"></a>00150 
<a name="l00153"></a>00153   <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">Self</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">Self</a>&amp; it);
<a name="l00154"></a>00154 
<a name="l00156"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#dcbb85c8be0c7557624424335caa931f">00156</a>   <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structitk_1_1GetImageDimension.html">GetImageDimension</a>()
<a name="l00157"></a>00157     {<span class="keywordflow">return</span> ImageDimension;}
<a name="l00158"></a>00158 
<a name="l00161"></a>00161   <span class="keywordtype">bool</span>
<a name="l00162"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#7c3a8348718e6da9b93862f720179527">00162</a>   <a class="code" href="namespaceitk_1_1ImageToImageFilterDetail.html#7bf30438b5d3bdc0eddbecd9b17baa3b">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">Self</a> &amp;it)<span class="keyword"> const</span>
<a name="l00163"></a>00163 <span class="keyword">    </span>{
<a name="l00164"></a>00164     <span class="comment">// two iterators are the same if they "point to" the same memory location</span>
<a name="l00165"></a>00165     <span class="keywordflow">return</span> (m_Position) != (it.<a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#29b97a95afecaca05cbc5bb566e49bcd">m_Position</a>);
<a name="l00166"></a>00166     }
<a name="l00167"></a>00167 
<a name="l00170"></a>00170   <span class="keywordtype">bool</span>
<a name="l00171"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#69fd95813ced508da9d4130633bf61a7">00171</a>   <a class="code" href="namespaceitk.html#e1c1b02c301187419478f5126c789a01">operator==</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">Self</a> &amp;it)<span class="keyword"> const</span>
<a name="l00172"></a>00172 <span class="keyword">    </span>{
<a name="l00173"></a>00173     <span class="comment">// two iterators are the same if they "point to" the same memory location</span>
<a name="l00174"></a>00174     <span class="keywordflow">return</span> (m_Position) == (it.<a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#29b97a95afecaca05cbc5bb566e49bcd">m_Position</a>);
<a name="l00175"></a>00175     }
<a name="l00176"></a>00176 
<a name="l00179"></a>00179   <span class="keywordtype">bool</span>
<a name="l00180"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#17557c3406e7298ceb988a41cd44085d">00180</a>   operator&lt;=(<span class="keyword">const</span> <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">Self</a> &amp;it)<span class="keyword"> const</span>
<a name="l00181"></a>00181 <span class="keyword">    </span>{
<a name="l00182"></a>00182     <span class="comment">// an iterator is "less than" another if it "points to" a lower</span>
<a name="l00183"></a>00183     <span class="comment">// memory location</span>
<a name="l00184"></a>00184     <span class="keywordflow">return</span> (m_Position) &lt;= (it.<a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#29b97a95afecaca05cbc5bb566e49bcd">m_Position</a>);
<a name="l00185"></a>00185     }
<a name="l00186"></a>00186 
<a name="l00189"></a>00189   <span class="keywordtype">bool</span>
<a name="l00190"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#ac68f05a2dc569dd35c5c79849333191">00190</a>   operator&lt;(<span class="keyword">const</span> <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">Self</a> &amp;it)<span class="keyword"> const</span>
<a name="l00191"></a>00191 <span class="keyword">    </span>{
<a name="l00192"></a>00192     <span class="comment">// an iterator is "less than" another if it "points to" a lower</span>
<a name="l00193"></a>00193     <span class="comment">// memory location</span>
<a name="l00194"></a>00194     <span class="keywordflow">return</span> (m_Position) &lt; (it.<a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#29b97a95afecaca05cbc5bb566e49bcd">m_Position</a>);
<a name="l00195"></a>00195     }
<a name="l00196"></a>00196 
<a name="l00199"></a>00199   <span class="keywordtype">bool</span>
<a name="l00200"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#7e1bb8fad9a8712c98fbbaadbb4e7006">00200</a>   operator&gt;=(<span class="keyword">const</span> <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">Self</a> &amp;it)<span class="keyword"> const</span>
<a name="l00201"></a>00201 <span class="keyword">    </span>{
<a name="l00202"></a>00202     <span class="comment">// an iterator is "greater than" another if it "points to" a higher</span>
<a name="l00203"></a>00203     <span class="comment">// memory location</span>
<a name="l00204"></a>00204     <span class="keywordflow">return</span> (m_Position) &gt;= (it.<a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#29b97a95afecaca05cbc5bb566e49bcd">m_Position</a>);
<a name="l00205"></a>00205     }
<a name="l00206"></a>00206 
<a name="l00209"></a>00209   <span class="keywordtype">bool</span>
<a name="l00210"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#890806ee690429a0ec33eedab156cc9b">00210</a>   operator&gt;(<span class="keyword">const</span> <a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">Self</a> &amp;it)<span class="keyword"> const</span>
<a name="l00211"></a>00211 <span class="keyword">    </span>{
<a name="l00212"></a>00212     <span class="comment">// an iterator is "greater than" another if it "points to" a higher</span>
<a name="l00213"></a>00213     <span class="comment">// memory location</span>
<a name="l00214"></a>00214     <span class="keywordflow">return</span> (m_Position) &gt; (it.<a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#29b97a95afecaca05cbc5bb566e49bcd">m_Position</a>);
<a name="l00215"></a>00215     }
<a name="l00216"></a>00216 
<a name="l00219"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#47187c26a17ceb7ad35b61b609ca221e">00219</a>   <span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a> &amp; GetIndex()<span class="keyword"> const</span>
<a name="l00220"></a>00220 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_PositionIndex; }
<a name="l00221"></a>00221 
<a name="l00224"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#7e7af007ee848b64dc23df37055236f3">00224</a>   <span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">RegionType</a>&amp; GetRegion()<span class="keyword"> const</span>
<a name="l00225"></a>00225 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_Region; }
<a name="l00226"></a>00226 
<a name="l00229"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#f55254835099dc3cc5bd01d0d7ba4cb8">00229</a>   <span class="keywordtype">void</span> SetIndex(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a> &amp;ind)
<a name="l00230"></a>00230     {
<a name="l00231"></a>00231     m_Position = m_Image-&gt;GetBufferPointer() + m_Image-&gt;ComputeOffset( ind );
<a name="l00232"></a>00232     m_PositionIndex = ind;
<a name="l00233"></a>00233     }
<a name="l00235"></a>00235 
<a name="l00237"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#bc47eae67c82b79204a608fb1efec2be">00237</a>   PixelType Get(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00238"></a>00238 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_PixelAccessorFunctor.Get(*m_Position); }
<a name="l00239"></a>00239 
<a name="l00243"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#b7383c35f9a35ff03c29b0ec66af6f3e">00243</a>   <span class="keyword">const</span> PixelType &amp; Value(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00244"></a>00244 <span class="keyword">    </span>{ <span class="keywordflow">return</span> *m_Position; }
<a name="l00245"></a>00245 
<a name="l00248"></a>00248   <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a> Begin(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00249"></a>00249 
<a name="l00251"></a>00251   <span class="keywordtype">void</span> GoToBegin(<span class="keywordtype">void</span>);
<a name="l00252"></a>00252 
<a name="l00255"></a>00255   <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a> End(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00256"></a>00256 
<a name="l00258"></a>00258   <span class="keywordtype">void</span> GoToReverseBegin(<span class="keywordtype">void</span>);
<a name="l00259"></a>00259 
<a name="l00261"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#724329ce43a18b0d45d2bfc615994209">00261</a>   <span class="keywordtype">bool</span> IsAtReverseEnd(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00262"></a>00262 <span class="keyword">    </span>{
<a name="l00263"></a>00263     <span class="keywordflow">return</span> !m_Remaining;
<a name="l00264"></a>00264     }
<a name="l00265"></a>00265 
<a name="l00267"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#53c90a4272962ab0fce64a6c469e4faf">00267</a>   <span class="keywordtype">bool</span> IsAtEnd(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00268"></a>00268 <span class="keyword">    </span>{
<a name="l00269"></a>00269     <span class="keywordflow">return</span> !m_Remaining;
<a name="l00270"></a>00270     }
<a name="l00271"></a>00271 
<a name="l00273"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#fb42bf4d51c48d74c99baacda50e605e">00273</a>   <span class="keywordtype">bool</span> Remaining()
<a name="l00274"></a>00274     {
<a name="l00275"></a>00275     <span class="keywordflow">return</span> m_Remaining;
<a name="l00276"></a>00276     }
<a name="l00277"></a>00277 
<a name="l00278"></a>00278 <span class="keyword">protected</span>: <span class="comment">//made protected so other iterators can access</span>
<a name="l00279"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#d08fd0266d128d234963046671a5638a">00279</a>   <span class="keyword">typename</span> TImage::ConstWeakPointer     m_Image;
<a name="l00280"></a>00280 
<a name="l00281"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#b1cdca471a5e57e3fba48d501a6043de">00281</a>   <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a>    m_PositionIndex;     <span class="comment">// Index where we currently are</span>
<a name="l00282"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#485e1e75eb7f9a76bd782c3f8ff9615d">00282</a>   <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a>    m_BeginIndex;        <span class="comment">// Index to start iterating over</span>
<a name="l00283"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#47c8cb272a12ec7d8d2915892a13458b">00283</a>   <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a>    m_EndIndex;          <span class="comment">// Index to finish iterating:</span>
<a name="l00284"></a>00284                                     <span class="comment">// one pixel past the end of each</span>
<a name="l00285"></a>00285                                     <span class="comment">// row, col, slice, etc....</span>
<a name="l00286"></a>00286 
<a name="l00287"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#9ab00be1bd7554e16d6722fad940df2f">00287</a>   <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">RegionType</a>   m_Region;            <span class="comment">// region to iterate over</span>
<a name="l00288"></a>00288 
<a name="l00289"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#5ccbafc92728869e5aee95d672d60200">00289</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>          m_OffsetTable[ ImageDimension + 1 ];
<a name="l00290"></a>00290 
<a name="l00291"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#29b97a95afecaca05cbc5bb566e49bcd">00291</a>   <span class="keyword">const</span> InternalPixelType     *m_Position;
<a name="l00292"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#42d4c28f573567dcd4eb08dfac83cb40">00292</a>   <span class="keyword">const</span> InternalPixelType     *m_Begin;
<a name="l00293"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#f648439805b3fbf771b348fa5a5ed22f">00293</a>   <span class="keyword">const</span> InternalPixelType     *m_End;
<a name="l00294"></a>00294 
<a name="l00295"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#b9e271619c90a0022969f70e0fd3ce63">00295</a>   <span class="keywordtype">bool</span>                         m_Remaining;
<a name="l00296"></a>00296 
<a name="l00297"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#704b695692c1e7ec13eb14a8e9dec31f">00297</a>   AccessorType           m_PixelAccessor;
<a name="l00298"></a><a class="code" href="classitk_1_1ImageConstIteratorWithIndex.html#5b04cf8f61fd024d1ba2f15adcfc3e79">00298</a>   AccessorFunctorType    m_PixelAccessorFunctor;
<a name="l00299"></a>00299 
<a name="l00300"></a>00300 };
<a name="l00301"></a>00301 
<a name="l00302"></a>00302 } <span class="comment">// end namespace itk</span>
<a name="l00303"></a>00303 
<a name="l00304"></a>00304 <span class="comment">// Define instantiation macro for this template.</span>
<a name="l00305"></a><a class="code" href="itkImageConstIteratorWithIndex_8h.html#81d804b73fda726342916dbd556db73b">00305</a> <span class="preprocessor">#define ITK_TEMPLATE_ImageConstIteratorWithIndex(_, EXPORT, x, y) namespace itk { \</span>
<a name="l00306"></a>00306 <span class="preprocessor">  _(1(class EXPORT ImageConstIteratorWithIndex&lt; ITK_TEMPLATE_1 x &gt;)) \</span>
<a name="l00307"></a>00307 <span class="preprocessor">  namespace Templates { typedef ImageConstIteratorWithIndex&lt; ITK_TEMPLATE_1 x &gt; ImageConstIteratorWithIndex##y; } \</span>
<a name="l00308"></a>00308 <span class="preprocessor">  }</span>
<a name="l00309"></a>00309 <span class="preprocessor"></span>
<a name="l00310"></a>00310 
<a name="l00311"></a>00311 <span class="preprocessor">#if ITK_TEMPLATE_EXPLICIT</span>
<a name="l00312"></a>00312 <span class="preprocessor"></span><span class="preprocessor"># include "Templates/itkImageConstIteratorWithIndex+-.h"</span>
<a name="l00313"></a>00313 <span class="preprocessor">#endif</span>
<a name="l00314"></a>00314 <span class="preprocessor"></span>
<a name="l00315"></a>00315 <span class="preprocessor">#if ITK_TEMPLATE_TXX</span>
<a name="l00316"></a>00316 <span class="preprocessor"></span><span class="preprocessor"># include "itkImageConstIteratorWithIndex.txx"</span>
<a name="l00317"></a>00317 <span class="preprocessor">#endif</span>
<a name="l00318"></a>00318 <span class="preprocessor"></span>
<a name="l00319"></a>00319 <span class="preprocessor">#endif</span>
<a name="l00320"></a>00320 <span class="preprocessor"></span>
</pre></div></div>
<hr><address><small>
Generated at Thu May 7 23:01:39 2009 for ITK  by <a href="http://www.stack.nl/~dimitri/doxygen/index.html"> <img 
src="http://www.stack.nl/~dimitri/doxygen/doxygen.png" alt="doxygen"
align="middle" border=0 width=110 height=53>
</a> 1.5.9 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2000</small></address>
</body>
</html>