<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>VTK: dox/Hybrid/vtkImageToPolyDataFilter.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="classes.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <h1>dox/Hybrid/vtkImageToPolyDataFilter.h</h1><a href="a02830.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: Visualization Toolkit</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: vtkImageToPolyDataFilter.h,v $</span> <a name="l00005"></a>00005 <span class="comment"></span> <a name="l00006"></a>00006 <span class="comment"> Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen</span> <a name="l00007"></a>00007 <span class="comment"> All rights reserved.</span> <a name="l00008"></a>00008 <span class="comment"> See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span> <a name="l00009"></a>00009 <span class="comment"></span> <a name="l00010"></a>00010 <span class="comment"> This software is distributed WITHOUT ANY WARRANTY; without even</span> <a name="l00011"></a>00011 <span class="comment"> the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span> <a name="l00012"></a>00012 <span class="comment"> PURPOSE. See the above copyright notice for more information.</span> <a name="l00013"></a>00013 <span class="comment"></span> <a name="l00014"></a>00014 <span class="comment">=========================================================================*/</span> <a name="l00066"></a>00066 <span class="preprocessor">#ifndef __vtkImageToPolyDataFilter_h</span> <a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor">#define __vtkImageToPolyDataFilter_h</span> <a name="l00068"></a>00068 <span class="preprocessor"></span> <a name="l00069"></a>00069 <span class="preprocessor">#include "<a class="code" href="a02331.html">vtkPolyDataAlgorithm.h</a>"</span> <a name="l00070"></a>00070 <a name="l00071"></a><a class="code" href="a02830.html#b02d0234a251a63d80f930f30ac3ecfd">00071</a> <span class="preprocessor">#define VTK_STYLE_PIXELIZE 0</span> <a name="l00072"></a><a class="code" href="a02830.html#97243f4632009a7aec49dd38a1be623e">00072</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_STYLE_POLYGONALIZE 1</span> <a name="l00073"></a><a class="code" href="a02830.html#df1bf76774b8c2ed186bed1e2da710e3">00073</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_STYLE_RUN_LENGTH 2</span> <a name="l00074"></a>00074 <span class="preprocessor"></span> <a name="l00075"></a><a class="code" href="a02830.html#965283cef14ff57c82c31005b1838e2f">00075</a> <span class="preprocessor">#define VTK_COLOR_MODE_LUT 0</span> <a name="l00076"></a><a class="code" href="a02830.html#2af4d3a11c2c9fe42c29e23c58d3276d">00076</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_COLOR_MODE_LINEAR_256 1</span> <a name="l00077"></a>00077 <span class="preprocessor"></span> <a name="l00078"></a>00078 <span class="keyword">class </span><a class="code" href="a00115.html" title="appends one or more polygonal datasets together">vtkAppendPolyData</a>; <a name="l00079"></a>00079 <span class="keyword">class </span><a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>; <a name="l00080"></a>00080 <span class="keyword">class </span><a class="code" href="a00453.html" title="keep track of edges (edge is pair of integer id&#39;s)">vtkEdgeTable</a>; <a name="l00081"></a>00081 <span class="keyword">class </span><a class="code" href="a00722.html" title="dynamic, self-adjusting array of vtkIdType">vtkIdTypeArray</a>; <a name="l00082"></a>00082 <span class="keyword">class </span><a class="code" href="a00900.html" title="dynamic, self-adjusting array of int">vtkIntArray</a>; <a name="l00083"></a>00083 <span class="keyword">class </span><a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a>; <a name="l00084"></a>00084 <span class="keyword">class </span><a class="code" href="a01635.html" title="A subclass of ImageData.">vtkStructuredPoints</a>; <a name="l00085"></a>00085 <span class="keyword">class </span><a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a>; <a name="l00086"></a>00086 <span class="keyword">class </span><a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a>; <a name="l00087"></a>00087 <a name="l00088"></a><a class="code" href="a00841.html">00088</a> <span class="keyword">class </span><a class="code" href="a02170.html#9e9a05a8377523b4f8d707441f65786d">VTK_HYBRID_EXPORT</a> <a class="code" href="a00841.html" title="generate linear primitives (vtkPolyData) from an image">vtkImageToPolyDataFilter</a> : <span class="keyword">public</span> <a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a> <a name="l00089"></a>00089 { <a name="l00090"></a>00090 <span class="keyword">public</span>: <a name="l00091"></a><a class="code" href="a00841.html#8cd7e9a19dd888b7a761bcd6da9527d5">00091</a> vtkTypeRevisionMacro(<a class="code" href="a00841.html" title="generate linear primitives (vtkPolyData) from an image">vtkImageToPolyDataFilter</a>,<a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>); <a name="l00092"></a>00092 <span class="keywordtype">void</span> <a class="code" href="a01261.html#e6d59a63261b0c56f8f473984ae0e1b6">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00093"></a>00093 <a name="l00095"></a>00095 <span class="keyword">static</span> <a class="code" href="a00841.html" title="generate linear primitives (vtkPolyData) from an image">vtkImageToPolyDataFilter</a>* <a class="code" href="a01261.html#cf785ac526132296ff652c636f713b5e">New</a>(); <a name="l00096"></a>00096 <a name="l00098"></a>00098 <a name="l00104"></a>00104 vtkSetClampMacro(OutputStyle,<span class="keywordtype">int</span>,<a class="code" href="a02830.html#b02d0234a251a63d80f930f30ac3ecfd">VTK_STYLE_PIXELIZE</a>,<a class="code" href="a02830.html#df1bf76774b8c2ed186bed1e2da710e3">VTK_STYLE_RUN_LENGTH</a>); <a name="l00105"></a>00105 vtkGetMacro(OutputStyle,<span class="keywordtype">int</span>); <a name="l00106"></a><a class="code" href="a00841.html#b7700297ac014ba658ef11983694b8eb">00106</a> <span class="keywordtype">void</span> SetOutputStyleToPixelize() <a name="l00107"></a>00107 {this->SetOutputStyle(<a class="code" href="a02830.html#b02d0234a251a63d80f930f30ac3ecfd">VTK_STYLE_PIXELIZE</a>);}; <a name="l00108"></a><a class="code" href="a00841.html#bd45f8b0425d43f68a2e2a467bcbecab">00108</a> <span class="keywordtype">void</span> SetOutputStyleToPolygonalize() <a name="l00109"></a>00109 {this->SetOutputStyle(<a class="code" href="a02830.html#97243f4632009a7aec49dd38a1be623e">VTK_STYLE_POLYGONALIZE</a>);}; <a name="l00110"></a><a class="code" href="a00841.html#f8cb5a5d5fb63defd79fa74a58296bde">00110</a> <span class="keywordtype">void</span> SetOutputStyleToRunLength() <a name="l00111"></a>00111 {this->SetOutputStyle(<a class="code" href="a02830.html#df1bf76774b8c2ed186bed1e2da710e3">VTK_STYLE_RUN_LENGTH</a>);}; <a name="l00113"></a>00113 <a name="l00115"></a>00115 <a name="l00116"></a>00116 vtkSetClampMacro(ColorMode,<span class="keywordtype">int</span>,<a class="code" href="a02830.html#965283cef14ff57c82c31005b1838e2f">VTK_COLOR_MODE_LUT</a>,<a class="code" href="a02830.html#2af4d3a11c2c9fe42c29e23c58d3276d">VTK_COLOR_MODE_LINEAR_256</a>); <a name="l00117"></a>00117 vtkGetMacro(ColorMode,<span class="keywordtype">int</span>); <a name="l00118"></a><a class="code" href="a00841.html#daf761ee5fea01543cd4025a0a4e42d1">00118</a> <span class="keywordtype">void</span> SetColorModeToLUT() <a name="l00119"></a>00119 {this->SetColorMode(<a class="code" href="a02830.html#965283cef14ff57c82c31005b1838e2f">VTK_COLOR_MODE_LUT</a>);}; <a name="l00120"></a><a class="code" href="a00841.html#1047ca64e3dfae7ba7a5d6278f67da6a">00120</a> <span class="keywordtype">void</span> SetColorModeToLinear256() <a name="l00121"></a>00121 {this->SetColorMode(<a class="code" href="a02830.html#2af4d3a11c2c9fe42c29e23c58d3276d">VTK_COLOR_MODE_LINEAR_256</a>);}; <a name="l00123"></a>00123 <a name="l00125"></a>00125 <a name="l00127"></a>00127 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetLookupTable(<a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a>*); <a name="l00128"></a>00128 vtkGetObjectMacro(LookupTable,<a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a>); <a name="l00130"></a>00130 <a name="l00132"></a>00132 <a name="l00134"></a>00134 vtkSetMacro(Smoothing, <span class="keywordtype">int</span>); <a name="l00135"></a>00135 vtkGetMacro(Smoothing, <span class="keywordtype">int</span>); <a name="l00136"></a>00136 vtkBooleanMacro(Smoothing, <span class="keywordtype">int</span>); <a name="l00138"></a>00138 <a name="l00140"></a>00140 <a name="l00142"></a>00142 vtkSetClampMacro(NumberOfSmoothingIterations,<span class="keywordtype">int</span>,0,<a class="code" href="a02149.html#804f55a35836c1770f9176f3a01c4d5e">VTK_LARGE_INTEGER</a>); <a name="l00143"></a>00143 vtkGetMacro(NumberOfSmoothingIterations,<span class="keywordtype">int</span>); <a name="l00145"></a>00145 <a name="l00147"></a>00147 <a name="l00149"></a>00149 vtkSetMacro(Decimation, <span class="keywordtype">int</span>); <a name="l00150"></a>00150 vtkGetMacro(Decimation, <span class="keywordtype">int</span>); <a name="l00151"></a>00151 vtkBooleanMacro(Decimation, <span class="keywordtype">int</span>); <a name="l00153"></a>00153 <a name="l00155"></a>00155 <a name="l00159"></a>00159 vtkSetClampMacro(DecimationError,<span class="keywordtype">double</span>,0.0,<a class="code" href="a02149.html#a933eb1ff8ef089de59cce7b41e21261">VTK_DOUBLE_MAX</a>); <a name="l00160"></a>00160 vtkGetMacro(DecimationError,<span class="keywordtype">double</span>); <a name="l00162"></a>00162 <a name="l00164"></a>00164 <a name="l00167"></a>00167 vtkSetClampMacro(Error,<span class="keywordtype">int</span>,0,<a class="code" href="a02149.html#804f55a35836c1770f9176f3a01c4d5e">VTK_LARGE_INTEGER</a>); <a name="l00168"></a>00168 vtkGetMacro(Error,<span class="keywordtype">int</span>); <a name="l00170"></a>00170 <a name="l00172"></a>00172 <a name="l00177"></a>00177 vtkSetClampMacro(SubImageSize,<span class="keywordtype">int</span>,10,<a class="code" href="a02149.html#804f55a35836c1770f9176f3a01c4d5e">VTK_LARGE_INTEGER</a>); <a name="l00178"></a>00178 vtkGetMacro(SubImageSize,<span class="keywordtype">int</span>); <a name="l00180"></a>00180 <a name="l00181"></a>00181 <span class="keyword">protected</span>: <a name="l00182"></a>00182 <a class="code" href="a00841.html" title="generate linear primitives (vtkPolyData) from an image">vtkImageToPolyDataFilter</a>(); <a name="l00183"></a>00183 ~<a class="code" href="a00841.html" title="generate linear primitives (vtkPolyData) from an image">vtkImageToPolyDataFilter</a>(); <a name="l00184"></a>00184 <a name="l00185"></a>00185 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01261.html#6b5a43ab1f9bbcb368c7dc83e4afe068">RequestData</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *); <a name="l00186"></a>00186 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01261.html#a9084b97ab9c0c8c76e490fa9776a832">FillInputPortInformation</a>(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21023da246d4a744e861548382bb79fad81">info</a>); <a name="l00187"></a>00187 <a name="l00188"></a><a class="code" href="a00841.html#dda334fd339a6057ee926f5bb050e480">00188</a> <span class="keywordtype">int</span> OutputStyle; <a name="l00189"></a><a class="code" href="a00841.html#b010a1503688cb0b1dcf4e164aff61b5">00189</a> <span class="keywordtype">int</span> ColorMode; <a name="l00190"></a><a class="code" href="a00841.html#a25dc5d0d277bdc75fd16206c28eaa66">00190</a> <span class="keywordtype">int</span> Smoothing; <a name="l00191"></a><a class="code" href="a00841.html#dfe71d3c32450ea52dfb1a68f6847467">00191</a> <span class="keywordtype">int</span> NumberOfSmoothingIterations; <a name="l00192"></a><a class="code" href="a00841.html#8121afd41954824f9d27ba6bcf8328f8">00192</a> <span class="keywordtype">int</span> Decimation; <a name="l00193"></a><a class="code" href="a00841.html#a56fd58e336845a8482f08741b2cafa7">00193</a> <span class="keywordtype">double</span> DecimationError; <a name="l00194"></a><a class="code" href="a00841.html#7f2a0955170c6184ec1ba3c5a4f31694">00194</a> <span class="keywordtype">int</span> Error; <a name="l00195"></a><a class="code" href="a00841.html#b44dc9ba7d6dc8bb4cdc3446a9f9f255">00195</a> <span class="keywordtype">int</span> SubImageSize; <a name="l00196"></a><a class="code" href="a00841.html#2ac0c93847216d709f68c6560a437286">00196</a> <a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a> *LookupTable; <a name="l00197"></a>00197 <a name="l00198"></a>00198 <span class="keyword">virtual</span> <span class="keywordtype">void</span> PixelizeImage(<a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *pixels, <span class="keywordtype">int</span> dims[3], <a name="l00199"></a>00199 <span class="keywordtype">double</span> origin[3], <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210b60285711fa8d2a46166a29951678aa7">spacing</a>[3], <a name="l00200"></a>00200 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output); <a name="l00201"></a>00201 <span class="keyword">virtual</span> <span class="keywordtype">void</span> PolygonalizeImage(<a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *pixels, <span class="keywordtype">int</span> dims[3], <a name="l00202"></a>00202 <span class="keywordtype">double</span> origin[3], <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210b60285711fa8d2a46166a29951678aa7">spacing</a>[3], <a name="l00203"></a>00203 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output); <a name="l00204"></a>00204 <span class="keyword">virtual</span> <span class="keywordtype">void</span> RunLengthImage(<a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *pixels, <span class="keywordtype">int</span> dims[3], <a name="l00205"></a>00205 <span class="keywordtype">double</span> origin[3], <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210b60285711fa8d2a46166a29951678aa7">spacing</a>[3], <a name="l00206"></a>00206 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output); <a name="l00207"></a>00207 <span class="keyword">private</span>: <a name="l00208"></a>00208 <a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *Table; <span class="comment">// color table used to quantize points</span> <a name="l00209"></a>00209 <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a> TableMTime; <a name="l00210"></a>00210 <span class="keywordtype">int</span> *Visited; <span class="comment">// traverse & mark connected regions</span> <a name="l00211"></a>00211 <a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *PolyColors; <span class="comment">// the colors of each region -> polygon</span> <a name="l00212"></a>00212 <a class="code" href="a00453.html" title="keep track of edges (edge is pair of integer id&#39;s)">vtkEdgeTable</a> *EdgeTable; <span class="comment">// keep track of intersection points</span> <a name="l00213"></a>00213 <a class="code" href="a00453.html" title="keep track of edges (edge is pair of integer id&#39;s)">vtkEdgeTable</a> *EdgeUseTable; <span class="comment">// keep track of polygons use of edges</span> <a name="l00214"></a>00214 <a class="code" href="a00900.html" title="dynamic, self-adjusting array of int">vtkIntArray</a> *EdgeUses; <span class="comment">//the two polygons that use an edge</span> <a name="l00215"></a>00215 <span class="comment">//and point id associated with edge (if any)</span> <a name="l00216"></a>00216 <a name="l00217"></a>00217 <a class="code" href="a00115.html" title="appends one or more polygonal datasets together">vtkAppendPolyData</a> *Append; <a name="l00218"></a>00218 <a name="l00219"></a>00219 <span class="keywordtype">void</span> BuildTable(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *inPixels); <a name="l00220"></a>00220 <a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *QuantizeImage(<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *inScalars, <span class="keywordtype">int</span> numComp, <a name="l00221"></a>00221 <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2108e7f81709ed57920a45c02a954726847">type</a>, <span class="keywordtype">int</span> dims[3], <span class="keywordtype">int</span> ext[4]); <a name="l00222"></a>00222 <span class="keywordtype">int</span> ProcessImage(<a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *pixels, <span class="keywordtype">int</span> dims[2]); <a name="l00223"></a>00223 <span class="keywordtype">int</span> BuildEdges(<a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *pixels, <span class="keywordtype">int</span> dims[3], <span class="keywordtype">double</span> origin[3], <a name="l00224"></a>00224 <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210b60285711fa8d2a46166a29951678aa7">spacing</a>[3], <a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *pointDescr, <a name="l00225"></a>00225 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *<a class="code" href="a02995.html#f2e7c5aa065ddd4bd73c80382b944f78">edges</a>); <a name="l00226"></a>00226 <span class="keywordtype">void</span> BuildPolygons(<a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *pointDescr, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *<a class="code" href="a02995.html#f2e7c5aa065ddd4bd73c80382b944f78">edges</a>, <a name="l00227"></a>00227 <span class="keywordtype">int</span> numPolys, <a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *polyColors); <a name="l00228"></a>00228 <span class="keywordtype">void</span> SmoothEdges(<a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *pointDescr, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *<a class="code" href="a02995.html#f2e7c5aa065ddd4bd73c80382b944f78">edges</a>); <a name="l00229"></a>00229 <span class="keywordtype">void</span> DecimateEdges(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *<a class="code" href="a02995.html#f2e7c5aa065ddd4bd73c80382b944f78">edges</a>, <a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *pointDescr, <a name="l00230"></a>00230 <span class="keywordtype">double</span> tol2); <a name="l00231"></a>00231 <span class="keywordtype">void</span> GeneratePolygons(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *<a class="code" href="a02995.html#f2e7c5aa065ddd4bd73c80382b944f78">edges</a>, <span class="keywordtype">int</span> numPolys, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output, <a name="l00232"></a>00232 <a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *polyColors, <a name="l00233"></a>00233 <a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *pointDescr); <a name="l00234"></a>00234 <a name="l00235"></a>00235 <span class="keywordtype">int</span> GetNeighbors(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *ptr, <span class="keywordtype">int</span> &i, <span class="keywordtype">int</span> &j, <span class="keywordtype">int</span> dims[3], <a name="l00236"></a>00236 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *neighbors[4], <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210608db9ad4c08b9eb2e8e8353b79225da">mode</a>); <a name="l00237"></a>00237 <a name="l00238"></a>00238 <span class="keywordtype">void</span> GetIJ(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">int</span> &i, <span class="keywordtype">int</span> &j, <span class="keywordtype">int</span> dims[3]); <a name="l00239"></a>00239 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *GetColor(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *rgb); <a name="l00240"></a>00240 <span class="keywordtype">int</span> IsSameColor(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *p1, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *p2); <a name="l00241"></a>00241 <a name="l00242"></a>00242 <span class="keyword">private</span>: <a name="l00243"></a>00243 <a class="code" href="a00841.html" title="generate linear primitives (vtkPolyData) from an image">vtkImageToPolyDataFilter</a>(<span class="keyword">const</span> <a class="code" href="a00841.html" title="generate linear primitives (vtkPolyData) from an image">vtkImageToPolyDataFilter</a>&); <span class="comment">// Not implemented.</span> <a name="l00244"></a>00244 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00841.html" title="generate linear primitives (vtkPolyData) from an image">vtkImageToPolyDataFilter</a>&); <span class="comment">// Not implemented.</span> <a name="l00245"></a>00245 }; <a name="l00246"></a>00246 <a name="l00247"></a>00247 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:32 2009 for VTK by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>