Sophie

Sophie

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

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: itkMesh.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>itkMesh.h</h1><a href="itkMesh_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: itkMesh.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-06-16 02:07:16 $</span>
<a name="l00007"></a>00007 <span class="comment">  Version:   $Revision: 1.97 $</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">  Portions of this code are covered under the VTK copyright.</span>
<a name="l00013"></a>00013 <span class="comment">  See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.</span>
<a name="l00014"></a>00014 <span class="comment"></span>
<a name="l00015"></a>00015 <span class="comment">     This software is distributed WITHOUT ANY WARRANTY; without even</span>
<a name="l00016"></a>00016 <span class="comment">     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span>
<a name="l00017"></a>00017 <span class="comment">     PURPOSE.  See the above copyright notices for more information.</span>
<a name="l00018"></a>00018 <span class="comment"></span>
<a name="l00019"></a>00019 <span class="comment">=========================================================================*/</span>
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef __itkMesh_h</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define __itkMesh_h</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="preprocessor">#if defined(_MSC_VER)</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#pragma warning ( disable : 4786 )</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="itkPointSet_8h.html">itkPointSet.h</a>"</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="itkCellInterface_8h.html">itkCellInterface.h</a>"</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="itkMapContainer_8h.html">itkMapContainer.h</a>"</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;set&gt;</span>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="keyword">namespace </span>itk
<a name="l00035"></a>00035 {
<a name="l00036"></a>00036 
<a name="l00043"></a>00043 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TMesh&gt;
<a name="l00044"></a><a class="code" href="structitk_1_1GetMeshDimension.html">00044</a> <span class="keyword">struct </span><a class="code" href="structitk_1_1GetMeshDimension.html">GetMeshDimension</a>
<a name="l00045"></a>00045 {
<a name="l00046"></a>00046 <a class="code" href="structitk_1_1GetMeshDimension.html#cbb0272fd43e6d5dd2505952ded3e800">itkStaticConstMacro</a>(MaxTopologicalDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, TMesh::MaxTopologicalDimension);
<a name="l00047"></a>00047 <a class="code" href="structitk_1_1GetMeshDimension.html#cbb0272fd43e6d5dd2505952ded3e800">itkStaticConstMacro</a>(PointDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>,  TMesh::PointDimension);
<a name="l00048"></a>00048 };
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 
<a name="l00111"></a>00111 <span class="keyword">template</span> &lt;
<a name="l00112"></a>00112   <span class="keyword">typename</span> TPixelType,
<a name="l00113"></a>00113   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> VDimension = 3,
<a name="l00114"></a>00114   <span class="keyword">typename</span> TMeshTraits = <a class="code" href="classitk_1_1DefaultStaticMeshTraits.html">DefaultStaticMeshTraits&lt; TPixelType , VDimension, VDimension &gt;</a>
<a name="l00115"></a>00115   &gt;
<a name="l00116"></a><a class="code" href="classitk_1_1Mesh.html">00116</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1Mesh.html" title="Implements the N-dimensional mesh structure.">Mesh</a> : <span class="keyword">public</span> <a class="code" href="classitk_1_1PointSet.html" title="A superclass of the N-dimensional mesh structure; supports point (geometric coordinate...">PointSet</a>&lt;TPixelType, VDimension, TMeshTraits&gt;
<a name="l00117"></a>00117 {
<a name="l00118"></a>00118 <span class="keyword">public</span>:
<a name="l00120"></a><a class="code" href="classitk_1_1Mesh.html#33889d9bea16c35804a5dfd2d9e31b2c">00120</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Mesh.html" title="Implements the N-dimensional mesh structure.">Mesh</a>                                          <a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">Self</a>;
<a name="l00121"></a><a class="code" href="classitk_1_1Mesh.html#aee6a02560fc1bf4bb5c52f23014dd08">00121</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1PointSet.html">PointSet&lt;TPixelType, VDimension, TMeshTraits&gt;</a> <a class="code" href="classitk_1_1Object.html" title="Base class for most itk classes.">Superclass</a>;
<a name="l00122"></a><a class="code" href="classitk_1_1Mesh.html#4599d7763e5e42d8b86574f6862e16a7">00122</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="l00123"></a><a class="code" href="classitk_1_1Mesh.html#8bb8f8983640c9612a7936861a475958">00123</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="l00124"></a>00124 
<a name="l00125"></a><a class="code" href="classitk_1_1Mesh.html#f40db84ad48d7f3827c835637a0d42a7">00125</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">Superclass::RegionType</a> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">RegionType</a>;
<a name="l00126"></a>00126 
<a name="l00128"></a>00128   <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">Self</a>);
<a name="l00129"></a>00129 
<a name="l00131"></a><a class="code" href="classitk_1_1Mesh.html#b65ce1b22794d18be8b404e7d751fd9f">00131</a>   <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1Mesh.html" title="Implements the N-dimensional mesh structure.">Mesh</a>, <a class="code" href="classitk_1_1PointSet.html" title="A superclass of the N-dimensional mesh structure; supports point (geometric coordinate...">PointSet</a>);
<a name="l00132"></a>00132 
<a name="l00134"></a>00134   <span class="keyword">typedef</span> TMeshTraits                        MeshTraits;
<a name="l00135"></a><a class="code" href="classitk_1_1Mesh.html#2bd6c0dda7f9b459921bdec4baeef4f8">00135</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::PixelType     PixelType;
<a name="l00136"></a><a class="code" href="classitk_1_1Mesh.html#d3b778af7f3139bb620bfe7925ec4033">00136</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::CellPixelType CellPixelType;
<a name="l00137"></a>00137 
<a name="l00139"></a>00139   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(PointDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>,
<a name="l00140"></a>00140                       TMeshTraits::PointDimension);
<a name="l00141"></a>00141   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(MaxTopologicalDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>,
<a name="l00142"></a>00142                       TMeshTraits::MaxTopologicalDimension);
<a name="l00144"></a>00144 
<a name="l00147"></a><a class="code" href="classitk_1_1Mesh.html#830c1e8beecfb8cf9eae3a5d7ba282c84745d0d691b2403d46ae40cd36bf436f">00147</a>   <span class="keyword">typedef</span>  <span class="keyword">enum</span> {     CellsAllocationMethodUndefined,
<a name="l00148"></a><a class="code" href="classitk_1_1Mesh.html#830c1e8beecfb8cf9eae3a5d7ba282c8b19e9ac511a54393b2104fa4d96d861d">00148</a>                       CellsAllocatedAsStaticArray,
<a name="l00149"></a><a class="code" href="classitk_1_1Mesh.html#830c1e8beecfb8cf9eae3a5d7ba282c8f505e919e8174845e62cdbde9de30eec">00149</a>                       CellsAllocatedAsADynamicArray,
<a name="l00150"></a><a class="code" href="classitk_1_1Mesh.html#830c1e8beecfb8cf9eae3a5d7ba282c8d4502481644deded1fe7428dee9dda46">00150</a>                       CellsAllocatedDynamicallyCellByCell
<a name="l00151"></a>00151                                                 } CellsAllocationMethodType;
<a name="l00152"></a>00152 
<a name="l00154"></a><a class="code" href="classitk_1_1Mesh.html#6c3bd3b3b4c902a0bfac895652fcd820">00154</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::CoordRepType            CoordRepType;
<a name="l00155"></a><a class="code" href="classitk_1_1Mesh.html#943cbb71f4c8784ff06d1732a9e89efb">00155</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::InterpolationWeightType InterpolationWeightType;
<a name="l00156"></a><a class="code" href="classitk_1_1Mesh.html#ed2fd3a942ea6f1119ade8923c676d39">00156</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::PointIdentifier         PointIdentifier;
<a name="l00157"></a><a class="code" href="classitk_1_1Mesh.html#16b220e4d1ae5fcd9de655f68f38c6aa">00157</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::CellIdentifier          CellIdentifier;
<a name="l00158"></a><a class="code" href="classitk_1_1Mesh.html#537ac36354b4a087195400c6bb6c198a">00158</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::CellFeatureIdentifier   CellFeatureIdentifier;
<a name="l00159"></a><a class="code" href="classitk_1_1Mesh.html#84e70aad2db6c0d8aa9750493cdd623a">00159</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::PointHashType           PointHashType;
<a name="l00160"></a><a class="code" href="classitk_1_1Mesh.html#ab87c54f2113c452e56f438684ae7238">00160</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::PointType               PointType;
<a name="l00161"></a><a class="code" href="classitk_1_1Mesh.html#1487108504dfd527a1e058939788c751">00161</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::PointsContainer         PointsContainer;
<a name="l00162"></a><a class="code" href="classitk_1_1Mesh.html#5d92f60ec0c0053a292cd559d9872b12">00162</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::CellTraits              CellTraits;
<a name="l00163"></a><a class="code" href="classitk_1_1Mesh.html#bf231b05468ea1f5fc9ef03af8eaca55">00163</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::CellsContainer          CellsContainer;
<a name="l00164"></a><a class="code" href="classitk_1_1Mesh.html#1a9beb9a176d055bf1ff79936cd527d9">00164</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::PointCellLinksContainer PointCellLinksContainer;
<a name="l00165"></a><a class="code" href="classitk_1_1Mesh.html#f9878130a5826a61896d0d84085e5f8d">00165</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::CellLinksContainer      CellLinksContainer;
<a name="l00166"></a><a class="code" href="classitk_1_1Mesh.html#2e9e368b147eb9b5cb30e7a893cb873c">00166</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::PointDataContainer      PointDataContainer;
<a name="l00167"></a><a class="code" href="classitk_1_1Mesh.html#7b22ed783a6abe5f543ee9d243ee76c0">00167</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MeshTraits::CellDataContainer       CellDataContainer;
<a name="l00168"></a>00168 
<a name="l00170"></a>00170   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1PointLocator.html" title="Accelerate geometric searches for points.">PointLocator</a>&lt;PointIdentifier,<a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(PointDimension),
<a name="l00171"></a><a class="code" href="classitk_1_1Mesh.html#895b2287b3ed207fd344da3230855e49">00171</a>                        CoordRepType,PointsContainer&gt;  <a class="code" href="classitk_1_1PointLocator.html" title="Accelerate geometric searches for points.">PointLocatorType</a>;
<a name="l00172"></a>00172   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1BoundingBox.html" title="Represent and compute information about bounding boxes.">BoundingBox</a>&lt;PointIdentifier,<a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(PointDimension),
<a name="l00173"></a><a class="code" href="classitk_1_1Mesh.html#1e2eab6dbb3200dbdca9d5a5864a1ddd">00173</a>                       CoordRepType,PointsContainer&gt;   <a class="code" href="classitk_1_1BoundingBox.html" title="Represent and compute information about bounding boxes.">BoundingBoxType</a>;
<a name="l00175"></a>00175 
<a name="l00177"></a><a class="code" href="classitk_1_1Mesh.html#6061999ca70f2813791622966d31cd91">00177</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">PointsContainer::Pointer</a>       PointsContainerPointer;
<a name="l00178"></a><a class="code" href="classitk_1_1Mesh.html#ae0aaf22c4d33af53bb2cccd46f4e1cf">00178</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">CellsContainer::Pointer</a>        CellsContainerPointer;
<a name="l00179"></a><a class="code" href="classitk_1_1Mesh.html#ac35475ff8e4d36a7d494ddc2bb3519b">00179</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">CellLinksContainer::Pointer</a>    CellLinksContainerPointer;
<a name="l00180"></a><a class="code" href="classitk_1_1Mesh.html#b75afb989d9998ee8bc97ff9f161a0b3">00180</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">PointDataContainer::Pointer</a>    PointDataContainerPointer;
<a name="l00181"></a><a class="code" href="classitk_1_1Mesh.html#d52292cf5b0561af065ed8cbd085b341">00181</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">CellDataContainer::Pointer</a>     CellDataContainerPointer;
<a name="l00182"></a><a class="code" href="classitk_1_1Mesh.html#ae3897029bfb7ce453ab0e4fb6c65e0b">00182</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">PointLocatorType::Pointer</a>      <a class="code" href="classitk_1_1SmartPointer.html">PointLocatorPointer</a>;
<a name="l00183"></a><a class="code" href="classitk_1_1Mesh.html#319adc094426655b637fd63d85c39e76">00183</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">BoundingBoxType::Pointer</a>       <a class="code" href="classitk_1_1SmartPointer.html">BoundingBoxPointer</a>;
<a name="l00184"></a>00184 
<a name="l00186"></a>00186   <span class="keyword">typedef</span> <span class="keyword">typename</span>
<a name="l00187"></a><a class="code" href="classitk_1_1Mesh.html#751cf00fde7d33d5c3be54d2a50f8871">00187</a>           PointsContainer::ConstIterator        PointsContainerConstIterator;
<a name="l00188"></a>00188   <span class="keyword">typedef</span> <span class="keyword">typename</span>
<a name="l00189"></a><a class="code" href="classitk_1_1Mesh.html#553809f3e6e36601a8dfbf492655efb4">00189</a>           PointsContainer::Iterator             PointsContainerIterator;
<a name="l00190"></a>00190   <span class="keyword">typedef</span> <span class="keyword">typename</span>
<a name="l00191"></a><a class="code" href="classitk_1_1Mesh.html#a7e0a98126e38e2a4c3817bc7e8db23b">00191</a>           CellsContainer::ConstIterator         CellsContainerConstIterator;
<a name="l00192"></a>00192   <span class="keyword">typedef</span> <span class="keyword">typename</span>
<a name="l00193"></a><a class="code" href="classitk_1_1Mesh.html#f9067f5cb6824d27b05de69d6ca2c5fc">00193</a>           CellsContainer::Iterator              CellsContainerIterator;
<a name="l00194"></a>00194   <span class="keyword">typedef</span> <span class="keyword">typename</span>
<a name="l00195"></a><a class="code" href="classitk_1_1Mesh.html#22193485aa6c763311c14d8080375b8a">00195</a>           CellLinksContainer::ConstIterator     CellLinksContainerIterator;
<a name="l00196"></a>00196   <span class="keyword">typedef</span> <span class="keyword">typename</span>
<a name="l00197"></a><a class="code" href="classitk_1_1Mesh.html#9678f2dfc76e642b2cc335242bf24bb7">00197</a>           PointDataContainer::ConstIterator     PointDataContainerIterator;
<a name="l00198"></a>00198   <span class="keyword">typedef</span> <span class="keyword">typename</span>
<a name="l00199"></a><a class="code" href="classitk_1_1Mesh.html#08126d249b758c440e175378bb5b6a39">00199</a>           CellDataContainer::ConstIterator      CellDataContainerIterator;
<a name="l00200"></a>00200   <span class="keyword">typedef</span> <span class="keyword">typename</span>
<a name="l00201"></a><a class="code" href="classitk_1_1Mesh.html#4c4b27a51addfc4b8f6c7b3d99f3a24a">00201</a>      PointCellLinksContainer::const_iterator  PointCellLinksContainerIterator;
<a name="l00202"></a>00202 
<a name="l00204"></a><a class="code" href="classitk_1_1Mesh.html#40332c11aff00bd6a4e3fdda6551ce59">00204</a>   <span class="keyword">typedef</span> CellFeatureIdentifier  CellFeatureCount;
<a name="l00205"></a>00205 
<a name="l00207"></a><a class="code" href="classitk_1_1Mesh.html#2a3df15f1e404b0f65e30c92f5092aa3">00207</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1CellInterface.html">CellInterface&lt;CellPixelType,CellTraits&gt;</a>  <a class="code" href="classitk_1_1CellInterface.html">CellType</a>;
<a name="l00208"></a><a class="code" href="classitk_1_1Mesh.html#d1909b8733bf192565a263fbedec878d">00208</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> CellType::CellAutoPointer       CellAutoPointer;
<a name="l00209"></a>00209 
<a name="l00211"></a><a class="code" href="classitk_1_1Mesh.html#c5b9507d9d651c352cdb85975dd02362">00211</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1CellInterface_1_1MultiVisitor.html" title="A visitor that can visit different cell types in a mesh. CellInterfaceVisitor instances...">CellType::MultiVisitor</a> <a class="code" href="classitk_1_1CellInterface_1_1MultiVisitor.html" title="A visitor that can visit different cell types in a mesh. CellInterfaceVisitor instances...">CellMultiVisitorType</a>;
<a name="l00212"></a>00212 
<a name="l00221"></a><a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html">00221</a>   <span class="keyword">class </span><a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html">BoundaryAssignmentIdentifier</a>
<a name="l00222"></a>00222     {
<a name="l00223"></a>00223   <span class="keyword">public</span>:
<a name="l00225"></a><a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html#d1e6612950b79a277f716578e17b34eb">00225</a>     <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html">BoundaryAssignmentIdentifier</a> <a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html">Self</a>;
<a name="l00226"></a>00226 
<a name="l00229"></a><a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html#55a4de33fd816c27c542269c3d32202d">00229</a>     <a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html#55a4de33fd816c27c542269c3d32202d">BoundaryAssignmentIdentifier</a>() {}
<a name="l00230"></a><a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html#0102da94d18598bdc4588fa1b1d55b66">00230</a>     <a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html">BoundaryAssignmentIdentifier</a>(CellIdentifier cellId,
<a name="l00231"></a>00231                                  CellFeatureIdentifier featureId):
<a name="l00232"></a>00232       m_CellId(cellId), m_FeatureId(featureId) {}
<a name="l00234"></a>00234 
<a name="l00236"></a><a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html#a642a236ef5922762e89f5b88cc470ea">00236</a>     CellIdentifier m_CellId;
<a name="l00237"></a>00237 
<a name="l00239"></a><a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html#5ed655a37cbfe436f1791b3c5f8cd372">00239</a>     CellFeatureIdentifier  m_FeatureId;
<a name="l00240"></a>00240 
<a name="l00243"></a><a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html#ea0512c971f9849caf8c5343ed3186e2">00243</a>     <span class="keywordtype">bool</span> operator &lt; (<span class="keyword">const</span> <a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html">Self</a>&amp; r)<span class="keyword"> const</span>
<a name="l00244"></a>00244 <span class="keyword">      </span>{
<a name="l00245"></a>00245       <span class="keywordflow">return</span> ((m_CellId &lt; r.<a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html#a642a236ef5922762e89f5b88cc470ea">m_CellId</a>) ||
<a name="l00246"></a>00246               ((m_CellId == r.<a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html#a642a236ef5922762e89f5b88cc470ea">m_CellId</a>) &amp;&amp; (m_FeatureId &lt; r.<a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html#5ed655a37cbfe436f1791b3c5f8cd372">m_FeatureId</a>)));
<a name="l00247"></a>00247       }
<a name="l00248"></a>00248 
<a name="l00251"></a><a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html#4449aa987821b09c1036c6bb26f817fe">00251</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_1Mesh_1_1BoundaryAssignmentIdentifier.html">Self</a>&amp; r)<span class="keyword"> const</span>
<a name="l00252"></a>00252 <span class="keyword">      </span>{
<a name="l00253"></a>00253       <span class="keywordflow">return</span> ((m_CellId == r.<a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html#a642a236ef5922762e89f5b88cc470ea">m_CellId</a>) &amp;&amp; (m_FeatureId == r.<a class="code" href="classitk_1_1Mesh_1_1BoundaryAssignmentIdentifier.html#5ed655a37cbfe436f1791b3c5f8cd372">m_FeatureId</a>));
<a name="l00254"></a>00254       }
<a name="l00255"></a>00255   }; <span class="comment">// End Class: Mesh::BoundaryAssignmentIdentifier</span>
<a name="l00257"></a>00257 <span class="comment"></span>
<a name="l00258"></a>00258 
<a name="l00266"></a>00266   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1MapContainer.html">MapContainer&lt; BoundaryAssignmentIdentifier , CellIdentifier &gt;</a>
<a name="l00267"></a><a class="code" href="classitk_1_1Mesh.html#1ab9d83fdbd02543edc7d5a5f9509839">00267</a>         <a class="code" href="classitk_1_1MapContainer.html">BoundaryAssignmentsContainer</a>;
<a name="l00268"></a>00268   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">BoundaryAssignmentsContainer::Pointer</a>
<a name="l00269"></a><a class="code" href="classitk_1_1Mesh.html#1ed5ccb19edb811164f9772a2351f351">00269</a>         <a class="code" href="classitk_1_1SmartPointer.html">BoundaryAssignmentsContainerPointer</a>;
<a name="l00270"></a>00270   <span class="keyword">typedef</span> std::vector&lt; BoundaryAssignmentsContainerPointer &gt;
<a name="l00271"></a><a class="code" href="classitk_1_1Mesh.html#c5049c74043f50101d4fd36624f6b651">00271</a>         BoundaryAssignmentsContainerVector;
<a name="l00272"></a>00272 
<a name="l00273"></a>00273 
<a name="l00274"></a>00274 <span class="keyword">protected</span>:
<a name="l00275"></a>00275 
<a name="l00278"></a><a class="code" href="classitk_1_1Mesh.html#71a36e571b978578002a77ca4848866f">00278</a>   CellsContainerPointer  m_CellsContainer;
<a name="l00279"></a>00279 
<a name="l00284"></a><a class="code" href="classitk_1_1Mesh.html#78ee2f67462bc7e6097e4f1395ea77a6">00284</a>   CellDataContainerPointer  m_CellDataContainer;
<a name="l00285"></a>00285 
<a name="l00289"></a><a class="code" href="classitk_1_1Mesh.html#611799f7f46ce1bc6c945d12c2c28402">00289</a>   CellLinksContainerPointer  m_CellLinksContainer;
<a name="l00290"></a>00290 
<a name="l00300"></a><a class="code" href="classitk_1_1Mesh.html#77052941b3a7a8428f174f2bf4cbee5d">00300</a>   BoundaryAssignmentsContainerVector  m_BoundaryAssignmentsContainers;
<a name="l00301"></a>00301 
<a name="l00302"></a>00302 <span class="keyword">public</span>:
<a name="l00304"></a>00304   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> GetNumberOfCells() <span class="keyword">const</span>;
<a name="l00305"></a>00305   <span class="keywordtype">void</span> PassStructure(<a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">Self</a>* inputMesh);
<a name="l00306"></a>00306   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Initialize();
<a name="l00308"></a>00308 
<a name="l00310"></a>00310   <span class="keyword">virtual</span> <span class="keywordtype">void</span> CopyInformation(<span class="keyword">const</span> <a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">DataObject</a> *data);
<a name="l00311"></a>00311   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Graft(<span class="keyword">const</span> <a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">DataObject</a> *data);
<a name="l00313"></a>00313 
<a name="l00318"></a>00318   <span class="keywordtype">void</span> SetCellLinks(CellLinksContainer*);
<a name="l00319"></a>00319 <span class="preprocessor">#ifndef CABLE_CONFIGURATION</span>
<a name="l00320"></a>00320 <span class="preprocessor"></span>  CellLinksContainerPointer GetCellLinks();
<a name="l00321"></a>00321   <span class="keyword">const</span> CellLinksContainerPointer GetCellLinks() <span class="keyword">const</span>;
<a name="l00323"></a>00323 
<a name="l00326"></a>00326   <span class="keywordtype">void</span> SetCells(CellsContainer*);
<a name="l00327"></a>00327 
<a name="l00328"></a>00328   CellsContainerPointer GetCells();
<a name="l00329"></a>00329   <span class="keyword">const</span> CellsContainerPointer GetCells() <span class="keyword">const</span>;
<a name="l00330"></a>00330 <span class="preprocessor">#endif</span>
<a name="l00331"></a>00331 <span class="preprocessor"></span>
<a name="l00335"></a>00335   <span class="keywordtype">void</span> SetCellData(CellDataContainer*);
<a name="l00336"></a>00336   CellDataContainerPointer GetCellData();
<a name="l00337"></a>00337   <span class="keyword">const</span> CellDataContainerPointer GetCellData() <span class="keyword">const</span>;
<a name="l00339"></a>00339 
<a name="l00348"></a>00348 <span class="preprocessor">#if !defined(CABLE_CONFIGURATION)</span>
<a name="l00349"></a>00349 <span class="preprocessor"></span>  <span class="keywordtype">void</span> SetBoundaryAssignments(<span class="keywordtype">int</span> dimension,
<a name="l00350"></a>00350                               <a class="code" href="classitk_1_1MapContainer.html">BoundaryAssignmentsContainer</a>*);
<a name="l00351"></a>00351 <span class="preprocessor">#endif</span>
<a name="l00352"></a>00352 <span class="preprocessor"></span>
<a name="l00353"></a>00353 <span class="preprocessor">#ifndef CABLE_CONFIGURATION</span>
<a name="l00354"></a>00354 <span class="preprocessor"></span>  <a class="code" href="classitk_1_1SmartPointer.html">BoundaryAssignmentsContainerPointer</a> GetBoundaryAssignments(<span class="keywordtype">int</span> dimension);
<a name="l00355"></a>00355   <span class="keyword">const</span> <a class="code" href="classitk_1_1SmartPointer.html">BoundaryAssignmentsContainerPointer</a> GetBoundaryAssignments(
<a name="l00356"></a>00356     <span class="keywordtype">int</span> dimension) <span class="keyword">const</span>;
<a name="l00357"></a>00357 
<a name="l00363"></a>00363   <span class="keywordtype">void</span> SetCell(CellIdentifier, CellAutoPointer &amp; );
<a name="l00364"></a>00364   <span class="keywordtype">bool</span> GetCell(CellIdentifier, CellAutoPointer &amp; ) <span class="keyword">const</span>;
<a name="l00365"></a>00365 <span class="preprocessor">#endif</span>
<a name="l00366"></a>00366 <span class="preprocessor"></span>
<a name="l00369"></a>00369   <span class="keywordtype">void</span> SetCellData(CellIdentifier, CellPixelType);
<a name="l00370"></a>00370   <span class="keywordtype">bool</span> GetCellData(CellIdentifier, CellPixelType*) <span class="keyword">const</span>;
<a name="l00372"></a>00372 
<a name="l00385"></a>00385   <span class="keywordtype">void</span> SetBoundaryAssignment(<span class="keywordtype">int</span> dimension, CellIdentifier cellId,
<a name="l00386"></a>00386                              CellFeatureIdentifier featureId,
<a name="l00387"></a>00387                              CellIdentifier boundaryId);
<a name="l00388"></a>00388 
<a name="l00397"></a>00397   <span class="keywordtype">bool</span> GetBoundaryAssignment(<span class="keywordtype">int</span> dimension, CellIdentifier cellId,
<a name="l00398"></a>00398                              CellFeatureIdentifier featureId,
<a name="l00399"></a>00399                              CellIdentifier* boundaryId) <span class="keyword">const</span>;
<a name="l00400"></a>00400   <span class="keywordtype">bool</span> RemoveBoundaryAssignment(<span class="keywordtype">int</span> dimension, CellIdentifier cellId,
<a name="l00401"></a>00401                                 CellFeatureIdentifier featureId);
<a name="l00403"></a>00403 
<a name="l00405"></a>00405   CellFeatureCount GetNumberOfCellBoundaryFeatures(<span class="keywordtype">int</span> dimension,
<a name="l00406"></a>00406                                                    CellIdentifier) <span class="keyword">const</span>;
<a name="l00407"></a>00407 
<a name="l00408"></a>00408 <span class="preprocessor">#ifndef CABLE_CONFIGURATION</span>
<a name="l00409"></a>00409 <span class="preprocessor"></span>
<a name="l00411"></a>00411   <span class="keywordtype">bool</span> GetCellBoundaryFeature(<span class="keywordtype">int</span> dimension, CellIdentifier,
<a name="l00412"></a>00412                               CellFeatureIdentifier, CellAutoPointer&amp; ) <span class="keyword">const</span>;
<a name="l00413"></a>00413 <span class="preprocessor">#endif</span>
<a name="l00414"></a>00414 <span class="preprocessor"></span>
<a name="l00419"></a>00419   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> GetCellBoundaryFeatureNeighbors(
<a name="l00420"></a>00420     <span class="keywordtype">int</span> dimension, CellIdentifier, CellFeatureIdentifier,
<a name="l00421"></a>00421     std::set&lt;CellIdentifier&gt;* cellSet);
<a name="l00422"></a>00422 
<a name="l00427"></a>00427   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> GetCellNeighbors( CellIdentifier cellId,
<a name="l00428"></a>00428                                   std::set&lt;CellIdentifier&gt;* cellSet );
<a name="l00429"></a>00429 <span class="preprocessor">#ifndef CABLE_CONFIGURATION</span>
<a name="l00430"></a>00430 <span class="preprocessor"></span>
<a name="l00438"></a>00438   <span class="keywordtype">bool</span> GetAssignedCellBoundaryIfOneExists(<span class="keywordtype">int</span> dimension, CellIdentifier,
<a name="l00439"></a>00439                                           CellFeatureIdentifier,
<a name="l00440"></a>00440                                           CellAutoPointer&amp; ) <span class="keyword">const</span>;
<a name="l00441"></a>00441 <span class="preprocessor">#endif</span>
<a name="l00442"></a>00442 <span class="preprocessor"></span>
<a name="l00445"></a>00445   <span class="keywordtype">void</span> BuildCellLinks();
<a name="l00446"></a>00446 
<a name="l00447"></a>00447 <span class="preprocessor">#ifndef CABLE_CONFIGURATION</span>
<a name="l00448"></a>00448 <span class="preprocessor"></span>
<a name="l00451"></a>00451   <a class="code" href="classitk_1_1SmartPointer.html">BoundingBoxPointer</a> GetCellBoundingBox(CellIdentifier cellId,
<a name="l00452"></a>00452                                         <a class="code" href="classitk_1_1SmartPointer.html">BoundingBoxPointer</a> bbox);
<a name="l00453"></a>00453 
<a name="l00457"></a>00457   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Accept(<a class="code" href="classitk_1_1CellInterface_1_1MultiVisitor.html" title="A visitor that can visit different cell types in a mesh. CellInterfaceVisitor instances...">CellMultiVisitorType</a>* mv);
<a name="l00458"></a>00458 <span class="preprocessor">#endif</span>
<a name="l00459"></a>00459 <span class="preprocessor"></span>
<a name="l00464"></a>00464   <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( CellsAllocationMethod, CellsAllocationMethodType );
<a name="l00465"></a>00465   <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( CellsAllocationMethod, CellsAllocationMethodType );
<a name="l00467"></a>00467 
<a name="l00468"></a>00468 <span class="keyword">protected</span>:
<a name="l00470"></a>00470   <a class="code" href="classitk_1_1Mesh.html" title="Implements the N-dimensional mesh structure.">Mesh</a>();
<a name="l00471"></a>00471   ~<a class="code" href="classitk_1_1Mesh.html" title="Implements the N-dimensional mesh structure.">Mesh</a>();
<a name="l00472"></a>00472   <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="l00474"></a>00474 
<a name="l00478"></a>00478   <span class="keywordtype">void</span> ReleaseCellsMemory();
<a name="l00479"></a>00479 
<a name="l00480"></a>00480 <span class="keyword">private</span>:
<a name="l00481"></a>00481   <a class="code" href="classitk_1_1Mesh.html" title="Implements the N-dimensional mesh structure.">Mesh</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">Self</a>&amp;); <span class="comment">//purposely not implemented</span>
<a name="l00482"></a>00482   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">Self</a>&amp;); <span class="comment">//purposely not implemented</span>
<a name="l00483"></a>00483 
<a name="l00484"></a>00484   CellsAllocationMethodType             m_CellsAllocationMethod;
<a name="l00485"></a>00485 
<a name="l00486"></a>00486 }; <span class="comment">// End Class: Mesh</span>
<a name="l00487"></a>00487 
<a name="l00488"></a>00488 } <span class="comment">// end namespace itk</span>
<a name="l00489"></a>00489 
<a name="l00490"></a>00490 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span>
<a name="l00491"></a>00491 <span class="preprocessor"></span><span class="preprocessor">#ifndef CABLE_CONFIGURATION</span>
<a name="l00492"></a>00492 <span class="preprocessor"></span><span class="preprocessor">#include "itkMesh.txx"</span>
<a name="l00493"></a>00493 <span class="preprocessor">#endif</span>
<a name="l00494"></a>00494 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00495"></a>00495 <span class="preprocessor"></span>
<a name="l00496"></a>00496 <span class="preprocessor">#endif</span>
<a name="l00497"></a>00497 <span class="preprocessor"></span>
</pre></div></div>
<hr><address><small>
Generated at Thu May 7 23:30: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>