<!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: itkSpecialCoordinatesImage.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_ea7fc529ede9a38b0438cf13831ae873.html">Common</a> </div> <div class="contents"> <h1>itkSpecialCoordinatesImage.h</h1><a href="itkSpecialCoordinatesImage_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: itkSpecialCoordinatesImage.h,v $</span> <a name="l00005"></a>00005 <span class="comment"> Language: C++</span> <a name="l00006"></a>00006 <span class="comment"> Date: $Date: 2008-10-19 12:33:32 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.17 $</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 __itkSpecialCoordinatesImage_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkSpecialCoordinatesImage_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkImageBase_8h.html">itkImageBase.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkImageRegion_8h.html">itkImageRegion.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkImportImageContainer_8h.html">itkImportImageContainer.h</a>"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkDefaultPixelAccessor_8h.html">itkDefaultPixelAccessor.h</a>"</span> <a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="itkDefaultPixelAccessorFunctor_8h.html">itkDefaultPixelAccessorFunctor.h</a>"</span> <a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="itkPoint_8h.html">itkPoint.h</a>"</span> <a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="itkContinuousIndex_8h.html">itkContinuousIndex.h</a>"</span> <a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="itkFixedArray_8h.html">itkFixedArray.h</a>"</span> <a name="l00028"></a>00028 <a name="l00029"></a>00029 <span class="keyword">namespace </span>itk <a name="l00030"></a>00030 { <a name="l00031"></a>00031 <a name="l00095"></a>00095 <span class="keyword">template</span> <<span class="keyword">class</span> TPixel, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> VImageDimension=2> <a name="l00096"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html">00096</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1SpecialCoordinatesImage.html" title="Templated n-dimensional nonrectilinear-coordinate image base class.">SpecialCoordinatesImage</a> : <span class="keyword">public</span> <a class="code" href="classitk_1_1ImageBase.html" title="Base class for templated image classes.">ImageBase</a><VImageDimension> <a name="l00097"></a>00097 { <a name="l00098"></a>00098 <span class="keyword">public</span>: <a name="l00100"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#dc2d3bdad9f96b6ca28a2581f0ec9be3">00100</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SpecialCoordinatesImage.html" title="Templated n-dimensional nonrectilinear-coordinate image base class.">SpecialCoordinatesImage</a> <a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">Self</a>; <a name="l00101"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#d44e082168546136436cff130aba102f">00101</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageBase.html">ImageBase<VImageDimension></a> <a class="code" href="classitk_1_1Object.html" title="Base class for most itk classes.">Superclass</a>; <a name="l00102"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#aba46b0572d3e68d2d75af16f7170eca">00102</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="l00103"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#3034896240a1921f9b00025a225137e4">00103</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="l00104"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#51638cae8599e5129ad1ad7bab4709df">00104</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1WeakPointer.html" title="Implements a weak reference to an object.">WeakPointer<const Self></a> <a class="code" href="classitk_1_1WeakPointer.html" title="Implements a weak reference to an object.">ConstWeakPointer</a>; <a name="l00105"></a>00105 <a name="l00107"></a>00107 <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="l00108"></a>00108 <a name="l00110"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#d1e5a858ad0d47e8eb12720d3d3f386b">00110</a> <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1SpecialCoordinatesImage.html" title="Templated n-dimensional nonrectilinear-coordinate image base class.">SpecialCoordinatesImage</a>, <a class="code" href="classitk_1_1ImageBase.html" title="Base class for templated image classes.">ImageBase</a>); <a name="l00111"></a>00111 <a name="l00114"></a>00114 <span class="keyword">typedef</span> TPixel PixelType; <a name="l00115"></a>00115 <a name="l00117"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#d6ac07aefd1f580d9be21964076f254f">00117</a> <span class="keyword">typedef</span> TPixel ValueType ; <a name="l00118"></a>00118 <a name="l00123"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#d9a7fdd5daa7a5fb22c78223081d0c43">00123</a> <span class="keyword">typedef</span> TPixel InternalPixelType; <a name="l00124"></a>00124 <a name="l00125"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#1d861c92231781ac39c5b5fe99ccc8bf">00125</a> <span class="keyword">typedef</span> PixelType IOPixelType; <a name="l00126"></a>00126 <a name="l00129"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#551e58d779197e544f0c908588833866">00129</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1DefaultPixelAccessor.html" title="Give access to partial aspects a type.">DefaultPixelAccessor< PixelType ></a> <a class="code" href="classitk_1_1DefaultPixelAccessor.html" title="Give access to partial aspects a type.">AccessorType</a>; <a name="l00130"></a>00130 <a name="l00134"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#b9986d3b494cbdabd6bc838761e5afc7">00134</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1DefaultPixelAccessorFunctor.html" title="This class provides a common API for pixel accessors for Image and VectorImage. (between...">DefaultPixelAccessorFunctor< Self ></a> <a class="code" href="classitk_1_1DefaultPixelAccessorFunctor.html" title="This class provides a common API for pixel accessors for Image and VectorImage. (between...">AccessorFunctorType</a>; <a name="l00135"></a>00135 <a name="l00140"></a>00140 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(ImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, VImageDimension); <a name="l00141"></a>00141 <a name="l00143"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#304c9ffaa951f3bdb9650eb14512cd6b">00143</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImportImageContainer.html">ImportImageContainer<unsigned long, PixelType></a> <a class="code" href="classitk_1_1ImportImageContainer.html">PixelContainer</a>; <a name="l00144"></a>00144 <a name="l00146"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#ba01584172ed3f37e6251ecd092d4beb">00146</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">Superclass::IndexType</a> <a class="code" href="classitk_1_1Index.html">IndexType</a>; <a name="l00147"></a>00147 <a name="l00149"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#c980169e49e64d5983c2c75d2b913224">00149</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OffsetType <a class="code" href="classitk_1_1Offset.html" title="Represent the offset between two n-dimensional indexes in a n-dimensional image.">OffsetType</a>; <a name="l00150"></a>00150 <a name="l00152"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#9c21e58dd2c380cb78ee0bbd5dee83b9">00152</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">Superclass::SizeType</a> <a class="code" href="classitk_1_1Size.html">SizeType</a>; <a name="l00153"></a>00153 <a name="l00155"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#503ae954137a4c8c53fa7edbaaafe5d8">00155</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="classitk_1_1ImageRegion.html" title="An image region represents a structured region of data.">RegionType</a>; <a name="l00156"></a>00156 <a name="l00161"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#49e92b45990fdfdf87074a5e309d3dbc">00161</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::SpacingType <a class="code" href="classitk_1_1Vector.html">SpacingType</a>; <a name="l00162"></a>00162 <a name="l00165"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#bda2a4fa9d89db7f17874457e6549d2b">00165</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::PointType <a class="code" href="classitk_1_1Point.html">PointType</a>; <a name="l00166"></a>00166 <a name="l00168"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#469c9868efc350d39fb1e9772face799">00168</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">PixelContainer::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">PixelContainerPointer</a>; <a name="l00169"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#81ebd1d16bf69c37744b1b60813ff3ff">00169</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">PixelContainer::ConstPointer</a> <a class="code" href="classitk_1_1SmartPointer.html">PixelContainerConstPointer</a>; <a name="l00170"></a>00170 <a name="l00173"></a>00173 <span class="keywordtype">void</span> Allocate(); <a name="l00174"></a>00174 <a name="l00178"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#821dbc98d631aa3478304a7ffe1efd4f">00178</a> <span class="keywordtype">void</span> SetRegions(<a class="code" href="classitk_1_1ImageRegion.html" title="An image region represents a structured region of data.">RegionType</a> region) <a name="l00179"></a>00179 { <a name="l00180"></a>00180 this->SetLargestPossibleRegion(region); <a name="l00181"></a>00181 this->SetBufferedRegion(region); <a name="l00182"></a>00182 this->SetRequestedRegion(region); <a name="l00183"></a>00183 }; <a name="l00185"></a>00185 <a name="l00186"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#59399e2e6dcc7153c29c3d6f0b9c7b9d">00186</a> <span class="keywordtype">void</span> SetRegions(<a class="code" href="classitk_1_1Size.html">SizeType</a> size) <a name="l00187"></a>00187 { <a name="l00188"></a>00188 <a class="code" href="classitk_1_1ImageRegion.html" title="An image region represents a structured region of data.">RegionType</a> region; region.<a class="code" href="classitk_1_1ImageRegion.html#5c86511415de7c7d1cd9cdce03ea0ead">SetSize</a>(size); <a name="l00189"></a>00189 this->SetLargestPossibleRegion(region); <a name="l00190"></a>00190 this->SetBufferedRegion(region); <a name="l00191"></a>00191 this->SetRequestedRegion(region); <a name="l00192"></a>00192 }; <a name="l00193"></a>00193 <a name="l00196"></a>00196 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Initialize(); <a name="l00197"></a>00197 <a name="l00200"></a>00200 <span class="keywordtype">void</span> FillBuffer (<span class="keyword">const</span> TPixel& value); <a name="l00201"></a>00201 <a name="l00207"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#d5842be45f4ee876a1fa009fd7d699ff">00207</a> <span class="keywordtype">void</span> SetPixel(<span class="keyword">const</span> <a class="code" href="classitk_1_1Index.html">IndexType</a> &index, <span class="keyword">const</span> TPixel& value) <a name="l00208"></a>00208 { <a name="l00209"></a>00209 <span class="keyword">typename</span> Superclass::OffsetValueType offset = this->ComputeOffset(index); <a name="l00210"></a>00210 (*m_Buffer)[offset] = value; <a name="l00211"></a>00211 } <a name="l00212"></a>00212 <a name="l00217"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#9df14e504b1dee62389183f215526a7e">00217</a> <span class="keyword">const</span> TPixel& GetPixel(<span class="keyword">const</span> <a class="code" href="classitk_1_1Index.html">IndexType</a> &index)<span class="keyword"> const</span> <a name="l00218"></a>00218 <span class="keyword"> </span>{ <a name="l00219"></a>00219 <span class="keyword">typename</span> Superclass::OffsetValueType offset = this->ComputeOffset(index); <a name="l00220"></a>00220 <span class="keywordflow">return</span> ( (*m_Buffer)[offset] ); <a name="l00221"></a>00221 } <a name="l00222"></a>00222 <a name="l00227"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#e6d72ac2d927884cf93ad4afcf313915">00227</a> TPixel& GetPixel(<span class="keyword">const</span> <a class="code" href="classitk_1_1Index.html">IndexType</a> &index) <a name="l00228"></a>00228 { <a name="l00229"></a>00229 <span class="keyword">typename</span> Superclass::OffsetValueType offset = this->ComputeOffset(index); <a name="l00230"></a>00230 <span class="keywordflow">return</span> ( (*m_Buffer)[offset] ); <a name="l00231"></a>00231 } <a name="l00232"></a>00232 <a name="l00237"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#22d615450dcafbfc82acd172f85b1379">00237</a> TPixel & operator[](<span class="keyword">const</span> <a class="code" href="classitk_1_1Index.html">IndexType</a> &index) <a name="l00238"></a>00238 { <span class="keywordflow">return</span> this->GetPixel(index); } <a name="l00239"></a>00239 <a name="l00244"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#afdc0c0190373de926dd4efbf010b9c3">00244</a> <span class="keyword">const</span> TPixel& operator[](<span class="keyword">const</span> <a class="code" href="classitk_1_1Index.html">IndexType</a> &index)<span class="keyword"> const</span> <a name="l00245"></a>00245 <span class="keyword"> </span>{ <span class="keywordflow">return</span> this->GetPixel(index); } <a name="l00246"></a>00246 <a name="l00249"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#92782ef4ac8a15f05ee1f7910381a0f7">00249</a> TPixel *GetBufferPointer() <a name="l00250"></a>00250 { <span class="keywordflow">return</span> m_Buffer ? m_Buffer->GetBufferPointer() : 0; } <a name="l00251"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#8247238666ab0fe0d8f4aecea3e0b2a6">00251</a> <span class="keyword">const</span> TPixel *GetBufferPointer()<span class="keyword"> const</span> <a name="l00252"></a>00252 <span class="keyword"> </span>{ <span class="keywordflow">return</span> m_Buffer ? m_Buffer->GetBufferPointer() : 0; } <a name="l00254"></a>00254 <a name="l00256"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#173a1596fdcc37977d7b1e9232293662">00256</a> <a class="code" href="classitk_1_1ImportImageContainer.html">PixelContainer</a>* GetPixelContainer() <a name="l00257"></a>00257 { <span class="keywordflow">return</span> m_Buffer.GetPointer(); } <a name="l00258"></a>00258 <a name="l00259"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#86690ab9258c7c78d1c0e5ac87ddd93c">00259</a> <span class="keyword">const</span> <a class="code" href="classitk_1_1ImportImageContainer.html">PixelContainer</a>* GetPixelContainer()<span class="keyword"> const</span> <a name="l00260"></a>00260 <span class="keyword"> </span>{ <span class="keywordflow">return</span> m_Buffer.GetPointer(); } <a name="l00261"></a>00261 <a name="l00264"></a>00264 <span class="keywordtype">void</span> SetPixelContainer( PixelContainer *container ); <a name="l00265"></a>00265 <a name="l00267"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#ceda640b7a7f87307f605af25e5e84ab">00267</a> <a class="code" href="classitk_1_1DefaultPixelAccessor.html" title="Give access to partial aspects a type.">AccessorType</a> GetPixelAccessor( <span class="keywordtype">void</span> ) <a name="l00268"></a>00268 { <span class="keywordflow">return</span> <a class="code" href="classitk_1_1DefaultPixelAccessor.html" title="Give access to partial aspects a type.">AccessorType</a>(); } <a name="l00269"></a>00269 <a name="l00271"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#d60b108ee217fc42f5146bfa6a58e53b">00271</a> <span class="keyword">const</span> <a class="code" href="classitk_1_1DefaultPixelAccessor.html" title="Give access to partial aspects a type.">AccessorType</a> GetPixelAccessor( <span class="keywordtype">void</span> )<span class="keyword"> const</span> <a name="l00272"></a>00272 <span class="keyword"> </span>{ <span class="keywordflow">return</span> <a class="code" href="classitk_1_1DefaultPixelAccessor.html" title="Give access to partial aspects a type.">AccessorType</a>(); } <a name="l00273"></a>00273 <a name="l00279"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#a5e27df30d50978ce7bd7d4b824dc23a">00279</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1SpecialCoordinatesImage.html#a5e27df30d50978ce7bd7d4b824dc23a">SetSpacing</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1Vector.html">SpacingType</a> &) {} <a name="l00280"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#d5634156fdcfe129630ed23269b6f717">00280</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1SpecialCoordinatesImage.html#d5634156fdcfe129630ed23269b6f717">SetSpacing</a>( <span class="keyword">const</span> <span class="keywordtype">double</span> [VImageDimension] ) {} <a name="l00281"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#a6176505f7750e2e1e71c8630b3c6e18">00281</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1SpecialCoordinatesImage.html#a6176505f7750e2e1e71c8630b3c6e18">SetSpacing</a>( <span class="keyword">const</span> <span class="keywordtype">float</span> [VImageDimension] ) {} <a name="l00282"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#88e578973e4b34b5348fe912d18a5535">00282</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1SpecialCoordinatesImage.html#88e578973e4b34b5348fe912d18a5535">SetOrigin</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1Point.html">PointType</a> ) {} <a name="l00283"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#0bdbe647a2d7da1ef2b4b5a395dddc3d">00283</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1SpecialCoordinatesImage.html#0bdbe647a2d7da1ef2b4b5a395dddc3d">SetOrigin</a>( <span class="keyword">const</span> <span class="keywordtype">double</span> [VImageDimension] ) {} <a name="l00284"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#7d18a4eedbffc746f047555b94dec011">00284</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1SpecialCoordinatesImage.html#7d18a4eedbffc746f047555b94dec011">SetOrigin</a>( <span class="keyword">const</span> <span class="keywordtype">float</span> [VImageDimension] ) {} <a name="l00286"></a>00286 <a name="l00287"></a>00287 <span class="comment">/* It is ILLEGAL in C++ to make a templated member function virtual! */</span> <a name="l00288"></a>00288 <span class="comment">/* Therefore, we must just let templates take care of everything. */</span> <a name="l00289"></a>00289 <span class="comment">/*</span> <a name="l00290"></a>00290 <span class="comment"> template<class TCoordRep></span> <a name="l00291"></a>00291 <span class="comment"> virtual bool TransformPhysicalPointToContinuousIndex(</span> <a name="l00292"></a>00292 <span class="comment"> const Point<TCoordRep, VImageDimension>& point,</span> <a name="l00293"></a>00293 <span class="comment"> ContinuousIndex<TCoordRep, VImageDimension>& index ) const = 0;</span> <a name="l00294"></a>00294 <span class="comment"> </span> <a name="l00295"></a>00295 <span class="comment"> template<class TCoordRep></span> <a name="l00296"></a>00296 <span class="comment"> virtual bool TransformPhysicalPointToIndex(</span> <a name="l00297"></a>00297 <span class="comment"> const Point<TCoordRep, VImageDimension>&,</span> <a name="l00298"></a>00298 <span class="comment"> IndexType & index ) const = 0;</span> <a name="l00299"></a>00299 <span class="comment"></span> <a name="l00300"></a>00300 <span class="comment"> template<class TCoordRep></span> <a name="l00301"></a>00301 <span class="comment"> virtual void TransformContinuousIndexToPhysicalPoint(</span> <a name="l00302"></a>00302 <span class="comment"> const ContinuousIndex<TCoordRep, VImageDimension>& index,</span> <a name="l00303"></a>00303 <span class="comment"> Point<TCoordRep, VImageDimension>& point ) const = 0;</span> <a name="l00304"></a>00304 <span class="comment"></span> <a name="l00305"></a>00305 <span class="comment"> template<class TCoordRep></span> <a name="l00306"></a>00306 <span class="comment"> virtual void TransformIndexToPhysicalPoint(</span> <a name="l00307"></a>00307 <span class="comment"> const IndexType & index,</span> <a name="l00308"></a>00308 <span class="comment"> Point<TCoordRep, VImageDimension>& point ) const = 0;</span> <a name="l00309"></a>00309 <span class="comment"> */</span> <a name="l00310"></a>00310 <a name="l00311"></a>00311 <span class="keyword">protected</span>: <a name="l00312"></a>00312 <a class="code" href="classitk_1_1SpecialCoordinatesImage.html" title="Templated n-dimensional nonrectilinear-coordinate image base class.">SpecialCoordinatesImage</a>(); <a name="l00313"></a>00313 <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#920ae03048a5ad715d803ca2e92b52de">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="l00314"></a><a class="code" href="classitk_1_1SpecialCoordinatesImage.html#248ee86cb92a57dc17f84f2d5ff93f40">00314</a> <span class="keyword">virtual</span> <a class="code" href="classitk_1_1SpecialCoordinatesImage.html#248ee86cb92a57dc17f84f2d5ff93f40">~SpecialCoordinatesImage</a>() {}; <a name="l00315"></a>00315 <span class="keyword">private</span>: <a name="l00316"></a>00316 <a class="code" href="classitk_1_1SpecialCoordinatesImage.html" title="Templated n-dimensional nonrectilinear-coordinate image base class.">SpecialCoordinatesImage</a>(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00317"></a>00317 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00318"></a>00318 <a name="l00320"></a>00320 PixelContainerPointer m_Buffer; <a name="l00321"></a>00321 }; <a name="l00322"></a>00322 } <span class="comment">// end namespace itk</span> <a name="l00323"></a>00323 <a name="l00324"></a>00324 <a name="l00325"></a>00325 <span class="comment">// Define instantiation macro for this template.</span> <a name="l00326"></a><a class="code" href="itkSpecialCoordinatesImage_8h.html#41e2630297290e00c0003fa390224328">00326</a> <span class="preprocessor">#define ITK_TEMPLATE_SpecialCoordinatesImage(_, EXPORT, x, y) namespace itk { \</span> <a name="l00327"></a>00327 <span class="preprocessor"> _(2(class EXPORT SpecialCoordinatesImage< ITK_TEMPLATE_2 x >)) \</span> <a name="l00328"></a>00328 <span class="preprocessor"> namespace Templates { typedef SpecialCoordinatesImage< ITK_TEMPLATE_2 x > \</span> <a name="l00329"></a>00329 <span class="preprocessor"> SpecialCoordinatesImage##y; } \</span> <a name="l00330"></a>00330 <span class="preprocessor"> }</span> <a name="l00331"></a>00331 <span class="preprocessor"></span> <a name="l00332"></a>00332 <span class="preprocessor">#if ITK_TEMPLATE_EXPLICIT</span> <a name="l00333"></a>00333 <span class="preprocessor"></span><span class="preprocessor"># include "Templates/itkSpecialCoordinatesImage+-.h"</span> <a name="l00334"></a>00334 <span class="preprocessor">#endif</span> <a name="l00335"></a>00335 <span class="preprocessor"></span> <a name="l00336"></a>00336 <span class="preprocessor">#if ITK_TEMPLATE_TXX</span> <a name="l00337"></a>00337 <span class="preprocessor"></span><span class="preprocessor"># include "itkSpecialCoordinatesImage.txx"</span> <a name="l00338"></a>00338 <span class="preprocessor">#endif</span> <a name="l00339"></a>00339 <span class="preprocessor"></span> <a name="l00340"></a>00340 <span class="preprocessor">#endif</span> <a name="l00341"></a>00341 <span class="preprocessor"></span> <a name="l00342"></a>00342 </pre></div></div> <hr><address><small> Generated at Fri May 8 00:17:52 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>