<!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: itkImageSource.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>itkImageSource.h</h1><a href="itkImageSource_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: itkImageSource.h,v $</span> <a name="l00005"></a>00005 <span class="comment"> Language: C++</span> <a name="l00006"></a>00006 <span class="comment"> Date: $Date: 2009-02-05 19:04:57 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.56 $</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 __itkImageSource_h</span> <a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define __itkImageSource_h</span> <a name="l00022"></a>00022 <span class="preprocessor"></span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkProcessObject_8h.html">itkProcessObject.h</a>"</span> <a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="itkImage_8h.html">itkImage.h</a>"</span> <a name="l00025"></a>00025 <a name="l00026"></a>00026 <span class="keyword">namespace </span>itk <a name="l00027"></a>00027 { <a name="l00028"></a>00028 <a name="l00051"></a>00051 <span class="keyword">template</span> <<span class="keyword">class</span> TOutputImage> <a name="l00052"></a><a class="code" href="classitk_1_1ImageSource.html">00052</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1ImageSource.html" title="Base class for all process objects that output image data.">ImageSource</a> : <span class="keyword">public</span> <a class="code" href="classitk_1_1ProcessObject.html" title="ProcessObject is the base class for all process objects (source, filters, mappers)...">ProcessObject</a> <a name="l00053"></a>00053 { <a name="l00054"></a>00054 <span class="keyword">public</span>: <a name="l00056"></a><a class="code" href="classitk_1_1ImageSource.html#b820af05ec441a32b11b2bf9a14d1d0a">00056</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageSource.html" title="Base class for all process objects that output image data.">ImageSource</a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>; <a name="l00057"></a><a class="code" href="classitk_1_1ImageSource.html#ef562937473713fb79171fb1c6a47961">00057</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ProcessObject.html" title="ProcessObject is the base class for all process objects (source, filters, mappers)...">ProcessObject</a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Superclass</a>; <a name="l00058"></a><a class="code" href="classitk_1_1ImageSource.html#f2b53512f367c34852dc6ed391ae8842">00058</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="l00059"></a><a class="code" href="classitk_1_1ImageSource.html#680361939c33bd5b2a7251c4a921fe52">00059</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="l00060"></a>00060 <a name="l00062"></a><a class="code" href="classitk_1_1ImageSource.html#045804dbc054e3684426ac434c4eb03c">00062</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">DataObject::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">DataObjectPointer</a>; <a name="l00063"></a>00063 <a name="l00065"></a><a class="code" href="classitk_1_1ImageSource.html#111ab6c01f9c32de33c3a4b8d38525fc">00065</a> <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1ImageSource.html" title="Base class for all process objects that output image data.">ImageSource</a>,<a class="code" href="classitk_1_1ProcessObject.html" title="ProcessObject is the base class for all process objects (source, filters, mappers)...">ProcessObject</a>); <a name="l00066"></a>00066 <a name="l00068"></a>00068 <span class="keyword">typedef</span> TOutputImage <a class="code" href="namespaceHardConnectedComponentImageFilter.html#386ea018cab3835dcdff2603f4d2280e">OutputImageType</a>; <a name="l00069"></a><a class="code" href="classitk_1_1ImageSource.html#4303330156b352813def09b45705818d">00069</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">OutputImageType::Pointer</a> OutputImagePointer; <a name="l00070"></a><a class="code" href="classitk_1_1ImageSource.html#894581bb3914aa570488a0e6d587c2b0">00070</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">OutputImageType::RegionType</a> OutputImageRegionType; <a name="l00071"></a><a class="code" href="classitk_1_1ImageSource.html#041855157e149b76d5c72f727b62f9dc">00071</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> OutputImageType::PixelType OutputImagePixelType; <a name="l00072"></a>00072 <a name="l00113"></a>00113 <a class="code" href="namespaceHardConnectedComponentImageFilter.html#386ea018cab3835dcdff2603f4d2280e">OutputImageType</a> * GetOutput(<span class="keywordtype">void</span>); <a name="l00114"></a>00114 <a class="code" href="namespaceHardConnectedComponentImageFilter.html#386ea018cab3835dcdff2603f4d2280e">OutputImageType</a> * GetOutput(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> idx); <a name="l00116"></a>00116 <a name="l00152"></a>00152 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GraftOutput(<a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">DataObject</a> *output); <a name="l00153"></a>00153 <a name="l00160"></a>00160 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GraftNthOutput(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> idx, <a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">DataObject</a> *output); <a name="l00161"></a>00161 <a name="l00175"></a>00175 <span class="keyword">virtual</span> <a class="code" href="classitk_1_1SmartPointer.html">DataObjectPointer</a> MakeOutput(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> idx); <a name="l00176"></a>00176 <a name="l00177"></a>00177 <span class="keyword">protected</span>: <a name="l00178"></a>00178 <a class="code" href="classitk_1_1ImageSource.html" title="Base class for all process objects that output image data.">ImageSource</a>(); <a name="l00179"></a><a class="code" href="classitk_1_1ImageSource.html#8092c4f5c59eb5a99633c3f042c0f3ca">00179</a> <span class="keyword">virtual</span> <a class="code" href="classitk_1_1ImageSource.html#8092c4f5c59eb5a99633c3f042c0f3ca">~ImageSource</a>() {} <a name="l00180"></a>00180 <a name="l00196"></a>00196 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#f75a5945cdd8315676941024a0b8c1e9">GenerateData</a>(); <a name="l00197"></a>00197 <a name="l00220"></a>00220 <span class="keyword">virtual</span> <a name="l00221"></a>00221 <span class="keywordtype">void</span> ThreadedGenerateData(<span class="keyword">const</span> OutputImageRegionType& outputRegionForThread, <a name="l00222"></a>00222 <span class="keywordtype">int</span> threadId ) <a class="code" href="itkMacro_8h.html#c7f50c43245e6a90a49b8079cd8d2a35">ITK_NO_RETURN</a>; <a name="l00223"></a>00223 <a name="l00224"></a>00224 <a name="l00230"></a>00230 <span class="keyword">virtual</span> <span class="keywordtype">void</span> AllocateOutputs(); <a name="l00231"></a>00231 <a name="l00242"></a><a class="code" href="classitk_1_1ImageSource.html#3feaf3f80b0339277b2f3502140031f8">00242</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1ImageSource.html#3feaf3f80b0339277b2f3502140031f8">BeforeThreadedGenerateData</a>() {}; <a name="l00243"></a>00243 <a name="l00254"></a><a class="code" href="classitk_1_1ImageSource.html#c1967c5c2e3cbdbf5ae6d1f6c916790d">00254</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1ImageSource.html#c1967c5c2e3cbdbf5ae6d1f6c916790d">AfterThreadedGenerateData</a>() {}; <a name="l00255"></a>00255 <a name="l00261"></a>00261 <span class="keyword">virtual</span> <a name="l00262"></a>00262 <span class="keywordtype">int</span> SplitRequestedRegion(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> num, OutputImageRegionType& splitRegion); <a name="l00263"></a>00263 <a name="l00267"></a>00267 <span class="keyword">static</span> <a class="code" href="itkMultiThreader_8h.html#684fadc751bc200a9b267bfc38d8ae5c">ITK_THREAD_RETURN_TYPE</a> ThreaderCallback( <span class="keywordtype">void</span> *arg ); <a name="l00268"></a>00268 <a name="l00270"></a><a class="code" href="structitk_1_1ImageSource_1_1ThreadStruct.html">00270</a> <span class="keyword">struct </span><a class="code" href="structitk_1_1ImageSource_1_1ThreadStruct.html">ThreadStruct</a> <a name="l00271"></a>00271 { <a name="l00272"></a><a class="code" href="structitk_1_1ImageSource_1_1ThreadStruct.html#b388ee94fd674fdfe1c224b05d4ead41">00272</a> <a class="code" href="classitk_1_1SmartPointer.html">Pointer</a> Filter; <a name="l00273"></a>00273 }; <a name="l00274"></a>00274 <a name="l00275"></a>00275 <span class="keyword">private</span>: <a name="l00276"></a>00276 <a class="code" href="classitk_1_1ImageSource.html" title="Base class for all process objects that output image data.">ImageSource</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1ImageSource.html" title="Base class for all process objects that output image data.">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00277"></a>00277 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classitk_1_1ImageSource.html" title="Base class for all process objects that output image data.">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00278"></a>00278 <a name="l00279"></a>00279 }; <a name="l00280"></a>00280 <a name="l00281"></a>00281 } <span class="comment">// end namespace itk</span> <a name="l00282"></a>00282 <a name="l00283"></a>00283 <span class="comment">// Define instantiation macro for this template.</span> <a name="l00284"></a><a class="code" href="itkImageSource_8h.html#58c34eea57fac7f8def9975df339252d">00284</a> <span class="preprocessor">#define ITK_TEMPLATE_ImageSource(_, EXPORT, x, y) namespace itk { \</span> <a name="l00285"></a>00285 <span class="preprocessor"> _(1(class EXPORT ImageSource< ITK_TEMPLATE_1 x >)) \</span> <a name="l00286"></a>00286 <span class="preprocessor"> namespace Templates { typedef ImageSource< ITK_TEMPLATE_1 x > ImageSource##y; } \</span> <a name="l00287"></a>00287 <span class="preprocessor"> }</span> <a name="l00288"></a>00288 <span class="preprocessor"></span> <a name="l00289"></a>00289 <span class="preprocessor">#if ITK_TEMPLATE_EXPLICIT</span> <a name="l00290"></a>00290 <span class="preprocessor"></span><span class="preprocessor"># include "Templates/itkImageSource+-.h"</span> <a name="l00291"></a>00291 <span class="preprocessor">#endif</span> <a name="l00292"></a>00292 <span class="preprocessor"></span> <a name="l00293"></a>00293 <span class="preprocessor">#if ITK_TEMPLATE_TXX</span> <a name="l00294"></a>00294 <span class="preprocessor"></span><span class="preprocessor"># include "itkImageSource.txx"</span> <a name="l00295"></a>00295 <span class="preprocessor">#endif</span> <a name="l00296"></a>00296 <span class="preprocessor"></span> <a name="l00297"></a>00297 <span class="preprocessor">#endif</span> <a name="l00298"></a>00298 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Thu May 7 23:12: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>