Sophie

Sophie

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

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: itkPointSetToListAdaptor.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_2c33022d19e8077162952ea9ed57656d.html">Numerics</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_e82fe55e9fab4124d6625d716e091a5f.html">Statistics</a>
  </div>
<div class="contents">
<h1>itkPointSetToListAdaptor.h</h1><a href="itkPointSetToListAdaptor_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: itkPointSetToListAdaptor.h,v $</span>
<a name="l00005"></a>00005 <span class="comment">Language:  C++</span>
<a name="l00006"></a>00006 <span class="comment">Date:      $Date: 2005-09-30 17:40:35 $</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 __itkPointSetToListAdaptor_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkPointSetToListAdaptor_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;typeinfo&gt;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkPointSet_8h.html">itkPointSet.h</a>"</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkListSampleBase_8h.html">itkListSampleBase.h</a>"</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="itkSmartPointer_8h.html">itkSmartPointer.h</a>"</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">namespace </span>itk{ 
<a name="l00027"></a>00027 <span class="keyword">namespace </span>Statistics{
<a name="l00028"></a>00028 
<a name="l00042"></a>00042 <span class="keyword">template</span> &lt; <span class="keyword">class</span> TPo<span class="keywordtype">int</span>Set &gt;
<a name="l00043"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html">00043</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html" title="This class provides ListSampleBase interfaces to ITK PointSet.">PointSetToListAdaptor</a> :
<a name="l00044"></a>00044     <span class="keyword">public</span> <a class="code" href="classitk_1_1Statistics_1_1ListSampleBase.html" title="This class is the base class for Samples that store measurements in a list.">ListSampleBase</a>&lt; typename TPointSet::PointType &gt;
<a name="l00045"></a>00045 {
<a name="l00046"></a>00046 <span class="keyword">public</span>:
<a name="l00048"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#75d41c77c3f71e5ce1d97efb7c309788">00048</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html" title="This class provides ListSampleBase interfaces to ITK PointSet.">PointSetToListAdaptor</a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>;
<a name="l00049"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#5b6f22756dd18ca4b9ed4896cccc5cd9">00049</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Statistics_1_1ListSampleBase.html" title="This class is the base class for Samples that store measurements in a list.">ListSampleBase&lt; typename TPointSet::PointType &gt;</a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Superclass</a> ;
<a name="l00050"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#a5602d3d2b52320edb1bb10ded333a10">00050</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer&lt; Self &gt;</a> <a class="code" href="classitk_1_1SmartPointer.html">Pointer</a>;
<a name="l00051"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#2a8b055a6c8c5237666a39e98ebc263f">00051</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer&lt;const Self&gt;</a> <a class="code" href="classitk_1_1SmartPointer.html">ConstPointer</a>;
<a name="l00052"></a>00052 
<a name="l00054"></a>00054   <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html" title="This class provides ListSampleBase interfaces to ITK PointSet.">PointSetToListAdaptor</a>, <a class="code" href="classitk_1_1Statistics_1_1ListSampleBase.html" title="This class is the base class for Samples that store measurements in a list.">ListSampleBase</a>) ;
<a name="l00055"></a>00055 
<a name="l00057"></a>00057   <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>) ;
<a name="l00058"></a>00058 
<a name="l00060"></a>00060   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(MeasurementVectorSize, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>,
<a name="l00061"></a>00061                       TPointSet::PointDimension);
<a name="l00062"></a>00062 
<a name="l00064"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#2692634e560a7b1e410505493be8abc3">00064</a>   <span class="keyword">typedef</span> TPointSet PointSetType;
<a name="l00065"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#83b1802241a3e7e12f358ddac06708ac">00065</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">TPointSet::Pointer</a> PointSetPointer ;
<a name="l00066"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#7031c1ac1f07ba466d3353c3ad5b4885">00066</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> TPointSet::PointIdentifier InstanceIdentifier;
<a name="l00067"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#87150a71a7e314fca09030a2272d8544">00067</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> TPointSet::PointsContainerPointer PointsContainerPointer ;
<a name="l00068"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#eb7d374db8ae696d342d5f6e1a3f6c72">00068</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> TPointSet::PointsContainerIterator PointsContainerIterator ;
<a name="l00069"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#7d7901118e7e66b7feeb267fcc0b47a1">00069</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> TPointSet::PointType PointType ;
<a name="l00070"></a>00070 
<a name="l00071"></a>00071 
<a name="l00074"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#d47386c46b2134359b433d48f5925d72">00074</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MeasurementType MeasurementType ;
<a name="l00075"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#4d7492d73b71351f61e6b48b0037c470">00075</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MeasurementVectorType MeasurementVectorType;
<a name="l00076"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#6a18727e3c375c281275003f4416f787">00076</a>   <span class="keyword">typedef</span> MeasurementVectorType ValueType ;
<a name="l00077"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#ce00db6047c854bbdab814f0eb1ef6bd">00077</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::FrequencyType FrequencyType ;
<a name="l00078"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#9d6748bd14166eba831bbf51c75c2e9f">00078</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::TotalFrequencyType TotalFrequencyType ;
<a name="l00079"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#fdffe70314796c78181b804f9852e5b1">00079</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MeasurementVectorSizeType MeasurementVectorSizeType;
<a name="l00080"></a>00080 
<a name="l00082"></a>00082   <span class="keywordtype">void</span> SetPointSet(TPointSet* pointSet) ;
<a name="l00083"></a>00083 
<a name="l00085"></a>00085   TPointSet* GetPointSet() ;
<a name="l00086"></a>00086 
<a name="l00088"></a>00088   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1Size.html" title="Represent the size (bounds) of a n-dimensional image.">Size</a>() <span class="keyword">const</span> ;
<a name="l00089"></a>00089 
<a name="l00092"></a>00092   <span class="keyword">const</span> MeasurementVectorType &amp; GetMeasurementVector(<span class="keyword">const</span> InstanceIdentifier &amp;<span class="keywordtype">id</span>) <span class="keyword">const</span>;
<a name="l00093"></a>00093 
<a name="l00096"></a>00096   <span class="keywordtype">void</span> SetMeasurement(<span class="keyword">const</span> InstanceIdentifier &amp;<span class="keywordtype">id</span>, 
<a name="l00097"></a>00097                       <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> &amp;dim,
<a name="l00098"></a>00098                       <span class="keyword">const</span> MeasurementType &amp;value) ;
<a name="l00099"></a>00099 
<a name="l00101"></a>00101   FrequencyType GetFrequency(<span class="keyword">const</span> InstanceIdentifier &amp;<span class="keywordtype">id</span>) <span class="keyword">const</span> ;
<a name="l00102"></a>00102 
<a name="l00104"></a>00104   TotalFrequencyType GetTotalFrequency() <span class="keyword">const</span> ;
<a name="l00105"></a>00105 
<a name="l00106"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#1e951ca68243909f74e64efaa4fad14e">00106</a>   <span class="keywordtype">void</span> SetMeasurementVectorSize( <span class="keyword">const</span> MeasurementVectorSizeType s )
<a name="l00107"></a>00107     {
<a name="l00108"></a>00108     <span class="comment">// MV size of the point set is fixed as that of the point's dimension</span>
<a name="l00109"></a>00109     <span class="comment">// Throw exception if user tries to set it to a different value</span>
<a name="l00110"></a>00110     <span class="keywordflow">if</span>( s != MeasurementVectorSize )
<a name="l00111"></a>00111       {
<a name="l00112"></a>00112       <a class="code" href="itkMacro_8h.html#c51de1a715471e7fd0f2e481a70fa1f8">itkExceptionMacro</a>( &lt;&lt; <span class="stringliteral">"PointSetToListAdaptor's measurement vector lengths"</span>
<a name="l00113"></a>00113           &lt;&lt; <span class="stringliteral">" cannot be set to "</span> &lt;&lt; s );
<a name="l00114"></a>00114       }
<a name="l00115"></a>00115     }
<a name="l00116"></a>00116 
<a name="l00117"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#e51fec783a11a027800b10d33de00d1c">00117</a>   MeasurementVectorSizeType GetMeasurementVectorSize()<span class="keyword"> const</span>
<a name="l00118"></a>00118 <span class="keyword">    </span>{
<a name="l00119"></a>00119     <span class="keywordflow">return</span> MeasurementVectorSize;
<a name="l00120"></a>00120     }
<a name="l00121"></a>00121     
<a name="l00122"></a>00122 
<a name="l00123"></a>00123  
<a name="l00124"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">00124</a>   <span class="keyword">class </span><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">Iterator</a>
<a name="l00125"></a>00125   {
<a name="l00126"></a>00126   <span class="keyword">public</span>:
<a name="l00127"></a>00127     
<a name="l00128"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html#11887618ec596f2a523303b83dd0f2b6">00128</a>     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html#11887618ec596f2a523303b83dd0f2b6">Iterator</a>(){}
<a name="l00129"></a>00129     
<a name="l00130"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html#41e8d5faf62eda64bd8c1b6ed4235dcd">00130</a>     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">Iterator</a>(PointsContainerIterator iter)
<a name="l00131"></a>00131       :m_Iter(iter)
<a name="l00132"></a>00132     {}
<a name="l00133"></a>00133     
<a name="l00134"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html#f9c75ea408584ee2088b1611cae5e3bd">00134</a>     FrequencyType GetFrequency()<span class="keyword"> const</span>
<a name="l00135"></a>00135 <span class="keyword">    </span>{ <span class="keywordflow">return</span> 1 ;}
<a name="l00136"></a>00136 
<a name="l00137"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html#dec8ff9757d62a499e88d0da42f7856f">00137</a>     <span class="keyword">const</span> MeasurementVectorType &amp; GetMeasurementVector()<span class="keyword"> const</span>
<a name="l00138"></a>00138 <span class="keyword">    </span>{ <span class="keywordflow">return</span> (MeasurementVectorType&amp;) m_Iter.Value() ;} 
<a name="l00139"></a>00139 
<a name="l00140"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html#50a116d7dec0f2af045e54f8393b3500">00140</a>     InstanceIdentifier GetInstanceIdentifier()<span class="keyword"> const</span>
<a name="l00141"></a>00141 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_Iter.Index() ;}
<a name="l00142"></a>00142 
<a name="l00143"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html#79e0c0e5f9e7f587c1f226efa2a03f85">00143</a>     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">Iterator</a>&amp; operator++()
<a name="l00144"></a>00144     { ++m_Iter ; <span class="keywordflow">return</span> *this ;}
<a name="l00145"></a>00145     
<a name="l00146"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html#4fa2725160cd551cadedb01c3789107f">00146</a>     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">Iterator</a>&amp; operator--()
<a name="l00147"></a>00147     { --m_Iter ; <span class="keywordflow">return</span> *this ;}
<a name="l00148"></a>00148 
<a name="l00149"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html#0ad8cb1fe9bd363bd2643dd5ab433fe5">00149</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="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">Iterator</a> &amp;it)
<a name="l00150"></a>00150     { <span class="keywordflow">return</span> (m_Iter != it.m_Iter) ;}
<a name="l00151"></a>00151     
<a name="l00152"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html#681fd7a73aa925af12d476cb988a6d0c">00152</a>     <span class="keywordtype">bool</span> <a class="code" href="namespaceitk.html#e1c1b02c301187419478f5126c789a01">operator==</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">Iterator</a> &amp;it)
<a name="l00153"></a>00153     { <span class="keywordflow">return</span> (m_Iter == it.m_Iter) ;}
<a name="l00154"></a>00154     
<a name="l00155"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html#5f3a81a655f81831a4d6ee97a25542cd">00155</a>     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">Iterator</a>&amp; operator = (<span class="keyword">const</span> <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">Iterator</a> &amp;iter)
<a name="l00156"></a>00156     { 
<a name="l00157"></a>00157       m_Iter = iter.m_Iter; 
<a name="l00158"></a>00158       <span class="keywordflow">return</span> iter ;
<a name="l00159"></a>00159     }
<a name="l00160"></a>00160 
<a name="l00161"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html#0f41cd733cec2f9c313df19103d64105">00161</a>     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">Iterator</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">Iterator</a> &amp;iter)
<a name="l00162"></a>00162     { m_Iter = iter.m_Iter; }
<a name="l00163"></a>00163     
<a name="l00164"></a>00164   <span class="keyword">private</span>:
<a name="l00165"></a>00165     PointsContainerIterator m_Iter ;
<a name="l00166"></a>00166   } ;
<a name="l00167"></a>00167    
<a name="l00168"></a>00168  
<a name="l00169"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">00169</a>   <span class="keyword">class </span><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">ConstIterator</a>
<a name="l00170"></a>00170   {
<a name="l00171"></a>00171   <span class="keyword">public</span>:
<a name="l00172"></a>00172     
<a name="l00173"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html#2678bcda38d58b082279759f00965963">00173</a>     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html#2678bcda38d58b082279759f00965963">ConstIterator</a>(){}
<a name="l00174"></a>00174     
<a name="l00175"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html#43030ca08840619a78158c18a8559e2b">00175</a>     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">ConstIterator</a>(PointsContainerIterator iter)
<a name="l00176"></a>00176       :m_Iter(iter)
<a name="l00177"></a>00177     {}
<a name="l00178"></a>00178     
<a name="l00179"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html#87b7aceef850cdb2261f70bcaf43f52b">00179</a>     FrequencyType GetFrequency()<span class="keyword"> const</span>
<a name="l00180"></a>00180 <span class="keyword">    </span>{ <span class="keywordflow">return</span> 1 ;}
<a name="l00181"></a>00181 
<a name="l00182"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html#abf4abc5e44d7a2bcc8579489ea10ba9">00182</a>     <span class="keyword">const</span> MeasurementVectorType &amp; GetMeasurementVector()<span class="keyword"> const</span>
<a name="l00183"></a>00183 <span class="keyword">    </span>{ <span class="keywordflow">return</span> (MeasurementVectorType&amp;) m_Iter.Value() ;} 
<a name="l00184"></a>00184 
<a name="l00185"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html#13ec6baa960634f9f9047c4c5a52e6ae">00185</a>     InstanceIdentifier GetInstanceIdentifier()<span class="keyword"> const</span>
<a name="l00186"></a>00186 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_Iter.Index() ;}
<a name="l00187"></a>00187 
<a name="l00188"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html#49a223cf7d7bd22853562d0d36b8ddcd">00188</a>     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">ConstIterator</a>&amp; operator++()
<a name="l00189"></a>00189     { ++m_Iter ; <span class="keywordflow">return</span> *this ;}
<a name="l00190"></a>00190     
<a name="l00191"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html#99ca3d47cf5b753b16e7aa32a51abde4">00191</a>     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">ConstIterator</a>&amp; operator--()
<a name="l00192"></a>00192     { --m_Iter ; <span class="keywordflow">return</span> *this ;}
<a name="l00193"></a>00193 
<a name="l00194"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html#f5acfbe3db52733f80c293a7b7b9e28b">00194</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="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">ConstIterator</a> &amp;it)
<a name="l00195"></a>00195     { <span class="keywordflow">return</span> (m_Iter != it.m_Iter) ;}
<a name="l00196"></a>00196     
<a name="l00197"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html#0b2b879e8997272fd9fa768cf04a4f21">00197</a>     <span class="keywordtype">bool</span> <a class="code" href="namespaceitk.html#e1c1b02c301187419478f5126c789a01">operator==</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">ConstIterator</a> &amp;it)
<a name="l00198"></a>00198     { <span class="keywordflow">return</span> (m_Iter == it.m_Iter) ;}
<a name="l00199"></a>00199     
<a name="l00200"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html#ff03c5141cc3699dadeae7451c578d72">00200</a>     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">ConstIterator</a>&amp; operator = (<span class="keyword">const</span> <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">ConstIterator</a> &amp;iter)
<a name="l00201"></a>00201     { 
<a name="l00202"></a>00202       m_Iter = iter.m_Iter; 
<a name="l00203"></a>00203       <span class="keywordflow">return</span> iter ;
<a name="l00204"></a>00204     }
<a name="l00205"></a>00205 
<a name="l00206"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html#cf36ee957a55f13100abc5aeb3a52fe6">00206</a>     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">ConstIterator</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">ConstIterator</a> &amp;iter)
<a name="l00207"></a>00207     { m_Iter = iter.m_Iter; }
<a name="l00208"></a>00208     
<a name="l00209"></a>00209   <span class="keyword">private</span>:
<a name="l00210"></a>00210     PointsContainerIterator m_Iter ;
<a name="l00211"></a>00211   } ;
<a name="l00212"></a>00212    
<a name="l00214"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#338cf6c3ea6d6147ecc81c2d4ea297f5">00214</a>   <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">Iterator</a> Begin()
<a name="l00215"></a>00215   { 
<a name="l00216"></a>00216     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">Iterator</a> iter(m_PointsContainer-&gt;Begin());
<a name="l00217"></a>00217     <span class="keywordflow">return</span> iter; 
<a name="l00218"></a>00218   }
<a name="l00220"></a>00220 
<a name="l00222"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#8c2a82baac68c585b72d1c94430ef347">00222</a>   <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">Iterator</a> End()        
<a name="l00223"></a>00223   {
<a name="l00224"></a>00224     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1Iterator.html">Iterator</a> iter(m_PointsContainer-&gt;End()); 
<a name="l00225"></a>00225     <span class="keywordflow">return</span> iter; 
<a name="l00226"></a>00226   }
<a name="l00228"></a>00228 
<a name="l00230"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#cd3252b983f3a9d63475d3247a1dd5bc">00230</a>   <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">ConstIterator</a> Begin()<span class="keyword"> const</span>
<a name="l00231"></a>00231 <span class="keyword">  </span>{ 
<a name="l00232"></a>00232     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">ConstIterator</a> iter(m_PointsContainer-&gt;Begin());
<a name="l00233"></a>00233     <span class="keywordflow">return</span> iter; 
<a name="l00234"></a>00234   }
<a name="l00236"></a>00236 
<a name="l00238"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#f7b41846e5763b2660f604448537ac5e">00238</a>   <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">ConstIterator</a> End()<span class="keyword"> const</span>
<a name="l00239"></a>00239 <span class="keyword">  </span>{
<a name="l00240"></a>00240     <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor_1_1ConstIterator.html">ConstIterator</a> iter(m_PointsContainer-&gt;End()); 
<a name="l00241"></a>00241     <span class="keywordflow">return</span> iter; 
<a name="l00242"></a>00242   }
<a name="l00244"></a>00244 
<a name="l00245"></a>00245 <span class="keyword">protected</span>:
<a name="l00246"></a>00246   <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html" title="This class provides ListSampleBase interfaces to ITK PointSet.">PointSetToListAdaptor</a>(); 
<a name="l00247"></a>00247   
<a name="l00248"></a><a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#a1f0cd9300d272d49fa15f1aeab26611">00248</a>   <span class="keyword">virtual</span> <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html#a1f0cd9300d272d49fa15f1aeab26611">~PointSetToListAdaptor</a>() {}
<a name="l00249"></a>00249   <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#920ae03048a5ad715d803ca2e92b52de">PrintSelf</a>(std::ostream&amp; os, <a class="code" href="classitk_1_1Indent.html" title="Control indentation during Print() invocation.">Indent</a> indent) <span class="keyword">const</span>;  
<a name="l00250"></a>00250 
<a name="l00251"></a>00251 <span class="keyword">private</span>:
<a name="l00252"></a>00252   <a class="code" href="classitk_1_1Statistics_1_1PointSetToListAdaptor.html" title="This class provides ListSampleBase interfaces to ITK PointSet.">PointSetToListAdaptor</a>(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&amp;) ; <span class="comment">//purposely not implemented</span>
<a name="l00253"></a>00253   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&amp;) ; <span class="comment">//purposely not implemented</span>
<a name="l00254"></a>00254 
<a name="l00256"></a>00256   <span class="keyword">mutable</span> PointSetPointer m_PointSet ;
<a name="l00257"></a>00257 
<a name="l00260"></a>00260   PointsContainerPointer m_PointsContainer ;
<a name="l00261"></a>00261 
<a name="l00263"></a>00263   <span class="keyword">mutable</span> PointType m_TempPoint ;
<a name="l00264"></a>00264 } ; <span class="comment">// end of class PointSetToListAdaptor</span>
<a name="l00265"></a>00265 
<a name="l00266"></a>00266 } <span class="comment">// end of namespace Statistics</span>
<a name="l00267"></a>00267 } <span class="comment">// end of namespace itk</span>
<a name="l00268"></a>00268 
<a name="l00269"></a>00269 
<a name="l00270"></a>00270 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span>
<a name="l00271"></a>00271 <span class="preprocessor"></span><span class="preprocessor">#include "itkPointSetToListAdaptor.txx"</span>
<a name="l00272"></a>00272 <span class="preprocessor">#endif</span>
<a name="l00273"></a>00273 <span class="preprocessor"></span>
<a name="l00274"></a>00274 <span class="preprocessor">#endif</span>
<a name="l00275"></a>00275 <span class="preprocessor"></span>
</pre></div></div>
<hr><address><small>
Generated at Thu May 7 23:51:47 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>