Sophie

Sophie

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

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: itkConstShapedNeighborhoodIterator.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>itkConstShapedNeighborhoodIterator.h</h1><a href="itkConstShapedNeighborhoodIterator_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: itkConstShapedNeighborhoodIterator.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-07 12:04:18 $</span>
<a name="l00007"></a>00007 <span class="comment">  Version:   $Revision: 1.15 $</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 __itkConstShapedNeighborhoodIterator_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkConstShapedNeighborhoodIterator_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkNeighborhoodIterator_8h.html">itkNeighborhoodIterator.h</a>"</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="l00068"></a>00068 <span class="keyword">template</span>&lt;<span class="keyword">class </span>TImage,  <span class="keyword">class </span>TBoundaryCondition
<a name="l00069"></a>00069                        = ZeroFluxNeumannBoundaryCondition&lt;TImage&gt; &gt;
<a name="l00070"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html">00070</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html" title="Const version of ShapedNeighborhoodIterator, defining iteration of a local N-dimensional...">ConstShapedNeighborhoodIterator</a>
<a name="l00071"></a>00071   :  <span class="keyword">private</span> <a class="code" href="classitk_1_1NeighborhoodIterator.html" title="Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image...">NeighborhoodIterator</a>&lt;TImage, TBoundaryCondition&gt;
<a name="l00072"></a>00072 {
<a name="l00073"></a>00073 <span class="keyword">public</span>:
<a name="l00074"></a>00074 
<a name="l00076"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#5d377ac64c0604f248c574bef3cc4442">00076</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> TImage::InternalPixelType InternalPixelType;
<a name="l00077"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#8daa4a608597d3a4c38adf039c4fffdf">00077</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> TImage::PixelType         PixelType;
<a name="l00078"></a>00078 
<a name="l00080"></a>00080   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(Dimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, TImage::ImageDimension);
<a name="l00081"></a>00081 
<a name="l00083"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#af2120d506f093d216169658bfd6f702">00083</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html" title="Const version of ShapedNeighborhoodIterator, defining iteration of a local N-dimensional...">ConstShapedNeighborhoodIterator</a>                  <a class="code" href="classitk_1_1ConstNeighborhoodIterator.html" title="Const version of NeighborhoodIterator, defining iteration of a local N-dimensional...">Self</a>;
<a name="l00084"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#6fea1416fb55b1ce07443407ed05588f">00084</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1NeighborhoodIterator.html">NeighborhoodIterator&lt;TImage, TBoundaryCondition&gt;</a> <a class="code" href="classitk_1_1Neighborhood.html" title="A light-weight container object for storing an N-dimensional neighborhood of values...">Superclass</a>;
<a name="l00085"></a>00085 
<a name="l00087"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#1526861e26fb54906934e792085358aa">00087</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Offset.html">Superclass::OffsetType</a>      <a class="code" href="classitk_1_1Offset.html">OffsetType</a>;
<a name="l00088"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#0dd1a84e994a195dc3edd2ac29881bf2">00088</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> OffsetType::OffsetValueType OffsetValueType;
<a name="l00089"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#5cf4d7a11c03000ebcc1f48cd2f28aa7">00089</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Size.html" title="Represent the size (bounds) of a n-dimensional image.">Superclass::RadiusType</a>      <a class="code" href="classitk_1_1Size.html" title="Represent the size (bounds) of a n-dimensional image.">RadiusType</a>;  
<a name="l00090"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#3093fe90ac34f2efe7086df3bf441755">00090</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Size.html" title="Represent the size (bounds) of a n-dimensional image.">Superclass::SizeType</a>        <a class="code" href="classitk_1_1Size.html" title="Represent the size (bounds) of a n-dimensional image.">SizeType</a>;
<a name="l00091"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#2aed3e39c74438fc1d557fc6ef912d6f">00091</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::SizeValueType   SizeValueType;
<a name="l00092"></a>00092 
<a name="l00094"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#3648117fd1228ea55368b06db25e151f">00094</a>   <span class="keyword">typedef</span> TImage                                   ImageType;
<a name="l00095"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#fbc0cb953be33a2c215ce6598e9ffd12">00095</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="l00096"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#3f804c6cfab42502eb024ba7b8713b1f">00096</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Index.html">Index&lt;itkGetStaticConstMacro(Dimension)&gt;</a> <a class="code" href="classitk_1_1Index.html">IndexType</a>;
<a name="l00097"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#886b83bc817ae7fe5f58d9a726e7b8b4">00097</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> IndexType::IndexValueType       IndexValueType;
<a name="l00098"></a>00098   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Neighborhood.html" title="A light-weight container object for storing an N-dimensional neighborhood of values...">Neighborhood&lt;PixelType, itkGetStaticConstMacro(Dimension)&gt;</a> 
<a name="l00099"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#6d0744d62cccdc8cefc92535fa38c456">00099</a>                                                    <a class="code" href="classitk_1_1Neighborhood.html" title="A light-weight container object for storing an N-dimensional neighborhood of values...">NeighborhoodType</a>;
<a name="l00101"></a>00101 
<a name="l00104"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#6d143faeb02402002fd55112d0897db2">00104</a>   <span class="keyword">typedef</span> std::list&lt;unsigned int&gt; IndexListType;
<a name="l00105"></a>00105 
<a name="l00107"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#e14094f59a250c982d1a41c878ae97f2">00107</a>   <span class="keyword">typedef</span> TBoundaryCondition BoundaryConditionType;
<a name="l00108"></a>00108 
<a name="l00110"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#506e3fcdaaa973856b36372f342fe5e6">00110</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageBoundaryCondition.html">ImageBoundaryCondition&lt;ImageType&gt;</a> *<a class="code" href="classitk_1_1ImageBoundaryCondition.html">ImageBoundaryConditionPointerType</a>;
<a name="l00111"></a>00111 
<a name="l00113"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html">00113</a>   <span class="keyword">struct </span><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html">ConstIterator</a>
<a name="l00114"></a>00114     {
<a name="l00115"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#0f3fb67c8d89cd94e795618cea50e56b">00115</a>     <a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#0f3fb67c8d89cd94e795618cea50e56b">ConstIterator</a>() { m_NeighborhoodIterator = 0; }
<a name="l00116"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#b20ceb3d28b29cbc45c6052427676682">00116</a>     <a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html">ConstIterator</a>(<a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html" title="Const version of ShapedNeighborhoodIterator, defining iteration of a local N-dimensional...">Self</a> *s)
<a name="l00117"></a>00117       {
<a name="l00118"></a>00118       m_NeighborhoodIterator = s;
<a name="l00119"></a>00119       this-&gt;GoToBegin();
<a name="l00120"></a>00120       }
<a name="l00121"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#654ba726810170e09e7031a73745f267">00121</a>     <a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#654ba726810170e09e7031a73745f267">~ConstIterator</a>() {}
<a name="l00122"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#21f2c1f5c5fd7ee68daa09d2f9771227">00122</a>     <span class="keyword">const</span> <a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html">ConstIterator</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html">ConstIterator</a> &amp;o)
<a name="l00123"></a>00123       {
<a name="l00124"></a>00124       m_NeighborhoodIterator = o.<a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#30ece7ba23a47a05a81d989b243ed20a">m_NeighborhoodIterator</a>;
<a name="l00125"></a>00125       m_ListIterator = o.<a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#a33f27c32324ccde7700e0959c1e6675">m_ListIterator</a>;
<a name="l00126"></a>00126       <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00127"></a>00127       }
<a name="l00129"></a>00129 
<a name="l00130"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#ddd529c658b3c3ef2de98a5dab9600ee">00130</a>     <a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html">ConstIterator</a>(<span class="keyword">const</span> <a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html">ConstIterator</a> &amp;o)
<a name="l00131"></a>00131       {
<a name="l00132"></a>00132       m_NeighborhoodIterator = o.<a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#30ece7ba23a47a05a81d989b243ed20a">m_NeighborhoodIterator</a>;
<a name="l00133"></a>00133       m_ListIterator = o.<a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#a33f27c32324ccde7700e0959c1e6675">m_ListIterator</a>;
<a name="l00134"></a>00134       }
<a name="l00135"></a>00135 
<a name="l00136"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#2938c76cd2770bc6acba283b368aeed2">00136</a>     <span class="keywordtype">void</span> operator++(<span class="keywordtype">int</span>)
<a name="l00137"></a>00137       { m_ListIterator++; }
<a name="l00138"></a>00138 
<a name="l00139"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#172541be6c77ddfefc0617df519d5bb8">00139</a>     <span class="keywordtype">void</span> operator--(<span class="keywordtype">int</span>)
<a name="l00140"></a>00140       { m_ListIterator--; }
<a name="l00141"></a>00141       
<a name="l00142"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#d264f2d1c165499ed426031b5e43332e">00142</a>     <span class="keyword">const</span> <a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html">ConstIterator</a> &amp;operator++()
<a name="l00143"></a>00143       {
<a name="l00144"></a>00144       m_ListIterator++;
<a name="l00145"></a>00145       <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00146"></a>00146       }
<a name="l00147"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#f8a3408bff4134d3790c0e68c0666ffa">00147</a>     <span class="keyword">const</span> <a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html">ConstIterator</a> &amp;operator--()
<a name="l00148"></a>00148       {
<a name="l00149"></a>00149       m_ListIterator--;
<a name="l00150"></a>00150       <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00151"></a>00151       }
<a name="l00152"></a>00152       
<a name="l00153"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#5ba5329298e4704b9b82ba6229f2a2e5">00153</a>     <span class="keywordtype">bool</span> <a class="code" href="namespaceitk_1_1ImageToImageFilterDetail.html#7bf30438b5d3bdc0eddbecd9b17baa3b">operator!=</a>(<span class="keyword">const</span> <a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html">ConstIterator</a> &amp;o)<span class="keyword"> const</span>
<a name="l00154"></a>00154 <span class="keyword">      </span>{ <span class="keywordflow">return</span> m_ListIterator != o.<a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#a33f27c32324ccde7700e0959c1e6675">m_ListIterator</a>; }
<a name="l00155"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#92326ac930e80cbb2a9aff0ab6b7eec7">00155</a>     <span class="keywordtype">bool</span> <a class="code" href="namespaceitk.html#e1c1b02c301187419478f5126c789a01">operator==</a>(<span class="keyword">const</span> <a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html">ConstIterator</a> &amp;o)<span class="keyword"> const</span>
<a name="l00156"></a>00156 <span class="keyword">      </span>{ <span class="keywordflow">return</span> m_ListIterator == o.<a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#a33f27c32324ccde7700e0959c1e6675">m_ListIterator</a>; }
<a name="l00157"></a>00157 
<a name="l00158"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#7fd8d0dbefb8ea83d35016f3942df7f7">00158</a>     <span class="keywordtype">bool</span> IsAtEnd()<span class="keyword"> const</span>
<a name="l00159"></a>00159 <span class="keyword">      </span>{
<a name="l00160"></a>00160       <span class="keywordflow">if</span> (m_ListIterator == m_NeighborhoodIterator-&gt;GetActiveIndexList().end())
<a name="l00161"></a>00161         {
<a name="l00162"></a>00162         <span class="keywordflow">return</span> <span class="keyword">true</span>; 
<a name="l00163"></a>00163         }
<a name="l00164"></a>00164       <span class="keywordflow">else</span> 
<a name="l00165"></a>00165         { 
<a name="l00166"></a>00166         <span class="keywordflow">return</span> <span class="keyword">false</span>; 
<a name="l00167"></a>00167         }
<a name="l00168"></a>00168       }
<a name="l00169"></a>00169 
<a name="l00170"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#c01f13ee3768313ca1143ad1cd9de944">00170</a>     <span class="keywordtype">void</span> GoToBegin()
<a name="l00171"></a>00171       {
<a name="l00172"></a>00172       m_ListIterator = m_NeighborhoodIterator-&gt;GetActiveIndexList().begin();
<a name="l00173"></a>00173       }
<a name="l00174"></a>00174 
<a name="l00175"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#f838997109237714daacb807b0f68231">00175</a>     <span class="keywordtype">void</span> GoToEnd()
<a name="l00176"></a>00176       {
<a name="l00177"></a>00177       m_ListIterator = m_NeighborhoodIterator-&gt;GetActiveIndexList().end();
<a name="l00178"></a>00178       }
<a name="l00179"></a>00179 
<a name="l00180"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#af11bae3f11af12943a3ed4f6b8c31d4">00180</a>     PixelType Get()<span class="keyword"> const</span>
<a name="l00181"></a>00181 <span class="keyword">      </span>{ <span class="keywordflow">return</span> m_NeighborhoodIterator-&gt;GetPixel(*m_ListIterator); }
<a name="l00182"></a>00182 
<a name="l00183"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#723e3fa144f3d744f11a1dfe9adad1dd">00183</a>     <a class="code" href="classitk_1_1Offset.html">OffsetType</a> GetNeighborhoodOffset()<span class="keyword"> const</span>
<a name="l00184"></a>00184 <span class="keyword">      </span>{ <span class="keywordflow">return</span> m_NeighborhoodIterator-&gt;GetOffset(*m_ListIterator); }
<a name="l00185"></a>00185 
<a name="l00186"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#8798aa7d0bc3e9b42591902b7e3d32f6">00186</a>     <span class="keyword">typename</span> <a class="code" href="namespaceitk.html#87ac35b82c3f0b7231a21eda576557d1">IndexListType::value_type</a> GetNeighborhoodIndex()<span class="keyword"> const</span>
<a name="l00187"></a>00187 <span class="keyword">      </span>{ <span class="keywordflow">return</span> *m_ListIterator; }
<a name="l00188"></a>00188 
<a name="l00189"></a>00189   <span class="keyword">protected</span>:
<a name="l00190"></a>00190       
<a name="l00191"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#30ece7ba23a47a05a81d989b243ed20a">00191</a>     <a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html" title="Const version of ShapedNeighborhoodIterator, defining iteration of a local N-dimensional...">Self</a> *m_NeighborhoodIterator;
<a name="l00192"></a>00192       
<a name="l00193"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#a33f27c32324ccde7700e0959c1e6675">00193</a>     <span class="keyword">typename</span> IndexListType::const_iterator m_ListIterator;
<a name="l00194"></a>00194 
<a name="l00195"></a><a class="code" href="structitk_1_1ConstShapedNeighborhoodIterator_1_1ConstIterator.html#410ecaa4030e60a4876d98a25b91173c">00195</a>     <span class="keywordtype">void</span> ProtectedSet(<span class="keyword">const</span> PixelType &amp;v)<span class="keyword"> const</span>
<a name="l00196"></a>00196 <span class="keyword">      </span>{ m_NeighborhoodIterator-&gt;SetPixel(*m_ListIterator, v); } 
<a name="l00197"></a>00197     };
<a name="l00198"></a>00198 
<a name="l00201"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#53e2297e91571b1dad83a45dd58cd7b7">00201</a>   <span class="keyword">const</span> ConstIterator &amp;Begin()<span class="keyword"> const</span>
<a name="l00202"></a>00202 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_ConstBeginIterator; }
<a name="l00203"></a>00203 
<a name="l00206"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#499451a66cf009da2ef33eb4ca55c613">00206</a>   <span class="keyword">const</span> ConstIterator &amp;End()<span class="keyword"> const</span>
<a name="l00207"></a>00207 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_ConstEndIterator; }
<a name="l00208"></a>00208 
<a name="l00210"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#96dd39eaac313db8b1e18ff064dd5b49">00210</a>   <a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html" title="Const version of ShapedNeighborhoodIterator, defining iteration of a local N-dimensional...">ConstShapedNeighborhoodIterator</a>()
<a name="l00211"></a>00211     {
<a name="l00212"></a>00212     m_ConstBeginIterator = ConstIterator(<span class="keyword">this</span>);
<a name="l00213"></a>00213     m_ConstEndIterator = ConstIterator(<span class="keyword">this</span>);
<a name="l00214"></a>00214     m_ConstEndIterator.GoToEnd();
<a name="l00215"></a>00215     m_CenterIsActive = <span class="keyword">false</span>;
<a name="l00216"></a>00216     }
<a name="l00218"></a>00218 
<a name="l00220"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#4e06b1ab35473680c1d9053612ab0610">00220</a>   <span class="keyword">virtual</span> <a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#4e06b1ab35473680c1d9053612ab0610">~ConstShapedNeighborhoodIterator</a>()  { }
<a name="l00221"></a>00221 
<a name="l00224"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#47b4e60ac4fe504ec135edb4738c9585">00224</a>   <a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html" title="Const version of ShapedNeighborhoodIterator, defining iteration of a local N-dimensional...">ConstShapedNeighborhoodIterator</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Size.html" title="Represent the size (bounds) of a n-dimensional image.">SizeType</a> &amp;radius,
<a name="l00225"></a>00225                        <span class="keyword">const</span> ImageType * ptr,
<a name="l00226"></a>00226                        <span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">RegionType</a> &amp;region) 
<a name="l00227"></a>00227                    : <a class="code" href="classitk_1_1Neighborhood.html" title="A light-weight container object for storing an N-dimensional neighborhood of values...">Superclass</a> (radius, const_cast&lt;ImageType*&gt;(ptr), region)
<a name="l00228"></a>00228     {
<a name="l00229"></a>00229     m_ConstBeginIterator = ConstIterator(<span class="keyword">this</span>);
<a name="l00230"></a>00230     m_ConstEndIterator = ConstIterator(<span class="keyword">this</span>);
<a name="l00231"></a>00231     m_ConstEndIterator.GoToEnd();
<a name="l00232"></a>00232     m_CenterIsActive = <span class="keyword">false</span>;
<a name="l00233"></a>00233     }
<a name="l00235"></a>00235 
<a name="l00236"></a>00236   <span class="comment">// Expose the following methods from the superclass.  This is a restricted</span>
<a name="l00237"></a>00237   <span class="comment">// subset of the methods available for ConstNeighborhoodIterator.</span>
<a name="l00238"></a>00238   Superclass::GetImagePointer;
<a name="l00239"></a>00239   Superclass::GetRadius;
<a name="l00240"></a>00240   Superclass::GetIndex;
<a name="l00241"></a>00241   Superclass::GetNeighborhoodIndex;
<a name="l00242"></a>00242   Superclass::GetCenterNeighborhoodIndex;
<a name="l00243"></a>00243   Superclass::GetRegion;
<a name="l00244"></a>00244   Superclass::GetBeginIndex;
<a name="l00245"></a>00245   Superclass::GoToBegin;
<a name="l00246"></a>00246   Superclass::GoToEnd;
<a name="l00247"></a>00247   Superclass::IsAtBegin;
<a name="l00248"></a>00248   Superclass::IsAtEnd;
<a name="l00249"></a>00249   Superclass::GetOffset;
<a name="l00250"></a>00250   Superclass::operator==;
<a name="l00251"></a>00251   Superclass::operator!=;
<a name="l00252"></a>00252   Superclass::operator&lt;;
<a name="l00253"></a>00253   Superclass::operator&gt;;
<a name="l00254"></a>00254   Superclass::operator&gt;=;
<a name="l00255"></a>00255   Superclass::operator&lt;=;
<a name="l00256"></a>00256   Superclass::operator[];
<a name="l00257"></a>00257   Superclass::GetElement;
<a name="l00258"></a>00258   Superclass::SetLocation;
<a name="l00259"></a>00259   Superclass::GetCenterPointer;
<a name="l00260"></a>00260   Superclass::GetCenterPixel;
<a name="l00261"></a>00261   Superclass::OverrideBoundaryCondition;
<a name="l00262"></a>00262   Superclass::ResetBoundaryCondition;
<a name="l00263"></a>00263   Superclass::GetBoundaryCondition;
<a name="l00264"></a>00264   Superclass::Print;
<a name="l00265"></a>00265   Superclass::operator-;
<a name="l00266"></a>00266  
<a name="l00267"></a>00267   Superclass::GetPixel;
<a name="l00268"></a>00268   
<a name="l00270"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#34ab52a3b24d4ff951b97cb8dd957e27">00270</a>   <a class="code" href="classitk_1_1ConstNeighborhoodIterator.html" title="Const version of NeighborhoodIterator, defining iteration of a local N-dimensional...">Self</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classitk_1_1ConstNeighborhoodIterator.html" title="Const version of NeighborhoodIterator, defining iteration of a local N-dimensional...">Self</a>&amp; orig)
<a name="l00271"></a>00271     {
<a name="l00272"></a>00272     Superclass::operator=(orig);
<a name="l00273"></a>00273     m_ActiveIndexList = orig.m_ActiveIndexList;
<a name="l00274"></a>00274     m_CenterIsActive = orig.m_CenterIsActive;
<a name="l00276"></a>00276 
<a name="l00277"></a>00277     <span class="comment">// Reset begin and end pointers</span>
<a name="l00278"></a>00278     m_ConstBeginIterator.<a class="code" href="classitk_1_1ConstNeighborhoodIterator.html#ad6c8e75d123ee40550aab894926bb5d">GoToBegin</a>();
<a name="l00279"></a>00279     m_ConstEndIterator.GoToBegin();
<a name="l00280"></a>00280     <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00281"></a>00281     }
<a name="l00282"></a>00282 
<a name="l00284"></a>00284   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#920ae03048a5ad715d803ca2e92b52de">PrintSelf</a>(std::ostream &amp;, <a class="code" href="classitk_1_1Indent.html" title="Control indentation during Print() invocation.">Indent</a>) <span class="keyword">const</span>;
<a name="l00285"></a>00285 
<a name="l00289"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#8ac1cf4446e11300188bbffcac08b9a9">00289</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> ActivateOffset(<span class="keyword">const</span> <a class="code" href="classitk_1_1Offset.html">OffsetType</a>&amp; off)
<a name="l00290"></a>00290     { this-&gt;ActivateIndex( Superclass::GetNeighborhoodIndex(off) ); }
<a name="l00291"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#8ba1a113daba03b79058c07f402636cb">00291</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> DeactivateOffset(<span class="keyword">const</span> <a class="code" href="classitk_1_1Offset.html">OffsetType</a>&amp; off)
<a name="l00292"></a>00292     { this-&gt;DeactivateIndex( Superclass::GetNeighborhoodIndex(off) );}
<a name="l00294"></a>00294 
<a name="l00296"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#2f070e8908b7c451ea2b19f149ecacff">00296</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> ClearActiveList()
<a name="l00297"></a>00297     {
<a name="l00298"></a>00298     m_ActiveIndexList.clear();
<a name="l00299"></a>00299     m_ConstBeginIterator.GoToBegin();
<a name="l00300"></a>00300     m_ConstEndIterator.GoToEnd();
<a name="l00301"></a>00301     m_CenterIsActive = <span class="keyword">false</span>;
<a name="l00302"></a>00302     }
<a name="l00304"></a>00304 
<a name="l00306"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#972200061da741a300f74d0f58bdd7cd">00306</a>   <span class="keyword">const</span> IndexListType &amp;GetActiveIndexList()<span class="keyword"> const</span>
<a name="l00307"></a>00307 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_ActiveIndexList; }
<a name="l00308"></a>00308 
<a name="l00310"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#644eb11fae1cb66e126c709bb9dbe27b">00310</a>   <span class="keyword">typename</span> IndexListType::size_type GetActiveIndexListSize()<span class="keyword"> const</span>
<a name="l00311"></a>00311 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_ActiveIndexList.size(); }
<a name="l00312"></a>00312 
<a name="l00315"></a>00315   <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a> &amp;operator++();
<a name="l00316"></a>00316 
<a name="l00319"></a>00319   <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a> &amp;operator--();
<a name="l00320"></a>00320 
<a name="l00324"></a>00324   <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a> &amp;operator+=(<span class="keyword">const</span> OffsetType &amp;);
<a name="l00325"></a>00325 
<a name="l00329"></a>00329   <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a> &amp;operator-=(<span class="keyword">const</span> OffsetType &amp;);
<a name="l00330"></a>00330 
<a name="l00331"></a>00331   <span class="comment">// Should be protected, but Borland compiler will not allow it.  A workaround</span>
<a name="l00332"></a>00332   <span class="comment">// must be found.</span>
<a name="l00333"></a>00333   Superclass::SetPixel;
<a name="l00334"></a>00334   Superclass::SetCenterPixel;
<a name="l00335"></a>00335 <span class="keyword">protected</span>:
<a name="l00337"></a>00337   <a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html" title="Const version of ShapedNeighborhoodIterator, defining iteration of a local N-dimensional...">ConstShapedNeighborhoodIterator</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html" title="Const version of ShapedNeighborhoodIterator, defining iteration of a local N-dimensional...">ConstShapedNeighborhoodIterator</a> &amp; );
<a name="l00338"></a>00338   <span class="comment">// purposely not implemented</span>
<a name="l00339"></a>00339 
<a name="l00340"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#ff4ff712b78d159dd32552cea3d923c8">00340</a>   <span class="keyword">friend</span> <span class="keyword">struct </span>ConstIterator;
<a name="l00341"></a>00341   
<a name="l00344"></a>00344   <span class="comment">//  Superclass::SetPixel;</span>
<a name="l00345"></a>00345   <span class="comment">//  Superclass::SetCenterPixel;</span>
<a name="l00346"></a>00346 
<a name="l00352"></a>00352   <span class="keyword">virtual</span> <span class="keywordtype">void</span> ActivateIndex(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>);
<a name="l00353"></a>00353   <span class="keyword">virtual</span> <span class="keywordtype">void</span> DeactivateIndex(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>);
<a name="l00355"></a>00355 
<a name="l00356"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#62547747eb3cd3c418cb620b705e6e1d">00356</a>   <span class="keywordtype">bool</span>          m_CenterIsActive;
<a name="l00357"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#11bd31d19d7733a89796343a8ff17d04">00357</a>   IndexListType m_ActiveIndexList;
<a name="l00358"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#d2ae693ca916b68e578f65d58bb2295f">00358</a>   ConstIterator m_ConstEndIterator;
<a name="l00359"></a><a class="code" href="classitk_1_1ConstShapedNeighborhoodIterator.html#1b993c265d25638fdbb568473e21a2d4">00359</a>   ConstIterator m_ConstBeginIterator;
<a name="l00360"></a>00360 };
<a name="l00361"></a>00361 
<a name="l00362"></a>00362 
<a name="l00363"></a>00363 } <span class="comment">// namespace itk</span>
<a name="l00364"></a>00364 
<a name="l00365"></a>00365 
<a name="l00366"></a>00366 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span>
<a name="l00367"></a>00367 <span class="preprocessor"></span><span class="preprocessor">#include "itkConstShapedNeighborhoodIterator.txx"</span>
<a name="l00368"></a>00368 <span class="preprocessor">#endif</span>
<a name="l00369"></a>00369 <span class="preprocessor"></span>
<a name="l00370"></a>00370 <span class="preprocessor">#endif</span>
<a name="l00371"></a>00371 <span class="preprocessor"></span>
</pre></div></div>
<hr><address><small>
Generated at Thu May 7 22:29:16 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>