Sophie

Sophie

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

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: itkSimplexMeshVolumeCalculator.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_16b0d2d22c345042f35cebae66b36010.html">Algorithms</a>
  </div>
<div class="contents">
<h1>itkSimplexMeshVolumeCalculator.h</h1><a href="itkSimplexMeshVolumeCalculator_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: itkSimplexMeshVolumeCalculator.h,v $</span>
<a name="l00005"></a>00005 <span class="comment">Language:  C++</span>
<a name="l00006"></a>00006 <span class="comment">Date:      $Date: 2007-04-10 15:45:19 $</span>
<a name="l00007"></a>00007 <span class="comment">Version:   $Revision: 1.4 $</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 __itkSimplexMeshVolumeCalculator_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkSimplexMeshVolumeCalculator_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;<a class="code" href="itkMesh_8h.html">itkMesh.h</a>&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;<a class="code" href="itkLineCell_8h.html">itkLineCell.h</a>&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;<a class="code" href="itkPolygonCell_8h.html">itkPolygonCell.h</a>&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;<a class="code" href="itkVertexCell_8h.html">itkVertexCell.h</a>&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;<a class="code" href="itkMapContainer_8h.html">itkMapContainer.h</a>&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="itkCovariantVector_8h.html">itkCovariantVector.h</a>"</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="itkVector_8h.html">itkVector.h</a>"</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="itkSimplexMesh_8h.html">itkSimplexMesh.h</a>"</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="itkVectorContainer_8h.html">itkVectorContainer.h</a>"</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="keyword">namespace </span>itk
<a name="l00031"></a>00031 {
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 
<a name="l00053"></a>00053 <span class="keyword">template</span> &lt;<span class="keyword">class</span> TInputMesh&gt;
<a name="l00054"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html">00054</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html" title="Adapted from itkSimplexMeshToTriangleFilter to calculate the volume of a simplex...">SimplexMeshVolumeCalculator</a> : <span class="keyword">public</span> <a class="code" href="classitk_1_1Object.html" title="Base class for most itk classes.">Object</a>
<a name="l00055"></a>00055 {
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="keyword">public</span>:
<a name="l00059"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#277e37e814be2b065d845fdd1c82d71e">00059</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html" title="Adapted from itkSimplexMeshToTriangleFilter to calculate the volume of a simplex...">SimplexMeshVolumeCalculator</a>  <a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html" title="Adapted from itkSimplexMeshToTriangleFilter to calculate the volume of a simplex...">Self</a>;
<a name="l00060"></a>00060 
<a name="l00062"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#e0158909c2cfa4bb0e0359abdb0aa0a4">00062</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Object.html" title="Base class for most itk classes.">Object</a> <a class="code" href="classitk_1_1Object.html" title="Base class for most itk classes.">Superclass</a>;
<a name="l00063"></a>00063 
<a name="l00065"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#9b9ab5017fe144bcf3b17dfa6d62b4ad">00065</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="l00066"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#1b5c9e21a09c290359a4a21eef25d972">00066</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="l00067"></a>00067 
<a name="l00069"></a>00069   <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html" title="Adapted from itkSimplexMeshToTriangleFilter to calculate the volume of a simplex...">Self</a>);
<a name="l00070"></a>00070 
<a name="l00072"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#354ea0ac2acc5f5f1642b75ebfb5394d">00072</a>   <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html" title="Adapted from itkSimplexMeshToTriangleFilter to calculate the volume of a simplex...">SimplexMeshVolumeCalculator</a>, <a class="code" href="classitk_1_1Object.html" title="Base class for most itk classes.">Object</a>);
<a name="l00073"></a>00073 
<a name="l00074"></a>00074   <span class="keyword">typedef</span> TInputMesh                                              InputMeshType;
<a name="l00075"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#8c716aee7b7358be99f2dc942fd1bcca">00075</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">InputMeshType::Pointer</a>                         InputMeshPointer;
<a name="l00076"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#62a4ef20c6bd8c50a8eebc2a754b7821">00076</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#68fafcc6909430ccd70cbc4aeee0107c">InputMeshType::ConstPointer</a>                    InputMeshConstPointer;
<a name="l00077"></a>00077  
<a name="l00078"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#15400a253cdae07e6dcf41f89f8e09af">00078</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> InputMeshType::PointType                       InputPointType;
<a name="l00079"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#c1787c3e5c293bfc9295abb746b9375c">00079</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> InputMeshType::PixelType                       <a class="code" href="namespaceHardConnectedComponentImageFilter.html#6e44b89d73d576fe68c175566a634ab8">InputPixelType</a>;
<a name="l00080"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#e0e0570297f05834e3cdf0d8021a2cd2">00080</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> InputMeshType::MeshTraits::CellTraits          InputCellTraitsType;
<a name="l00081"></a>00081 
<a name="l00082"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#dc1715476f4da655ee777e0cda963414">00082</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> InputMeshType::PointsContainer                 InputPointsContainer;
<a name="l00083"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#d18a1fd70ecd293ba49445dc34dd1631">00083</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#68fafcc6909430ccd70cbc4aeee0107c">InputPointsContainer::ConstPointer</a>             InputPointsContainerPointer;
<a name="l00084"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#5e0e0e32de8191ff9d80e97fda6e3478">00084</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> InputPointsContainer::ConstIterator            InputPointsContainerIterator;
<a name="l00085"></a>00085 
<a name="l00086"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#4594eeba563854812e53e4d4e94a9ca2">00086</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> InputMeshType::NeighborListType                InputNeighbors;
<a name="l00087"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#b5cb59fe3d77fb915076fb971f29b9a8">00087</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> InputMeshType::NeighborListType::iterator      InputNeighborsIterator;
<a name="l00088"></a>00088 
<a name="l00089"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#03a6794f32ac82de981160bbf6d504c3">00089</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> InputMeshType::CellType                        SimplexCellType;
<a name="l00090"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#f1ba548d4e0dee1adeda7194358cc0c0">00090</a>   <span class="keyword">typedef</span>          <a class="code" href="classitk_1_1PolygonCell.html">itk::PolygonCell&lt;SimplexCellType&gt;</a>              <a class="code" href="classitk_1_1PolygonCell.html">SimplexPolygonType</a>;
<a name="l00091"></a>00091 
<a name="l00092"></a>00092   <span class="comment">// stores the center for each simplex mesh cell, key is the point id</span>
<a name="l00093"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#9b4c4451a77581c0508f45e3a02927d8">00093</a>   <span class="keyword">typedef</span>          <a class="code" href="classitk_1_1MapContainer.html">itk::MapContainer&lt;unsigned long, InputPointType&gt;</a> <a class="code" href="classitk_1_1MapContainer.html">PointMapType</a>;
<a name="l00094"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#d132148b26fb646947c0f3d3e9adb136">00094</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">PointMapType::Pointer</a>                            <a class="code" href="classitk_1_1SmartPointer.html">PointMapPointer</a>;
<a name="l00095"></a>00095 
<a name="l00096"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#9994bf56697178c93eb91c78048becf4">00096</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> InputPointType::VectorType                VectorType; 
<a name="l00097"></a>00097   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1CovariantVector.html" title="A templated class holding a n-Dimensional covariant vector.">CovariantVector</a>&lt; 
<a name="l00098"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#4648f50f4f0a53594b00f856e87ebd47">00098</a>     <span class="keyword">typename</span> VectorType::ValueType, 3 &gt;   <a class="code" href="classitk_1_1CovariantVector.html" title="A templated class holding a n-Dimensional covariant vector.">CovariantVectorType</a>;
<a name="l00099"></a>00099 
<a name="l00106"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator_1_1SimplexCellVisitor.html">00106</a>   <span class="keyword">class </span><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator_1_1SimplexCellVisitor.html">SimplexCellVisitor</a>
<a name="l00107"></a>00107     {
<a name="l00108"></a>00108   <span class="keyword">public</span>:
<a name="l00109"></a>00109 
<a name="l00113"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator_1_1SimplexCellVisitor.html#dc87ed9aa032bcc0527e8d6b9f906aea">00113</a>     <a class="code" href="classitk_1_1SimplexMeshVolumeCalculator_1_1SimplexCellVisitor.html">SimplexCellVisitor</a>()
<a name="l00114"></a>00114       {
<a name="l00115"></a>00115       m_CenterMap = <a class="code" href="namespaceHardConnectedComponentImageFilter.html#870262f145e0b45206db74df8053b59c">PointMapType::New</a>();
<a name="l00116"></a>00116       }
<a name="l00117"></a>00117 
<a name="l00121"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator_1_1SimplexCellVisitor.html#fcfa3a3a47863f8280fae219f2f48087">00121</a>     <span class="keywordtype">void</span> Visit(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> cellId, <a class="code" href="classitk_1_1PolygonCell.html">SimplexPolygonType</a> * poly)
<a name="l00122"></a>00122       {
<a name="l00123"></a>00123       <span class="keyword">typedef</span> <span class="keyword">typename</span> SimplexPolygonType::PointIdIterator   PointIdIterator;
<a name="l00124"></a>00124       PointIdIterator  it =  poly-&gt;<a class="code" href="classitk_1_1PolygonCell.html#b5b8fa8bd6661e1da4e7e1d6f8e94425">PointIdsBegin</a>();
<a name="l00125"></a>00125       InputPointType center,p;
<a name="l00126"></a>00126       center.Fill(0);
<a name="l00128"></a>00128 
<a name="l00129"></a>00129       <span class="keywordflow">while</span> ( it != poly-&gt;<a class="code" href="classitk_1_1PolygonCell.html#6d7b6f2bf0a1db7212f0d0fa91a31bd4">PointIdsEnd</a>() )
<a name="l00130"></a>00130         {
<a name="l00131"></a>00131         m_Mesh-&gt;GetPoint(*it, &amp;p);
<a name="l00132"></a>00132         center += p.GetVectorFromOrigin();
<a name="l00133"></a>00133         it++;
<a name="l00134"></a>00134         }
<a name="l00135"></a>00135 
<a name="l00136"></a>00136       center[0] /= poly-&gt;<a class="code" href="classitk_1_1PolygonCell.html#f316ebeb222b07b0f098842652526b81">GetNumberOfPoints</a>();
<a name="l00137"></a>00137       center[1] /= poly-&gt;<a class="code" href="classitk_1_1PolygonCell.html#f316ebeb222b07b0f098842652526b81">GetNumberOfPoints</a>();
<a name="l00138"></a>00138       center[2] /= poly-&gt;<a class="code" href="classitk_1_1PolygonCell.html#f316ebeb222b07b0f098842652526b81">GetNumberOfPoints</a>();
<a name="l00139"></a>00139       
<a name="l00140"></a>00140       m_CenterMap-&gt;InsertElement(cellId, center);
<a name="l00141"></a>00141       }
<a name="l00142"></a>00142 
<a name="l00143"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator_1_1SimplexCellVisitor.html#4d9fc8a8b5d4d854794e19e82a12bc65">00143</a>     <a class="code" href="classitk_1_1SmartPointer.html">PointMapPointer</a> GetCenterMap()
<a name="l00144"></a>00144       {
<a name="l00145"></a>00145       <span class="keywordflow">return</span> m_CenterMap;
<a name="l00146"></a>00146       }
<a name="l00147"></a>00147   
<a name="l00148"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator_1_1SimplexCellVisitor.html#0aead6ea3b0e0803ddaca1a69ce4596d">00148</a>     <span class="keywordtype">void</span> SetMesh(InputMeshPointer mesh)
<a name="l00149"></a>00149       {
<a name="l00150"></a>00150       m_Mesh = mesh;
<a name="l00151"></a>00151       }
<a name="l00152"></a>00152        
<a name="l00153"></a>00153   <span class="keyword">protected</span>:
<a name="l00154"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator_1_1SimplexCellVisitor.html#bff887679426ebca3825248d451d4b56">00154</a>     InputMeshPointer m_Mesh;
<a name="l00155"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator_1_1SimplexCellVisitor.html#e866494877dfdd38e5049c9dd4f61db6">00155</a>     <a class="code" href="classitk_1_1SmartPointer.html">PointMapPointer</a>  m_CenterMap; 
<a name="l00156"></a>00156     };
<a name="l00157"></a>00157 
<a name="l00158"></a>00158   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1CellInterfaceVisitorImplementation.html">itk::CellInterfaceVisitorImplementation</a>&lt;<a class="code" href="namespaceHardConnectedComponentImageFilter.html#6e44b89d73d576fe68c175566a634ab8">InputPixelType</a>,
<a name="l00159"></a>00159                                                   InputCellTraitsType,
<a name="l00160"></a>00160                                                   <a class="code" href="classitk_1_1PolygonCell.html">SimplexPolygonType</a>,
<a name="l00161"></a>00161                                                   <a class="code" href="classitk_1_1SimplexMeshVolumeCalculator_1_1SimplexCellVisitor.html">SimplexCellVisitor</a>&gt;
<a name="l00162"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#6bca7642fd20aa79cdb6ea82b3485769">00162</a>   <a class="code" href="classitk_1_1CellInterfaceVisitorImplementation.html">SimplexVisitorInterfaceType</a>;
<a name="l00163"></a>00163 
<a name="l00164"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#4613a779da37df7b46b9224094654dbb">00164</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">SimplexVisitorInterfaceType::Pointer</a>  <a class="code" href="classitk_1_1SmartPointer.html">SimplexVisitorInterfacePointer</a>;
<a name="l00165"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#2774f25c498c9b2779c02433800e444c">00165</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> SimplexCellType::MultiVisitor         CellMultiVisitorType;
<a name="l00166"></a><a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html#e2f572e2e1e26ad9f4d94d4652593630">00166</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">CellMultiVisitorType::Pointer</a>         CellMultiVisitorPointer;
<a name="l00167"></a>00167     
<a name="l00169"></a>00169   <a class="code" href="itkMacro_8h.html#b950b763422e5059348e6178e2a5f425">itkSetObjectMacro</a>(<a class="code" href="classitk_1_1SimplexMesh.html" title="The class represents a 2-simplex mesh.">SimplexMesh</a>, InputMeshType);
<a name="l00170"></a>00170 
<a name="l00172"></a>00172   <span class="keywordtype">void</span> Compute(<span class="keywordtype">void</span>);
<a name="l00173"></a>00173 
<a name="l00175"></a>00175   <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(Volume, <span class="keywordtype">double</span>);
<a name="l00176"></a>00176 
<a name="l00178"></a>00178   <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(Area, <span class="keywordtype">double</span>);
<a name="l00179"></a>00179 
<a name="l00180"></a>00180 <span class="keyword">protected</span>:
<a name="l00181"></a>00181   <a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html" title="Adapted from itkSimplexMeshToTriangleFilter to calculate the volume of a simplex...">SimplexMeshVolumeCalculator</a>();
<a name="l00182"></a>00182   <span class="keyword">virtual</span> ~<a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html" title="Adapted from itkSimplexMeshToTriangleFilter to calculate the volume of a simplex...">SimplexMeshVolumeCalculator</a>();
<a name="l00183"></a>00183   <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="l00184"></a>00184 
<a name="l00185"></a>00185 <span class="keyword">private</span>:
<a name="l00186"></a>00186   <a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html" title="Adapted from itkSimplexMeshToTriangleFilter to calculate the volume of a simplex...">SimplexMeshVolumeCalculator</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html" title="Adapted from itkSimplexMeshToTriangleFilter to calculate the volume of a simplex...">Self</a>&amp;); <span class="comment">//purposely not implemented</span>
<a name="l00187"></a>00187   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classitk_1_1SimplexMeshVolumeCalculator.html" title="Adapted from itkSimplexMeshToTriangleFilter to calculate the volume of a simplex...">Self</a>&amp;); <span class="comment">//purposely not implemented</span>
<a name="l00188"></a>00188     
<a name="l00189"></a>00189   <span class="keywordtype">void</span> Initialize();
<a name="l00190"></a>00190   <span class="keywordtype">void</span> Finalize();
<a name="l00191"></a>00191 
<a name="l00193"></a>00193   <span class="keywordtype">void</span> CreateTriangles();
<a name="l00194"></a>00194 
<a name="l00196"></a>00196   <span class="keywordtype">void</span> CalculateTriangleVolume(InputPointType p1, InputPointType p2, InputPointType p3);
<a name="l00197"></a>00197 
<a name="l00199"></a>00199   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> FindCellId(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> id1, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> id2, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> id3);
<a name="l00200"></a>00200 
<a name="l00202"></a>00202   <a class="code" href="classitk_1_1SmartPointer.html">PointMapPointer</a> m_Centers;
<a name="l00203"></a>00203 
<a name="l00204"></a>00204   InputMeshPointer  m_SimplexMesh;
<a name="l00205"></a>00205 
<a name="l00206"></a>00206   <span class="keywordtype">double</span> m_Volume;
<a name="l00207"></a>00207   <span class="keywordtype">double</span> m_VolumeX;
<a name="l00208"></a>00208   <span class="keywordtype">double</span> m_VolumeY;
<a name="l00209"></a>00209   <span class="keywordtype">double</span> m_VolumeZ;
<a name="l00210"></a>00210   <span class="keywordtype">double</span> m_Area;
<a name="l00211"></a>00211   <span class="keywordtype">double</span> m_Kx;
<a name="l00212"></a>00212   <span class="keywordtype">double</span> m_Ky;
<a name="l00213"></a>00213   <span class="keywordtype">double</span> m_Kz;
<a name="l00214"></a>00214   <span class="keywordtype">double</span> m_Wxyz;
<a name="l00215"></a>00215   <span class="keywordtype">double</span> m_Wxy;
<a name="l00216"></a>00216   <span class="keywordtype">double</span> m_Wxz;
<a name="l00217"></a>00217   <span class="keywordtype">double</span> m_Wyz;
<a name="l00218"></a>00218   <span class="keywordtype">long</span>   m_Muncx;
<a name="l00219"></a>00219   <span class="keywordtype">long</span>   m_Muncy;
<a name="l00220"></a>00220   <span class="keywordtype">long</span>   m_Muncz;
<a name="l00221"></a>00221 
<a name="l00222"></a>00222   <span class="keywordtype">long</span> m_NumberOfTriangles;
<a name="l00223"></a>00223 };
<a name="l00224"></a>00224 
<a name="l00225"></a>00225 } <span class="comment">//end of namespace</span>
<a name="l00226"></a>00226 
<a name="l00227"></a>00227 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span>
<a name="l00228"></a>00228 <span class="preprocessor"></span><span class="preprocessor">#include "itkSimplexMeshVolumeCalculator.txx"</span>
<a name="l00229"></a>00229 <span class="preprocessor">#endif</span>
<a name="l00230"></a>00230 <span class="preprocessor"></span>
<a name="l00231"></a>00231 <span class="preprocessor">#endif </span><span class="comment">/* __SimplexMeshVolumeCalculator_h */</span>
<a name="l00232"></a>00232 
</pre></div></div>
<hr><address><small>
Generated at Fri May 8 00:15:18 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>