<!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/Graphics/vtkSynchronizedTemplates3D.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/Graphics/vtkSynchronizedTemplates3D.h</h1><a href="a02680.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: vtkSynchronizedTemplates3D.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="l00033"></a>00033 <span class="preprocessor">#ifndef __vtkSynchronizedTemplates3D_h</span> <a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define __vtkSynchronizedTemplates3D_h</span> <a name="l00035"></a>00035 <span class="preprocessor"></span> <a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="a02331.html">vtkPolyDataAlgorithm.h</a>"</span> <a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="a02002.html">vtkContourValues.h</a>"</span> <span class="comment">// Passes calls through</span> <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="keyword">class </span><a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>; <a name="l00040"></a>00040 <a name="l00041"></a><a class="code" href="a01654.html">00041</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a01654.html" title="generate isosurface from structured points">vtkSynchronizedTemplates3D</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="l00042"></a>00042 { <a name="l00043"></a>00043 <span class="keyword">public</span>: <a name="l00044"></a>00044 <span class="keyword">static</span> <a class="code" href="a01654.html" title="generate isosurface from structured points">vtkSynchronizedTemplates3D</a> *<a class="code" href="a01261.html#cf785ac526132296ff652c636f713b5e">New</a>(); <a name="l00045"></a>00045 <a name="l00046"></a><a class="code" href="a01654.html#7b48ef0604a14d10860277174b78f907">00046</a> vtkTypeRevisionMacro(<a class="code" href="a01654.html" title="generate isosurface from structured points">vtkSynchronizedTemplates3D</a>,<a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>); <a name="l00047"></a>00047 <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="l00048"></a>00048 <a name="l00050"></a>00050 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">int</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>(); <a name="l00051"></a>00051 <a name="l00053"></a>00053 <a name="l00057"></a>00057 vtkSetMacro(ComputeNormals,<span class="keywordtype">int</span>); <a name="l00058"></a>00058 vtkGetMacro(ComputeNormals,<span class="keywordtype">int</span>); <a name="l00059"></a>00059 vtkBooleanMacro(ComputeNormals,<span class="keywordtype">int</span>); <a name="l00061"></a>00061 <a name="l00063"></a>00063 <a name="l00069"></a>00069 vtkSetMacro(ComputeGradients,<span class="keywordtype">int</span>); <a name="l00070"></a>00070 vtkGetMacro(ComputeGradients,<span class="keywordtype">int</span>); <a name="l00071"></a>00071 vtkBooleanMacro(ComputeGradients,<span class="keywordtype">int</span>); <a name="l00073"></a>00073 <a name="l00075"></a>00075 <a name="l00076"></a>00076 vtkSetMacro(ComputeScalars,<span class="keywordtype">int</span>); <a name="l00077"></a>00077 vtkGetMacro(ComputeScalars,<span class="keywordtype">int</span>); <a name="l00078"></a>00078 vtkBooleanMacro(ComputeScalars,<span class="keywordtype">int</span>); <a name="l00080"></a>00080 <a name="l00083"></a><a class="code" href="a01654.html#0e6e63ffb48730291b02b7252a7b2df6">00083</a> <span class="keywordtype">void</span> SetValue(<span class="keywordtype">int</span> i, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>) {this->ContourValues->SetValue(i,value);} <a name="l00084"></a>00084 <a name="l00086"></a><a class="code" href="a01654.html#c8a6462ce4d0ac9516cff485fd42ee33">00086</a> <span class="keywordtype">double</span> GetValue(<span class="keywordtype">int</span> i) {<span class="keywordflow">return</span> this->ContourValues->GetValue(i);} <a name="l00087"></a>00087 <a name="l00090"></a><a class="code" href="a01654.html#d3380c6b93dd38afff472f02f94d3fb4">00090</a> <span class="keywordtype">double</span> *GetValues() {<span class="keywordflow">return</span> this->ContourValues->GetValues();} <a name="l00091"></a>00091 <a name="l00093"></a>00093 <a name="l00096"></a><a class="code" href="a01654.html#93bbf791f39ba6c17deb39deec35749d">00096</a> <span class="keywordtype">void</span> GetValues(<span class="keywordtype">double</span> *contourValues) { <a name="l00097"></a>00097 this->ContourValues->GetValues(contourValues);} <a name="l00099"></a>00099 <a name="l00101"></a>00101 <a name="l00104"></a><a class="code" href="a01654.html#a53cb06744d7aa52b6f5db0d9a5209d7">00104</a> <span class="keywordtype">void</span> SetNumberOfContours(<span class="keywordtype">int</span> number) { <a name="l00105"></a>00105 this->ContourValues->SetNumberOfContours(number);} <a name="l00107"></a>00107 <a name="l00109"></a>00109 <a name="l00110"></a><a class="code" href="a01654.html#0d0de76405cbd7dd0426c8a4ec7ea3ed">00110</a> <span class="keywordtype">int</span> GetNumberOfContours() { <a name="l00111"></a>00111 <span class="keywordflow">return</span> this->ContourValues->GetNumberOfContours();} <a name="l00113"></a>00113 <a name="l00115"></a>00115 <a name="l00117"></a><a class="code" href="a01654.html#46ccb080598f8eabe0aaba2528072c22">00117</a> <span class="keywordtype">void</span> GenerateValues(<span class="keywordtype">int</span> numContours, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21076786d084c43d32f242990f932679539">range</a>[2]) { <a name="l00118"></a>00118 this->ContourValues->GenerateValues(numContours, range);} <a name="l00120"></a>00120 <a name="l00122"></a>00122 <a name="l00124"></a><a class="code" href="a01654.html#b4e9ffe22bfdd82a639b94e7b0de7005">00124</a> <span class="keywordtype">void</span> GenerateValues(<span class="keywordtype">int</span> numContours, <span class="keywordtype">double</span> rangeStart, <span class="keywordtype">double</span> rangeEnd) <a name="l00125"></a>00125 {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);} <a name="l00127"></a>00127 <a name="l00129"></a>00129 <a name="l00130"></a><a class="code" href="a01654.html#bcb941bf8ac8a6ca978aebcbb216ad5d">00130</a> <span class="keywordtype">int</span> *GetExecuteExtent() {<span class="keywordflow">return</span> this->ExecuteExtent;} <a name="l00131"></a>00131 <span class="keywordtype">void</span> ThreadedExecute(<a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *inInfo, <a name="l00132"></a>00132 <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *outInfo, <a name="l00133"></a>00133 <span class="keywordtype">int</span> *exExt, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *inScalars); <a name="l00135"></a>00135 <a name="l00137"></a>00137 <a name="l00140"></a>00140 <span class="keywordtype">void</span> SetInputMemoryLimit(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> limit); <a name="l00141"></a>00141 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> GetInputMemoryLimit(); <a name="l00143"></a>00143 <a name="l00145"></a>00145 <a name="l00147"></a>00147 vtkSetMacro(ArrayComponent, <span class="keywordtype">int</span>); <a name="l00148"></a>00148 vtkGetMacro(ArrayComponent, <span class="keywordtype">int</span>); <a name="l00150"></a>00150 <a name="l00151"></a>00151 <span class="keyword">protected</span>: <a name="l00152"></a>00152 <a class="code" href="a01654.html" title="generate isosurface from structured points">vtkSynchronizedTemplates3D</a>(); <a name="l00153"></a>00153 ~<a class="code" href="a01654.html" title="generate isosurface from structured points">vtkSynchronizedTemplates3D</a>(); <a name="l00154"></a>00154 <a name="l00155"></a><a class="code" href="a01654.html#a48d463395194becd378d2d80ef0b4cd">00155</a> <span class="keywordtype">int</span> ComputeNormals; <a name="l00156"></a><a class="code" href="a01654.html#853123ecbe669b169a411ec4c423ada1">00156</a> <span class="keywordtype">int</span> ComputeGradients; <a name="l00157"></a><a class="code" href="a01654.html#659797dc4f05e4eaf099ff7b662d5280">00157</a> <span class="keywordtype">int</span> ComputeScalars; <a name="l00158"></a><a class="code" href="a01654.html#5348329890d12955302b56af7aef5953">00158</a> <a class="code" href="a00330.html" title="helper object to manage setting and generating contour values">vtkContourValues</a> *ContourValues; <a name="l00159"></a>00159 <a name="l00160"></a>00160 <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="l00161"></a>00161 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01261.html#8ea20f6cc2dd5be4934c9e9b3f1d8eac">RequestUpdateExtent</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="l00162"></a>00162 <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="l00163"></a>00163 <a name="l00164"></a><a class="code" href="a01654.html#81a9dccdffb71e7d0ae437a69cbe4f83">00164</a> <span class="keywordtype">int</span> ExecuteExtent[6]; <a name="l00165"></a>00165 <a name="l00166"></a><a class="code" href="a01654.html#979b6af07f99722ee86d283aaf9b42c8">00166</a> <span class="keywordtype">int</span> ArrayComponent; <a name="l00167"></a>00167 <a name="l00168"></a>00168 <span class="keyword">private</span>: <a name="l00169"></a>00169 <a class="code" href="a01654.html" title="generate isosurface from structured points">vtkSynchronizedTemplates3D</a>(<span class="keyword">const</span> <a class="code" href="a01654.html" title="generate isosurface from structured points">vtkSynchronizedTemplates3D</a>&); <span class="comment">// Not implemented.</span> <a name="l00170"></a>00170 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01654.html" title="generate isosurface from structured points">vtkSynchronizedTemplates3D</a>&); <span class="comment">// Not implemented.</span> <a name="l00171"></a>00171 }; <a name="l00172"></a>00172 <a name="l00173"></a>00173 <a name="l00174"></a>00174 <span class="comment">// template table.</span> <a name="l00175"></a>00175 <span class="comment">//BTX</span> <a name="l00176"></a>00176 <a name="l00177"></a>00177 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a02680.html#2c321954ec71305a47c7ef444d212b7c">VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_1</a>[]; <a name="l00178"></a>00178 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a02680.html#65235042c2a7c6b66f67abb0aad29ada">VTK_SYNCHRONIZED_TEMPLATES_3D_TABLE_2</a>[]; <a name="l00179"></a>00179 <a name="l00180"></a>00180 <span class="comment">//ETX</span> <a name="l00181"></a>00181 <a name="l00182"></a>00182 <span class="preprocessor">#endif</span> <a name="l00183"></a>00183 <span class="preprocessor"></span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:30 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>