<!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/vtkSource.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/vtkSource.h</h1><a href="a02363.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: vtkSource.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="l00047"></a>00047 <span class="preprocessor">#ifndef __vtkSource_h</span> <a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#define __vtkSource_h</span> <a name="l00049"></a>00049 <span class="preprocessor"></span> <a name="l00050"></a>00050 <span class="preprocessor">#include "<a class="code" href="a02338.html">vtkProcessObject.h</a>"</span> <a name="l00051"></a>00051 <a name="l00052"></a>00052 <span class="keyword">class </span><a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>; <a name="l00053"></a>00053 <span class="keyword">class </span>vtkDataObjectToSourceFriendship; <a name="l00054"></a>00054 <a name="l00055"></a><a class="code" href="a01574.html">00055</a> <span class="keyword">class </span><a class="code" href="a02170.html#95ced7977a6b6b1bf9f38bf04e3835b6">VTK_FILTERING_EXPORT</a> <a class="code" href="a01574.html" title="abstract class specifies interface for visualization network source">vtkSource</a> : <span class="keyword">public</span> <a class="code" href="a01306.html" title="abstract class specifies interface for visualization filters">vtkProcessObject</a> <a name="l00056"></a>00056 { <a name="l00057"></a>00057 <span class="keyword">public</span>: <a name="l00058"></a><a class="code" href="a01574.html#e38c81cb82d6a0bc5d0ac2b734b8cf4d">00058</a> vtkTypeRevisionMacro(<a class="code" href="a01574.html" title="abstract class specifies interface for visualization network source">vtkSource</a>,<a class="code" href="a01306.html" title="abstract class specifies interface for visualization filters">vtkProcessObject</a>); <a name="l00059"></a>00059 <span class="keywordtype">void</span> <a class="code" href="a01306.html#0b9edaa75ee792cafa1903de2484b568">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00060"></a>00060 <a name="l00064"></a>00064 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00101.html#fa4eff301069b8b47703cd4939aeffa7">Update</a>(); <a name="l00065"></a>00065 <a name="l00068"></a>00068 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00101.html#ab591f3a34e99d0f7d89b019c485e66c">UpdateWholeExtent</a>(); <a name="l00069"></a>00069 <a name="l00072"></a>00072 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00101.html#e634c0e86b774bfcfa3ac2794e98e3d3">UpdateInformation</a>(); <a name="l00073"></a>00073 <a name="l00078"></a>00078 <span class="keyword">virtual</span> <span class="keywordtype">void</span> PropagateUpdateExtent(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *output); <a name="l00079"></a>00079 <a name="l00085"></a>00085 <span class="keyword">virtual</span> <span class="keywordtype">void</span> TriggerAsynchronousUpdate(); <a name="l00086"></a>00086 <a name="l00093"></a>00093 <span class="keyword">virtual</span> <span class="keywordtype">void</span> UpdateData(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *output); <a name="l00094"></a>00094 <a name="l00098"></a>00098 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ComputeInputUpdateExtents( <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *output ); <a name="l00099"></a>00099 <a name="l00101"></a>00101 <a name="l00103"></a>00103 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00101.html#c3621620321c01db44f8b60a164ce576">SetReleaseDataFlag</a>(<span class="keywordtype">int</span>); <a name="l00104"></a>00104 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00101.html#e5312efd911a3fcb351179953afabdcc">GetReleaseDataFlag</a>(); <a name="l00105"></a>00105 vtkBooleanMacro(ReleaseDataFlag,<span class="keywordtype">int</span>); <a name="l00107"></a>00107 <a name="l00109"></a>00109 <a name="l00111"></a>00111 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> **GetOutputs(); <a name="l00112"></a>00112 vtkGetMacro(NumberOfOutputs,<span class="keywordtype">int</span>); <a name="l00114"></a>00114 <a name="l00118"></a>00118 <span class="keywordtype">void</span> UnRegisterAllOutputs(<span class="keywordtype">void</span>); <a name="l00119"></a>00119 <a name="l00122"></a>00122 <span class="keywordtype">int</span> GetOutputIndex(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *out); <a name="l00123"></a>00123 <a name="l00127"></a>00127 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00101.html#b2089b787731c4f03aba50a2a734f656">SetExecutive</a>(<a class="code" href="a00472.html" title="Superclass for all pipeline executives in VTK.">vtkExecutive</a>* executive); <a name="l00128"></a>00128 <a name="l00130"></a>00130 <a name="l00134"></a>00134 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00101.html#99651784a97d309c0cc90072dca29542">ProcessRequest</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>*, <a name="l00135"></a>00135 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>**, <a name="l00136"></a>00136 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>*); <a name="l00138"></a>00138 <a name="l00139"></a>00139 <span class="keyword">protected</span>: <a name="l00140"></a>00140 <a class="code" href="a01574.html" title="abstract class specifies interface for visualization network source">vtkSource</a>(); <a name="l00141"></a>00141 ~<a class="code" href="a01574.html" title="abstract class specifies interface for visualization network source">vtkSource</a>(); <a name="l00142"></a>00142 <a name="l00146"></a>00146 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ExecuteData(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *output); <a name="l00147"></a>00147 <a name="l00149"></a>00149 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Execute(); <a name="l00150"></a>00150 <a name="l00151"></a>00151 <span class="comment">// By default, UpdateInformation calls this method to copy information</span> <a name="l00152"></a>00152 <span class="comment">// unmodified from the input to the output.</span> <a name="l00153"></a>00153 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ExecuteInformation(); <a name="l00154"></a>00154 <a name="l00155"></a>00155 <span class="comment">// Called after ExecuteData to call DataHasBeenGenerated on the</span> <a name="l00156"></a>00156 <span class="comment">// outputs. It can be overridden by subclasses to call</span> <a name="l00157"></a>00157 <span class="comment">// DataHasBeenGenerated on only a subset of the outputs. The</span> <a name="l00158"></a>00158 <span class="comment">// argument is the pointer to the output data object that was passed</span> <a name="l00159"></a>00159 <span class="comment">// to ExecuteData.</span> <a name="l00160"></a>00160 <span class="keyword">virtual</span> <span class="keywordtype">void</span> MarkGeneratedOutputs(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>*); <a name="l00161"></a>00161 <a name="l00162"></a>00162 <span class="comment">// Called to allocate the input array. Copies old inputs.</span> <a name="l00163"></a>00163 <span class="keywordtype">void</span> SetNumberOfOutputs(<span class="keywordtype">int</span> num); <a name="l00164"></a>00164 <a name="l00165"></a>00165 <span class="comment">// method used internally for getting an output.</span> <a name="l00166"></a>00166 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *GetOutput(<span class="keywordtype">int</span> idx); <a name="l00167"></a>00167 <a name="l00168"></a>00168 <span class="comment">// protected methods for setting inputs.</span> <a name="l00169"></a>00169 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetNthOutput(<span class="keywordtype">int</span> num, <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *output); <a name="l00170"></a>00170 <span class="keyword">virtual</span> <span class="keywordtype">void</span> AddOutput(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *output); <a name="l00171"></a>00171 <span class="keyword">virtual</span> <span class="keywordtype">void</span> RemoveOutput(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *output); <a name="l00172"></a>00172 <a name="l00173"></a><a class="code" href="a01574.html#7408e947a1f51785502976c0176c307f">00173</a> <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> **Outputs; <span class="comment">// An Array of the outputs to the filter</span> <a name="l00174"></a><a class="code" href="a01574.html#675d383749bf58b68b98d99c577d9d1e">00174</a> <span class="keywordtype">int</span> NumberOfOutputs; <a name="l00175"></a><a class="code" href="a01574.html#b2b788f1e0fd0f6eb98a7c88764f5d3d">00175</a> <span class="keywordtype">int</span> Updating; <a name="l00176"></a>00176 <span class="comment">// Time when ExecuteInformation was last called.</span> <a name="l00177"></a><a class="code" href="a01574.html#139ff7ad61466644f879578e061f33d0">00177</a> <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a> InformationTime; <a name="l00178"></a>00178 <a name="l00179"></a>00179 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01306.html#3d946164f4df1b747c6bb22fbef87a7b">ReportReferences</a>(<a class="code" href="a00572.html" title="Detect and break reference loops.">vtkGarbageCollector</a>*); <a name="l00180"></a>00180 <a name="l00181"></a>00181 <span class="comment">// Output port information must match the current outputs.</span> <a name="l00182"></a>00182 <span class="keywordtype">int</span> <a class="code" href="a01306.html#68325ac78e316331ede30c2105d43497">FillOutputPortInformation</a>(<span class="keywordtype">int</span>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>*); <a name="l00183"></a>00183 <a name="l00184"></a>00184 <span class="comment">// Reimplemented from vtkAlgorithm to maintain backward</span> <a name="l00185"></a>00185 <span class="comment">// compatibility for vtkProcessObject.</span> <a name="l00186"></a>00186 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00101.html#1340409c00cd82921d45d7f5fdf50b4c">SetNumberOfOutputPorts</a>(<span class="keywordtype">int</span> n); <a name="l00187"></a>00187 <a name="l00188"></a>00188 <span class="comment">//BTX</span> <a name="l00189"></a><a class="code" href="a01574.html#93879a54bd291215a65bd879875dacc3">00189</a> <span class="keyword">friend</span> <span class="keyword">class </span>vtkDataObjectToSourceFriendship; <a name="l00190"></a>00190 <span class="comment">//ETX</span> <a name="l00191"></a>00191 <a name="l00192"></a>00192 <span class="keyword">private</span>: <a name="l00193"></a>00193 <a class="code" href="a01574.html" title="abstract class specifies interface for visualization network source">vtkSource</a>(<span class="keyword">const</span> <a class="code" href="a01574.html" title="abstract class specifies interface for visualization network source">vtkSource</a>&); <span class="comment">// Not implemented.</span> <a name="l00194"></a>00194 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01574.html" title="abstract class specifies interface for visualization network source">vtkSource</a>&); <span class="comment">// Not implemented.</span> <a name="l00195"></a>00195 }; <a name="l00196"></a>00196 <a name="l00197"></a>00197 <span class="preprocessor">#endif</span> <a name="l00198"></a>00198 <span class="preprocessor"></span> <a name="l00199"></a>00199 <a name="l00200"></a>00200 </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:17 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>