<!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/Filtering/vtkAlgorithm.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/Filtering/vtkAlgorithm.h</h1><a href="a02189.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: vtkAlgorithm.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="l00037"></a>00037 <span class="preprocessor">#ifndef __vtkAlgorithm_h</span> <a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#define __vtkAlgorithm_h</span> <a name="l00039"></a>00039 <span class="preprocessor"></span> <a name="l00040"></a>00040 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span> <a name="l00041"></a>00041 <a name="l00042"></a>00042 <span class="keyword">class </span><a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>; <a name="l00043"></a>00043 <span class="keyword">class </span>vtkAlgorithmInternals; <a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>; <a name="l00045"></a>00045 <span class="keyword">class </span><a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>; <a name="l00046"></a>00046 <span class="keyword">class </span><a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>; <a name="l00047"></a>00047 <span class="keyword">class </span><a class="code" href="a00472.html" title="Superclass for all pipeline executives in VTK.">vtkExecutive</a>; <a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>; <a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="a00880.html" title="Key for vtkInformation vectors.">vtkInformationInformationVectorKey</a>; <a name="l00050"></a>00050 <span class="keyword">class </span><a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>; <a name="l00051"></a>00051 <span class="keyword">class </span><a class="code" href="a00892.html" title="Key for string values in vtkInformation.">vtkInformationStringKey</a>; <a name="l00052"></a>00052 <span class="keyword">class </span><a class="code" href="a00893.html" title="Key for String vector values.">vtkInformationStringVectorKey</a>; <a name="l00053"></a>00053 <span class="keyword">class </span><a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>; <a name="l00054"></a>00054 <a name="l00055"></a><a class="code" href="a00101.html">00055</a> <span class="keyword">class </span><a class="code" href="a02170.html#95ced7977a6b6b1bf9f38bf04e3835b6">VTK_FILTERING_EXPORT</a> <a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a> <a name="l00056"></a>00056 { <a name="l00057"></a>00057 <span class="keyword">public</span>: <a name="l00058"></a>00058 <span class="keyword">static</span> <a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>(); <a name="l00059"></a><a class="code" href="a00101.html#29826bf1c253bc38fd2878ea6e4568c9">00059</a> vtkTypeRevisionMacro(<a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>,<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>); <a name="l00060"></a>00060 <span class="keywordtype">void</span> <a class="code" href="a01084.html#bf3dbb4154289b56a12483eee3866263">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00061"></a>00061 <a name="l00064"></a>00064 <span class="keywordtype">int</span> HasExecutive(); <a name="l00065"></a>00065 <a name="l00068"></a>00068 <a class="code" href="a00472.html" title="Superclass for all pipeline executives in VTK.">vtkExecutive</a>* GetExecutive(); <a name="l00069"></a>00069 <a name="l00073"></a>00073 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetExecutive(<a class="code" href="a00472.html" title="Superclass for all pipeline executives in VTK.">vtkExecutive</a>* executive); <a name="l00074"></a>00074 <a name="l00076"></a>00076 <a name="l00090"></a>00090 <span class="keyword">virtual</span> <span class="keywordtype">int</span> ProcessRequest(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>* request, <a name="l00091"></a>00091 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>** inInfo, <a name="l00092"></a>00092 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>* outInfo); <a name="l00094"></a>00094 <a name="l00096"></a>00096 <a name="l00099"></a>00099 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a name="l00100"></a>00100 ComputePipelineMTime(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>* request, <a name="l00101"></a>00101 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>** inInfoVec, <a name="l00102"></a>00102 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>* outInfoVec, <a name="l00103"></a>00103 <span class="keywordtype">int</span> requestFromOutputPort, <a name="l00104"></a>00104 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>* mtime); <a name="l00106"></a>00106 <a name="l00112"></a>00112 <span class="keyword">virtual</span> <span class="keywordtype">int</span> ModifyRequest(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>* request, <span class="keywordtype">int</span> when); <a name="l00113"></a>00113 <a name="l00118"></a>00118 <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>* GetInputPortInformation(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>); <a name="l00119"></a>00119 <a name="l00124"></a>00124 <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>* GetOutputPortInformation(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>); <a name="l00125"></a>00125 <a name="l00127"></a>00127 <a name="l00128"></a>00128 vtkGetObjectMacro(Information, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>); <a name="l00129"></a>00129 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInformation(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>*); <a name="l00131"></a>00131 <a name="l00133"></a>00133 <span class="keywordtype">int</span> GetNumberOfInputPorts(); <a name="l00134"></a>00134 <a name="l00136"></a>00136 <span class="keywordtype">int</span> GetNumberOfOutputPorts(); <a name="l00137"></a>00137 <a name="l00139"></a>00139 <a name="l00140"></a>00140 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01085.html#830c927684d2b23593ec447f1c274f57">Register</a>(<a class="code" href="a01085.html" title="abstract base class for most VTK objects">vtkObjectBase</a>* o); <a name="l00141"></a>00141 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01085.html#2f77b7beccf178c43570367c50c41567">UnRegister</a>(<a class="code" href="a01085.html" title="abstract base class for most VTK objects">vtkObjectBase</a>* o); <a name="l00143"></a>00143 <a name="l00145"></a>00145 <a name="l00147"></a>00147 vtkSetMacro(AbortExecute,<span class="keywordtype">int</span>); <a name="l00148"></a>00148 vtkGetMacro(AbortExecute,<span class="keywordtype">int</span>); <a name="l00149"></a>00149 vtkBooleanMacro(AbortExecute,<span class="keywordtype">int</span>); <a name="l00151"></a>00151 <a name="l00153"></a>00153 <a name="l00154"></a>00154 vtkSetClampMacro(Progress,<span class="keywordtype">double</span>,0.0,1.0); <a name="l00155"></a>00155 vtkGetMacro(Progress,<span class="keywordtype">double</span>); <a name="l00157"></a>00157 <a name="l00161"></a>00161 <span class="keywordtype">void</span> UpdateProgress(<span class="keywordtype">double</span> amount); <a name="l00162"></a>00162 <a name="l00164"></a>00164 <a name="l00169"></a>00169 <span class="keywordtype">void</span> SetProgressText(<span class="keyword">const</span> <span class="keywordtype">char</span>* ptext); <a name="l00170"></a>00170 vtkGetStringMacro(ProgressText); <a name="l00172"></a>00172 <a name="l00174"></a>00174 <a name="l00176"></a><a class="code" href="a00101.html#2440e119607c05822ce706979c1463b2">00176</a> vtkGetMacro( ErrorCode, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> ); <a name="l00178"></a>00178 <a name="l00179"></a>00179 <span class="comment">// left public for performance since it is used in inner loops</span> <a name="l00180"></a>00180 <span class="keywordtype">int</span> AbortExecute; <a name="l00181"></a>00181 <a name="l00183"></a>00183 <a name="l00184"></a>00184 <span class="keyword">static</span> <a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>* INPUT_IS_OPTIONAL(); <a name="l00185"></a>00185 <span class="keyword">static</span> <a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>* INPUT_IS_REPEATABLE(); <a name="l00186"></a>00186 <span class="keyword">static</span> <a class="code" href="a00880.html" title="Key for vtkInformation vectors.">vtkInformationInformationVectorKey</a>* INPUT_REQUIRED_FIELDS(); <a name="l00187"></a>00187 <span class="keyword">static</span> <a class="code" href="a00893.html" title="Key for String vector values.">vtkInformationStringVectorKey</a>* INPUT_REQUIRED_DATA_TYPE(); <a name="l00188"></a>00188 <span class="keyword">static</span> <a class="code" href="a00880.html" title="Key for vtkInformation vectors.">vtkInformationInformationVectorKey</a>* INPUT_ARRAYS_TO_PROCESS(); <a name="l00189"></a>00189 <span class="keyword">static</span> <a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>* INPUT_PORT(); <a name="l00190"></a>00190 <span class="keyword">static</span> <a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>* INPUT_CONNECTION(); <a name="l00192"></a>00192 <a name="l00193"></a>00193 <a name="l00195"></a>00195 <a name="l00201"></a>00201 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInputArrayToProcess(<span class="keywordtype">int</span> idx, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <span class="keywordtype">int</span> connection, <a name="l00202"></a>00202 <span class="keywordtype">int</span> fieldAssociation, <a name="l00203"></a>00203 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>); <a name="l00204"></a>00204 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInputArrayToProcess(<span class="keywordtype">int</span> idx, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <span class="keywordtype">int</span> connection, <a name="l00205"></a>00205 <span class="keywordtype">int</span> fieldAssociation, <a name="l00206"></a>00206 <span class="keywordtype">int</span> fieldAttributeType); <a name="l00207"></a>00207 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInputArrayToProcess(<span class="keywordtype">int</span> idx, <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="l00209"></a>00209 <a name="l00211"></a>00211 <a name="l00225"></a>00225 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInputArrayToProcess(<span class="keywordtype">int</span> idx, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <span class="keywordtype">int</span> connection, <a name="l00226"></a>00226 <span class="keyword">const</span> <span class="keywordtype">char</span>* fieldAssociation, <a name="l00227"></a>00227 <span class="keyword">const</span> <span class="keywordtype">char</span>* attributeTypeorName); <a name="l00229"></a>00229 <a name="l00231"></a>00231 <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *GetInputArrayInformation(<span class="keywordtype">int</span> idx); <a name="l00232"></a>00232 <a name="l00233"></a>00233 <span class="comment">// from here down are convenience methods that really are executive methods</span> <a name="l00234"></a>00234 <a name="l00235"></a>00235 <a name="l00236"></a>00236 <a name="l00238"></a>00238 <span class="keywordtype">void</span> RemoveAllInputs(); <a name="l00239"></a>00239 <a name="l00242"></a>00242 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* GetOutputDataObject(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>); <a name="l00243"></a>00243 <a name="l00245"></a>00245 <a name="l00247"></a>00247 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *GetInputDataObject(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <a name="l00248"></a>00248 <span class="keywordtype">int</span> connection); <a name="l00250"></a>00250 <a name="l00252"></a>00252 <a name="l00261"></a>00261 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInputConnection(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* input); <a name="l00262"></a>00262 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInputConnection(<a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* input); <a name="l00264"></a>00264 <a name="l00266"></a>00266 <a name="l00271"></a>00271 <span class="keyword">virtual</span> <span class="keywordtype">void</span> AddInputConnection(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* input); <a name="l00272"></a>00272 <span class="keyword">virtual</span> <span class="keywordtype">void</span> AddInputConnection(<a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* input); <a name="l00274"></a>00274 <a name="l00281"></a>00281 <span class="keyword">virtual</span> <span class="keywordtype">void</span> RemoveInputConnection(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* input); <a name="l00282"></a>00282 <a name="l00284"></a>00284 <a name="l00288"></a>00288 <a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* GetOutputPort(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e519c5019582479480124c44722a451f">index</a>); <a name="l00289"></a><a class="code" href="a00101.html#bfa9d3f45a8d2d7ad861c23aa47be8eb">00289</a> <a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* GetOutputPort() { <a name="l00290"></a>00290 <span class="keywordflow">return</span> this->GetOutputPort(0); } <a name="l00292"></a>00292 <a name="l00294"></a>00294 <span class="keywordtype">int</span> GetNumberOfInputConnections(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>); <a name="l00295"></a>00295 <a name="l00297"></a>00297 <span class="keywordtype">int</span> GetTotalNumberOfInputConnections(); <a name="l00298"></a>00298 <a name="l00300"></a>00300 <a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* GetInputConnection(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e519c5019582479480124c44722a451f">index</a>); <a name="l00301"></a>00301 <a name="l00303"></a>00303 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Update(); <a name="l00304"></a>00304 <a name="l00307"></a>00307 <span class="keyword">virtual</span> <span class="keywordtype">void</span> UpdateInformation(); <a name="l00308"></a>00308 <a name="l00310"></a>00310 <span class="keyword">virtual</span> <span class="keywordtype">void</span> UpdateWholeExtent(); <a name="l00311"></a>00311 <a name="l00314"></a>00314 <span class="keywordtype">void</span> ConvertTotalInputToPortConnection(<span class="keywordtype">int</span> ind, <span class="keywordtype">int</span>& <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <span class="keywordtype">int</span>& conn); <a name="l00315"></a>00315 <a name="l00316"></a>00316 <span class="comment">//======================================================================</span> <a name="l00317"></a>00317 <span class="comment">//The following block of code is to support old style VTK applications. If</span> <a name="l00318"></a>00318 <span class="comment">//you are using these calls there are better ways to do it in the new</span> <a name="l00319"></a>00319 <span class="comment">//pipeline</span> <a name="l00320"></a>00320 <span class="comment">//======================================================================</span> <a name="l00321"></a>00321 <a name="l00323"></a>00323 <a name="l00324"></a>00324 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetReleaseDataFlag(<span class="keywordtype">int</span>); <a name="l00325"></a>00325 <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetReleaseDataFlag(); <a name="l00326"></a>00326 <span class="keywordtype">void</span> ReleaseDataFlagOn(); <a name="l00327"></a>00327 <span class="keywordtype">void</span> ReleaseDataFlagOff(); <a name="l00329"></a>00329 <a name="l00330"></a>00330 <span class="comment">//========================================================================</span> <a name="l00331"></a>00331 <a name="l00333"></a>00333 <a name="l00337"></a>00337 <span class="keywordtype">int</span> UpdateExtentIsEmpty(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *output); <a name="l00338"></a>00338 <span class="keywordtype">int</span> UpdateExtentIsEmpty(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *pinfo, <span class="keywordtype">int</span> extentType); <a name="l00340"></a>00340 <a name="l00343"></a>00343 <span class="keyword">static</span> <span class="keywordtype">void</span> SetDefaultExecutivePrototype(<a class="code" href="a00472.html" title="Superclass for all pipeline executives in VTK.">vtkExecutive</a>* proto); <a name="l00344"></a>00344 <a name="l00348"></a>00348 <span class="keyword">virtual</span> <span class="keywordtype">double</span> ComputePriority(); <a name="l00349"></a>00349 <a name="l00351"></a>00351 <a name="l00353"></a>00353 <span class="keyword">static</span> <a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>* PRESERVES_DATASET(); <a name="l00354"></a>00354 <span class="keyword">static</span> <a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>* PRESERVES_GEOMETRY(); <a name="l00355"></a>00355 <span class="keyword">static</span> <a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>* PRESERVES_BOUNDS(); <a name="l00356"></a>00356 <span class="keyword">static</span> <a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>* PRESERVES_TOPOLOGY(); <a name="l00357"></a>00357 <span class="keyword">static</span> <a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>* PRESERVES_ATTRIBUTES(); <a name="l00358"></a>00358 <span class="keyword">static</span> <a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>* PRESERVES_RANGES(); <a name="l00360"></a>00360 <a name="l00361"></a>00361 <span class="keyword">protected</span>: <a name="l00362"></a>00362 <a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>(); <a name="l00363"></a>00363 ~<a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>(); <a name="l00364"></a>00364 <a name="l00365"></a>00365 <span class="comment">// Keys used to indicate that input/output port information has been</span> <a name="l00366"></a>00366 <span class="comment">// filled.</span> <a name="l00367"></a>00367 <span class="keyword">static</span> <a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>* PORT_REQUIREMENTS_FILLED(); <a name="l00368"></a>00368 <a name="l00369"></a>00369 <span class="comment">// Arbitrary extra information associated with this algorithm</span> <a name="l00370"></a><a class="code" href="a00101.html#2141e93adeb83fc86a91bbbc93f05b0c">00370</a> <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>* Information; <a name="l00371"></a>00371 <a name="l00375"></a>00375 <span class="keyword">virtual</span> <span class="keywordtype">int</span> FillInputPortInformation(<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="l00376"></a>00376 <a name="l00380"></a>00380 <span class="keyword">virtual</span> <span class="keywordtype">int</span> FillOutputPortInformation(<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="l00381"></a>00381 <a name="l00383"></a>00383 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetNumberOfInputPorts(<span class="keywordtype">int</span> n); <a name="l00384"></a>00384 <a name="l00386"></a>00386 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetNumberOfOutputPorts(<span class="keywordtype">int</span> n); <a name="l00387"></a>00387 <a name="l00388"></a>00388 <span class="comment">// Helper methods to check input/output port index ranges.</span> <a name="l00389"></a>00389 <span class="keywordtype">int</span> InputPortIndexInRange(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e519c5019582479480124c44722a451f">index</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* action); <a name="l00390"></a>00390 <span class="keywordtype">int</span> OutputPortIndexInRange(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e519c5019582479480124c44722a451f">index</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* action); <a name="l00391"></a>00391 <a name="l00394"></a>00394 <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *GetInputArrayToProcess(<span class="keywordtype">int</span> idx,<a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **inputVector); <a name="l00395"></a>00395 <a name="l00397"></a>00397 <a name="l00403"></a>00403 <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *GetInputArrayToProcess(<span class="keywordtype">int</span> idx, <a name="l00404"></a>00404 <span class="keywordtype">int</span> connection, <a name="l00405"></a>00405 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **inputVector); <a name="l00406"></a>00406 <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *GetInputArrayToProcess(<span class="keywordtype">int</span> idx, <a name="l00407"></a>00407 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* input); <a name="l00409"></a>00409 <a name="l00410"></a>00410 <a name="l00413"></a>00413 <a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a> *GetInputAbstractArrayToProcess(<span class="keywordtype">int</span> idx,<a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **inputVector); <a name="l00414"></a>00414 <a name="l00416"></a>00416 <a name="l00422"></a>00422 <a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a> *GetInputAbstractArrayToProcess(<span class="keywordtype">int</span> idx, <a name="l00423"></a>00423 <span class="keywordtype">int</span> connection, <a name="l00424"></a>00424 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **inputVector); <a name="l00425"></a>00425 <a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a> *GetInputAbstractArrayToProcess(<span class="keywordtype">int</span> idx, <a name="l00426"></a>00426 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* input); <a name="l00428"></a>00428 <a name="l00429"></a>00429 <a name="l00430"></a>00430 <a name="l00432"></a>00432 <a name="l00437"></a>00437 <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *GetInputArrayFieldInformation(<span class="keywordtype">int</span> idx, <a name="l00438"></a>00438 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **inputVector); <a name="l00440"></a>00440 <a name="l00441"></a>00441 <a name="l00446"></a>00446 <span class="keyword">virtual</span> <a class="code" href="a00472.html" title="Superclass for all pipeline executives in VTK.">vtkExecutive</a>* CreateDefaultExecutive(); <a name="l00447"></a>00447 <a name="l00449"></a>00449 <a name="l00451"></a><a class="code" href="a00101.html#65b94e5cdc656b025d4b42b5f0b7dac9">00451</a> vtkSetMacro( ErrorCode, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> ); <a name="l00452"></a>00452 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> ErrorCode; <a name="l00454"></a>00454 <a name="l00455"></a>00455 <span class="comment">// Progress/Update handling</span> <a name="l00456"></a><a class="code" href="a00101.html#f512d38b8455a1aa36287e1db75d4c35">00456</a> <span class="keywordtype">double</span> Progress; <a name="l00457"></a><a class="code" href="a00101.html#8d8509310f1cc5e672b67a2d6e891a07">00457</a> <span class="keywordtype">char</span> *ProgressText; <a name="l00458"></a>00458 <a name="l00459"></a>00459 <span class="comment">// Garbage collection support.</span> <a name="l00460"></a>00460 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01085.html#c6aa962bedb220056f91add33044f24e">ReportReferences</a>(<a class="code" href="a00572.html" title="Detect and break reference loops.">vtkGarbageCollector</a>*); <a name="l00461"></a>00461 <a name="l00462"></a>00462 <span class="comment">// executive methods below</span> <a name="l00463"></a>00463 <a name="l00465"></a>00465 <a name="l00469"></a>00469 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetNthInputConnection(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e519c5019582479480124c44722a451f">index</a>, <a name="l00470"></a>00470 <a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* input); <a name="l00472"></a>00472 <a name="l00477"></a>00477 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetNumberOfInputConnections(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <span class="keywordtype">int</span> n); <a name="l00478"></a>00478 <a name="l00479"></a><a class="code" href="a00101.html#fe1d63d23a7ec21ba07bd78b8bf1865f">00479</a> <span class="keyword">static</span> <a class="code" href="a00472.html" title="Superclass for all pipeline executives in VTK.">vtkExecutive</a>* DefaultExecutivePrototype; <a name="l00480"></a>00480 <a name="l00481"></a>00481 <span class="keyword">private</span>: <a name="l00482"></a>00482 <a class="code" href="a00472.html" title="Superclass for all pipeline executives in VTK.">vtkExecutive</a>* Executive; <a name="l00483"></a>00483 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>* InputPortInformation; <a name="l00484"></a>00484 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>* OutputPortInformation; <a name="l00485"></a>00485 vtkAlgorithmInternals* AlgorithmInternal; <a name="l00486"></a>00486 <span class="keyword">static</span> <span class="keywordtype">void</span> ConnectionAdd(<a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>* producer, <span class="keywordtype">int</span> producerPort, <a name="l00487"></a>00487 <a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>* consumer, <span class="keywordtype">int</span> consumerPort); <a name="l00488"></a>00488 <span class="keyword">static</span> <span class="keywordtype">void</span> ConnectionRemove(<a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>* producer, <span class="keywordtype">int</span> producerPort, <a name="l00489"></a>00489 <a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>* consumer, <span class="keywordtype">int</span> consumerPort); <a name="l00490"></a>00490 <span class="keyword">static</span> <span class="keywordtype">void</span> ConnectionRemoveAllInput(<a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>* consumer, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>); <a name="l00491"></a>00491 <span class="keyword">static</span> <span class="keywordtype">void</span> ConnectionRemoveAllOutput(<a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>* producer, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>); <a name="l00492"></a>00492 <a name="l00493"></a>00493 <span class="keyword">private</span>: <a name="l00494"></a>00494 <a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>(<span class="keyword">const</span> <a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>&); <span class="comment">// Not implemented.</span> <a name="l00495"></a>00495 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>&); <span class="comment">// Not implemented.</span> <a name="l00496"></a>00496 }; <a name="l00497"></a>00497 <a name="l00498"></a>00498 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:14 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>