<!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: itkDeformableSimplexMesh3DGradientConstraintForceFilter.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> <a href="modules.html" class="qindex">Groups</a> <a href="namespaces.html" class="qindex">Namespace List</a> <a href="hierarchy.html" class="qindex">Class Hierarchy</a> <a href="classes.html" class="qindex">Alphabetical List</a> <a href="annotated.html" class="qindex">Compound List</a> <a href="files.html" class="qindex">File List</a> <a href="namespacemembers.html" class="qindex">Namespace Members</a> <a href="functions.html" class="qindex">Compound Members</a> <a href="globals.html" class="qindex">File Members</a> <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> » <a class="el" href="dir_16b0d2d22c345042f35cebae66b36010.html">Algorithms</a> </div> <div class="contents"> <h1>itkDeformableSimplexMesh3DGradientConstraintForceFilter.h</h1><a href="itkDeformableSimplexMesh3DGradientConstraintForceFilter_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 & Registration Toolkit</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: itkDeformableSimplexMesh3DGradientConstraintForceFilter.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 19:50:04 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.5 $</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 __itkDeformableSimplexMesh3DGradientConstraintForceFilter_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkDeformableSimplexMesh3DGradientConstraintForceFilter_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkDeformableSimplexMesh3DFilter_8h.html">itkDeformableSimplexMesh3DFilter.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkMesh_8h.html">itkMesh.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkVector_8h.html">itkVector.h</a>"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkImage_8h.html">itkImage.h</a>"</span> <a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="itkConstNeighborhoodIterator_8h.html">itkConstNeighborhoodIterator.h</a>"</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 <a name="l00027"></a>00027 <span class="preprocessor">#include <set></span> <a name="l00028"></a>00028 <span class="preprocessor">#include <vector></span> <a name="l00029"></a>00029 <span class="keyword">namespace </span>itk <a name="l00030"></a>00030 { <a name="l00031"></a><a class="code" href="classitk_1_1ImageVoxel.html">00031</a> <span class="keyword">class </span><a class="code" href="classitk_1_1ImageVoxel.html">ImageVoxel</a> <a name="l00032"></a>00032 { <a name="l00033"></a>00033 <a name="l00034"></a>00034 <span class="keyword">public</span>: <a name="l00035"></a>00035 <span class="comment">// voxel coordinates</span> <a name="l00036"></a><a class="code" href="classitk_1_1ImageVoxel.html#6065f21557f2f05e2108bb0720c77c74">00036</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1ImageVoxel.html#6065f21557f2f05e2108bb0720c77c74">m_Vpos</a>[3]; <a name="l00037"></a>00037 <span class="comment">// subvoxel coordinates (in cartesian space)</span> <a name="l00038"></a><a class="code" href="classitk_1_1ImageVoxel.html#3a3fe03fd2eb7227349dbe281a3c6fe3">00038</a> <span class="keywordtype">double</span> <a class="code" href="classitk_1_1ImageVoxel.html#3a3fe03fd2eb7227349dbe281a3c6fe3">m_Spos</a>[3]; <a name="l00039"></a>00039 <span class="comment">// voxel value converted to a double</span> <a name="l00040"></a><a class="code" href="classitk_1_1ImageVoxel.html#3b5931241e46d5984afcb73690bde3ca">00040</a> <span class="keywordtype">double</span> <a class="code" href="classitk_1_1ImageVoxel.html#3b5931241e46d5984afcb73690bde3ca">m_Value</a>; <a name="l00041"></a>00041 <span class="comment">// distance from line origin</span> <a name="l00042"></a><a class="code" href="classitk_1_1ImageVoxel.html#50f3f631b14b36a3cee03be5c013024e">00042</a> <span class="keywordtype">double</span> <a class="code" href="classitk_1_1ImageVoxel.html#50f3f631b14b36a3cee03be5c013024e">m_Distance</a>; <a name="l00043"></a>00043 <span class="comment">// index</span> <a name="l00044"></a><a class="code" href="classitk_1_1ImageVoxel.html#d19e436a3ee1fb0870818fdc2b8d104a">00044</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1ImageVoxel.html#d19e436a3ee1fb0870818fdc2b8d104a">m_Index</a>; <a name="l00045"></a>00045 <a name="l00046"></a><a class="code" href="classitk_1_1ImageVoxel.html#be77970b2a599bd178eec518ad25bf08">00046</a> <a class="code" href="classitk_1_1ImageVoxel.html#be77970b2a599bd178eec518ad25bf08">ImageVoxel</a>() {}; <a name="l00047"></a><a class="code" href="classitk_1_1ImageVoxel.html#93ad532fdef5c5a72dedcaac125c4c6d">00047</a> <a class="code" href="classitk_1_1ImageVoxel.html#be77970b2a599bd178eec518ad25bf08">ImageVoxel</a>(<span class="keywordtype">int</span> *pos, <span class="keywordtype">double</span> *subpos, <span class="keywordtype">double</span> val, <span class="keywordtype">double</span> dist, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ind) <a name="l00048"></a>00048 { <a name="l00049"></a>00049 this-><a class="code" href="classitk_1_1ImageVoxel.html#6065f21557f2f05e2108bb0720c77c74">m_Vpos</a>[0] = pos[0]; <a name="l00050"></a>00050 this-><a class="code" href="classitk_1_1ImageVoxel.html#6065f21557f2f05e2108bb0720c77c74">m_Vpos</a>[1] = pos[1]; <a name="l00051"></a>00051 this-><a class="code" href="classitk_1_1ImageVoxel.html#6065f21557f2f05e2108bb0720c77c74">m_Vpos</a>[2] = pos[2]; <a name="l00052"></a>00052 this-><a class="code" href="classitk_1_1ImageVoxel.html#3a3fe03fd2eb7227349dbe281a3c6fe3">m_Spos</a>[0] = subpos[0]; <a name="l00053"></a>00053 this-><a class="code" href="classitk_1_1ImageVoxel.html#3a3fe03fd2eb7227349dbe281a3c6fe3">m_Spos</a>[1] = subpos[1]; <a name="l00054"></a>00054 this-><a class="code" href="classitk_1_1ImageVoxel.html#3a3fe03fd2eb7227349dbe281a3c6fe3">m_Spos</a>[2] = subpos[2]; <a name="l00055"></a>00055 this-><a class="code" href="classitk_1_1ImageVoxel.html#3b5931241e46d5984afcb73690bde3ca">m_Value</a> = val; <a name="l00056"></a>00056 this-><a class="code" href="classitk_1_1ImageVoxel.html#50f3f631b14b36a3cee03be5c013024e">m_Distance</a> = dist; <a name="l00057"></a>00057 this-><a class="code" href="classitk_1_1ImageVoxel.html#d19e436a3ee1fb0870818fdc2b8d104a">m_Index</a> = ind; <a name="l00058"></a>00058 } <a name="l00059"></a>00059 <a name="l00061"></a><a class="code" href="classitk_1_1ImageVoxel.html#2e39c6c3eb701ab06870f361fb403617">00061</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1ImageVoxel.html#2e39c6c3eb701ab06870f361fb403617" title="returns voxel X coordinate (voxel column)">GetX</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classitk_1_1ImageVoxel.html#6065f21557f2f05e2108bb0720c77c74">m_Vpos</a>[0]; } <a name="l00063"></a><a class="code" href="classitk_1_1ImageVoxel.html#aa370f92e44a2d6f92ab6df4ec3d090d">00063</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1ImageVoxel.html#aa370f92e44a2d6f92ab6df4ec3d090d" title="returns voxel Y coordinate (voxel row)">GetY</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classitk_1_1ImageVoxel.html#6065f21557f2f05e2108bb0720c77c74">m_Vpos</a>[1]; } <a name="l00065"></a><a class="code" href="classitk_1_1ImageVoxel.html#0313000d401dea14e4439d3df19f68a4">00065</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1ImageVoxel.html#0313000d401dea14e4439d3df19f68a4" title="returns voxel Z coordinate (voxel plane)">GetZ</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classitk_1_1ImageVoxel.html#6065f21557f2f05e2108bb0720c77c74">m_Vpos</a>[2]; } <a name="l00067"></a><a class="code" href="classitk_1_1ImageVoxel.html#2677c77de7a7808785735a60ed06a1ba">00067</a> <span class="keywordtype">double</span> <a class="code" href="classitk_1_1ImageVoxel.html#2677c77de7a7808785735a60ed06a1ba" title="returns voxel distance to origin">GetDistance</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classitk_1_1ImageVoxel.html#50f3f631b14b36a3cee03be5c013024e">m_Distance</a>; } <a name="l00069"></a><a class="code" href="classitk_1_1ImageVoxel.html#b8cca341605afbc6919f9f959e96e59b">00069</a> <span class="keywordtype">double</span> <a class="code" href="classitk_1_1ImageVoxel.html#b8cca341605afbc6919f9f959e96e59b" title="returns voxel value">GetValue</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classitk_1_1ImageVoxel.html#3b5931241e46d5984afcb73690bde3ca">m_Value</a>; } <a name="l00071"></a>00071 <a name="l00073"></a><a class="code" href="classitk_1_1ImageVoxel.html#e6ddba86c82d809caaec2efa56dad2be">00073</a> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1ImageVoxel.html#e6ddba86c82d809caaec2efa56dad2be" title="returns voxel position">SetValue</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> val) { <a class="code" href="classitk_1_1ImageVoxel.html#3b5931241e46d5984afcb73690bde3ca">m_Value</a> = val; } <a name="l00074"></a>00074 <a name="l00075"></a>00075 }; <a name="l00076"></a>00076 <a name="l00087"></a>00087 <span class="keyword">template</span> <<span class="keyword">class</span> TInputMesh, <span class="keyword">class</span> TOutputMesh> <a name="l00088"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html">00088</a> <span class="keyword">class </span><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html" title="Additional to its superclass this class reimplemets the external forces methos in...">DeformableSimplexMesh3DGradientConstraintForceFilter</a> : <span class="keyword">public</span> <a class="code" href="classitk_1_1DeformableSimplexMesh3DFilter.html" title="Three-dimensional deformable model for image segmentation.">DeformableSimplexMesh3DFilter</a><TInputMesh, TOutputMesh> <a name="l00089"></a>00089 { <a name="l00090"></a>00090 <span class="keyword">public</span>: <a name="l00092"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#96bea15509473d789d9326a1a80276e7">00092</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html" title="Additional to its superclass this class reimplemets the external forces methos in...">DeformableSimplexMesh3DGradientConstraintForceFilter</a> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html" title="Additional to its superclass this class reimplemets the external forces methos in...">Self</a>; <a name="l00093"></a>00093 <a name="l00095"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#971646562e987251087b13ee1d0c8559">00095</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1DeformableSimplexMesh3DFilter.html">DeformableSimplexMesh3DFilter<TInputMesh, TOutputMesh></a> <a class="code" href="classitk_1_1DeformableSimplexMesh3DFilter.html">Superclass</a>; <a name="l00096"></a>00096 <a name="l00098"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#44f6c8fecaffb54edde10ce2f2f32a45">00098</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer<Self></a> <a class="code" href="classitk_1_1SmartPointer.html">Pointer</a>; <a name="l00099"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#d903a83dd9c2a9486808b13588d73c50">00099</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer<const Self></a> <a class="code" href="classitk_1_1SmartPointer.html">ConstPointer</a>; <a name="l00100"></a>00100 <a name="l00102"></a>00102 <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html" title="Additional to its superclass this class reimplemets the external forces methos in...">Self</a>); <a name="l00103"></a>00103 <a name="l00105"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#d45d3f231620167fb7f1bb672bf13c73">00105</a> <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html" title="Additional to its superclass this class reimplemets the external forces methos in...">DeformableSimplexMesh3DGradientConstraintForceFilter</a>, <a class="code" href="classitk_1_1DeformableSimplexMesh3DFilter.html" title="Three-dimensional deformable model for image segmentation.">DeformableSimplexMesh3DFilter</a>); <a name="l00106"></a>00106 <a name="l00108"></a>00108 <span class="keyword">typedef</span> TInputMesh <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#d45d3f231620167fb7f1bb672bf13c73">InputMeshType</a>; <a name="l00109"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#bb8f7d5c207371f4d6fb77d76b50cbf7">00109</a> <span class="keyword">typedef</span> TOutputMesh <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#bb8f7d5c207371f4d6fb77d76b50cbf7">OutputMeshType</a>; <a name="l00110"></a>00110 <a name="l00111"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#e80647d1eeee75a38cfdea8b0513b3a4">00111</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Point.html">Superclass::PointType</a> <a class="code" href="classitk_1_1Point.html">PointType</a>; <a name="l00112"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#572a563f6860aeae80d1b238b60ed2a8">00112</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1DeformableSimplexMesh3DFilter.html#01c55315dc8ffda2bc604681999eac69">Superclass::GradientIndexType</a> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#572a563f6860aeae80d1b238b60ed2a8">GradientIndexType</a>; <a name="l00113"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#3ca450869d0d5a15f5f0edd6481f3905">00113</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1DeformableSimplexMesh3DFilter.html#37a92474bd31a9676c522c9827c18c6c">Superclass::GradientIndexValueType</a> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#3ca450869d0d5a15f5f0edd6481f3905">GradientIndexValueType</a>; <a name="l00114"></a>00114 <a name="l00115"></a>00115 <span class="comment">/* Mesh pointer definition. */</span> <a name="l00116"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#3be6afdfe6bff4a243804671bca6a53b">00116</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">InputMeshType::Pointer</a> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#3be6afdfe6bff4a243804671bca6a53b">InputMeshPointer</a>; <a name="l00117"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#2425ef3baefebe0b79b2117ab1c3bb4f">00117</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">OutputMeshType::Pointer</a> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#2425ef3baefebe0b79b2117ab1c3bb4f">OutputMeshPointer</a>; <a name="l00118"></a>00118 <a name="l00119"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#466cd18cf393555f2a4781eea3f5e596">00119</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> InputMeshType::PixelType <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#466cd18cf393555f2a4781eea3f5e596">PixelType</a>; <a name="l00120"></a>00120 <a name="l00121"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#9892ba0609c1db57ff01a61089334435">00121</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">Image<PixelType, 3></a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">GradientIntensityImageType</a>; <a name="l00122"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#7945255647e656bdf98a4bf9647efe0c">00122</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">GradientIntensityImageType::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">GradientIntensityImagePointer</a>; <a name="l00123"></a>00123 <a name="l00124"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#c76af3e63c3491b20a6fbab673d98f7d">00124</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">Image<float, 3></a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">OriginalImageType</a>; <a name="l00125"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#bda8a382dd5e717304397b9dc557f366">00125</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Image.html#42409699ba5aa72fcfdcdd05a910db6b">OriginalImageType::IndexType</a> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#bda8a382dd5e717304397b9dc557f366">OriginalImageIndexType</a>; <a name="l00126"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#ed7ed8f916d233ce9b7c547d5cddcf4b">00126</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> OriginalImageIndexType::IndexValueType <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#ed7ed8f916d233ce9b7c547d5cddcf4b">ImageIndexValueType</a>; <a name="l00127"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#e10ae4d25bed8a38f2f83a640d48b90e">00127</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">OriginalImageType::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">OriginalImagePointer</a>; <a name="l00129"></a>00129 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(Range, <span class="keywordtype">int</span>); <a name="l00130"></a>00130 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(Range, <span class="keywordtype">int</span>); <a name="l00132"></a>00132 <a name="l00133"></a>00133 <span class="comment">// full segment or half segment direction</span> <a name="l00134"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#9caecefd4232b9523e5d0c96974f42b7">00134</a> <span class="keyword">enum</span> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#9caecefd4232b9523e5d0c96974f42b7">SIDE</a> <a name="l00135"></a>00135 { <a name="l00136"></a>00136 <span class="comment">// half segment in direction</span> <a name="l00137"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#9caecefd4232b9523e5d0c96974f42b71c95a3032e5dae150f22768cd802b204">00137</a> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#9caecefd4232b9523e5d0c96974f42b71c95a3032e5dae150f22768cd802b204">NORMAL</a>, <a name="l00138"></a>00138 <span class="comment">// half segment in -direction</span> <a name="l00139"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#9caecefd4232b9523e5d0c96974f42b72d2ef0fe2f9d387cbdf6c0e509307372">00139</a> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#9caecefd4232b9523e5d0c96974f42b72d2ef0fe2f9d387cbdf6c0e509307372">INVERSE</a>, <a name="l00140"></a>00140 <span class="comment">// complete segment</span> <a name="l00141"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#9caecefd4232b9523e5d0c96974f42b724b3b5d008396f344717b7d3c84fb3bf">00141</a> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#9caecefd4232b9523e5d0c96974f42b724b3b5d008396f344717b7d3c84fb3bf">BOTH</a> <a name="l00142"></a>00142 }; <a name="l00143"></a>00143 <a name="l00147"></a>00147 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(<a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">Image</a>, <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#e10ae4d25bed8a38f2f83a640d48b90e">OriginalImagePointer</a>); <a name="l00148"></a>00148 <a name="l00149"></a>00149 <span class="keyword">protected</span>: <a name="l00150"></a>00150 <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#1ef0edae67f9718b122303ad98ebfacd">DeformableSimplexMesh3DGradientConstraintForceFilter</a>(); <a name="l00151"></a>00151 <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#aa7e0d08563d27a175a2301d5a311cdd">~DeformableSimplexMesh3DGradientConstraintForceFilter</a>(); <a name="l00152"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#758afebb2cb9e908642c8addf7497f95">00152</a> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#758afebb2cb9e908642c8addf7497f95">DeformableSimplexMesh3DGradientConstraintForceFilter</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html" title="Additional to its superclass this class reimplemets the external forces methos in...">Self</a>&) {} <a name="l00153"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#6f3b08645ed5481126d06bf1158dd0c1">00153</a> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#6f3b08645ed5481126d06bf1158dd0c1">operator=</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html" title="Additional to its superclass this class reimplemets the external forces methos in...">Self</a>&){}; <a name="l00154"></a>00154 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#99cfccaae1ee7ffd39c3d8d2cf4a3c27">PrintSelf</a>(std::ostream& 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="l00155"></a>00155 <a name="l00159"></a>00159 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#62fecb1dab9de5e35e3b6442ace7f109">ComputeExternalForce</a>(<a class="code" href="classitk_1_1SimplexMeshGeometry.html" title="handle geometric properties for vertices of a simplx mesh">SimplexMeshGeometry</a>* data); <a name="l00160"></a>00160 <a name="l00164"></a><a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#a5a1b8806ff7f88507cc8d21f33363a4">00164</a> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1DeformableSimplexMesh3DGradientConstraintForceFilter.html#a5a1b8806ff7f88507cc8d21f33363a4">m_Range</a>; <a name="l00165"></a>00165 <a name="l00166"></a>00166 <span class="keyword">private</span>: <a name="l00167"></a>00167 <span class="keywordtype">double</span> NextVoxel(<span class="keyword">const</span> <span class="keywordtype">double</span>* pp, <span class="keywordtype">int</span> *ic, <span class="keywordtype">double</span> *x, <span class="keywordtype">double</span> *y, <span class="keywordtype">double</span> *z); <a name="l00168"></a>00168 <a name="l00169"></a>00169 <span class="keywordtype">int</span> Signi(<span class="keywordtype">double</span> a); <a name="l00170"></a>00170 <a name="l00171"></a>00171 <span class="keywordtype">void</span> Clear(); <a name="l00172"></a>00172 <a name="l00173"></a>00173 <span class="comment">// line starting voxel</span> <a name="l00174"></a>00174 <a class="code" href="classitk_1_1ImageVoxel.html">ImageVoxel</a> *m_StartVoxel; <a name="l00175"></a>00175 <span class="comment">// line voxels in direction</span> <a name="l00176"></a>00176 std::vector<ImageVoxel *> m_Positive; <a name="l00177"></a>00177 <span class="comment">// line voxels in -direction</span> <a name="l00178"></a>00178 std::vector<ImageVoxel *> m_Negative; <a name="l00179"></a>00179 <a name="l00180"></a>00180 <a class="code" href="classitk_1_1SmartPointer.html">OriginalImagePointer</a> m_Image; <a name="l00181"></a>00181 <a name="l00182"></a>00182 }; <span class="comment">// end of class</span> <a name="l00183"></a>00183 <a name="l00184"></a>00184 } <span class="comment">// namespace itk</span> <a name="l00185"></a>00185 <a name="l00186"></a>00186 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00187"></a>00187 <span class="preprocessor"></span><span class="preprocessor">#include "itkDeformableSimplexMesh3DGradientConstraintForceFilter.txx"</span> <a name="l00188"></a>00188 <span class="preprocessor">#endif</span> <a name="l00189"></a>00189 <span class="preprocessor"></span> <a name="l00190"></a>00190 <span class="preprocessor">#endif </span><span class="comment">/* __DeformableSimplexMesh3DGradientConstraintForceFilter_h */</span> <a name="l00191"></a>00191 </pre></div></div> <hr><address><small> Generated at Thu May 7 22:33:27 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>, © 1997-2000</small></address> </body> </html>