<!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/Rendering/vtkPainter.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/Rendering/vtkPainter.h</h1><a href="a03507.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: vtkPainter.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="l00015"></a>00015 <a name="l00016"></a>00016 <span class="comment">/*</span> <a name="l00017"></a>00017 <span class="comment"> * Copyright 2004 Sandia Corporation.</span> <a name="l00018"></a>00018 <span class="comment"> * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive</span> <a name="l00019"></a>00019 <span class="comment"> * license for use of this work by or on behalf of the</span> <a name="l00020"></a>00020 <span class="comment"> * U.S. Government. Redistribution and use in source and binary forms, with</span> <a name="l00021"></a>00021 <span class="comment"> * or without modification, are permitted provided that this Notice and any</span> <a name="l00022"></a>00022 <span class="comment"> * statement of authorship are reproduced on all copies.</span> <a name="l00023"></a>00023 <span class="comment"> */</span> <a name="l00024"></a>00024 <a name="l00045"></a>00045 <span class="preprocessor">#ifndef __vtkPainter_h</span> <a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">#define __vtkPainter_h</span> <a name="l00047"></a>00047 <span class="preprocessor"></span> <a name="l00048"></a>00048 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span> <a name="l00049"></a>00049 <span class="preprocessor">#include "<a class="code" href="a02168.html">vtkWeakPointer.h</a>"</span> <span class="comment">// needed for vtkWeakPointer.</span> <a name="l00050"></a>00050 <a name="l00051"></a>00051 <span class="keyword">class </span><a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>; <a name="l00052"></a>00052 <span class="keyword">class </span><a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>; <a name="l00053"></a>00053 <span class="keyword">class </span><a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>; <a name="l00054"></a>00054 <span class="keyword">class </span><a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>; <a name="l00055"></a>00055 <span class="keyword">class </span><a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>; <a name="l00056"></a>00056 <span class="keyword">class </span><a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>; <a name="l00057"></a>00057 <span class="keyword">class </span>vtkPainterObserver; <a name="l00058"></a>00058 <span class="keyword">class </span><a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>; <a name="l00059"></a>00059 <span class="keyword">class </span><a class="code" href="a01715.html" title="Timer support and logging.">vtkTimerLog</a>; <a name="l00060"></a>00060 <span class="keyword">class </span><a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a>; <a name="l00061"></a>00061 <a name="l00062"></a><a class="code" href="a01149.html">00062</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a01149.html" title="Abstract class for drawing poly data.">vtkPainter</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a> <a name="l00063"></a>00063 { <a name="l00064"></a>00064 <span class="keyword">public</span>: <a name="l00065"></a><a class="code" href="a01149.html#b0f18fc343ce615d81b0d6c60e1642e4">00065</a> vtkTypeRevisionMacro(<a class="code" href="a01149.html" title="Abstract class for drawing poly data.">vtkPainter</a>, <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>); <a name="l00066"></a>00066 <span class="keyword">virtual</span> <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="l00067"></a>00067 <a name="l00072"></a>00072 <span class="keyword">static</span> <a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>* STATIC_DATA(); <a name="l00073"></a>00073 <a name="l00078"></a>00078 <span class="keyword">static</span> <a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>* CONSERVE_MEMORY(); <a name="l00079"></a>00079 <a name="l00083"></a>00083 <span class="keyword">static</span> <a class="code" href="a00881.html" title="Key for integer values in vtkInformation.">vtkInformationIntegerKey</a>* HIGH_QUALITY(); <a name="l00084"></a>00084 <a name="l00086"></a>00086 <a name="l00087"></a>00087 vtkGetObjectMacro(Information, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>); <a name="l00088"></a>00088 <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="l00090"></a>00090 <a name="l00092"></a>00092 <a name="l00094"></a>00094 vtkGetObjectMacro(DelegatePainter, <a class="code" href="a01149.html" title="Abstract class for drawing poly data.">vtkPainter</a>); <a name="l00095"></a>00095 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetDelegatePainter(<a class="code" href="a01149.html" title="Abstract class for drawing poly data.">vtkPainter</a>*); <a name="l00097"></a>00097 <a name="l00099"></a>00099 <a name="l00100"></a>00100 <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="l00101"></a>00101 <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="l00103"></a>00103 <a name="l00104"></a>00104 <span class="comment">//BTX</span> <a name="l00105"></a>00105 <span class="keyword">enum</span> { <a name="l00106"></a><a class="code" href="a01149.html#0e9e20cf787a88a4457cd969aa5b696fd888244556b6c6887caa14c3d4a683f3">00106</a> VERTS = 0x1, <a name="l00107"></a><a class="code" href="a01149.html#0e9e20cf787a88a4457cd969aa5b696f963e8d235218f420680f74c5e5946b4d">00107</a> LINES = 0x2, <a name="l00108"></a><a class="code" href="a01149.html#0e9e20cf787a88a4457cd969aa5b696f9b33cb974bb2f86b8497e1ced040405a">00108</a> POLYS = 0x4, <a name="l00109"></a><a class="code" href="a01149.html#0e9e20cf787a88a4457cd969aa5b696fbc4676d4beb302896137a247968d8bf7">00109</a> STRIPS = 0x8 <a name="l00110"></a>00110 }; <a name="l00111"></a>00111 <span class="comment">//ETX</span> <a name="l00112"></a>00112 <a name="l00114"></a>00114 <a name="l00119"></a>00119 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Render(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>* renderer, <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>* actor, <a name="l00120"></a>00120 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> typeflags, <span class="keywordtype">bool</span> forceCompileOnly); <a name="l00122"></a>00122 <a name="l00127"></a>00127 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReleaseGraphicsResources(<a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a> *); <a name="l00128"></a>00128 <a name="l00130"></a>00130 <a name="l00131"></a>00131 vtkSetClampMacro(Progress,<span class="keywordtype">double</span>,0.0,1.0); <a name="l00132"></a>00132 vtkGetMacro(Progress,<span class="keywordtype">double</span>); <a name="l00134"></a>00134 <a name="l00138"></a>00138 <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetTimeToDraw(); <a name="l00139"></a>00139 <a name="l00143"></a>00143 <span class="keyword">virtual</span> <span class="keywordtype">void</span> UpdateBounds(<span class="keywordtype">double</span> bounds[6]); <a name="l00144"></a>00144 <a name="l00146"></a>00146 <a name="l00148"></a>00148 <span class="keywordtype">void</span> SetInput(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>*); <a name="l00149"></a>00149 vtkGetObjectMacro(Input, <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>); <a name="l00151"></a>00151 <a name="l00153"></a>00153 <a name="l00155"></a><a class="code" href="a01149.html#60a56a0704a73e2d98ba82cf3828e7c7">00155</a> <span class="keyword">virtual</span> <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* GetOutput() <a name="l00156"></a>00156 { <span class="keywordflow">return</span> this->Input; } <a name="l00158"></a>00158 <a name="l00159"></a>00159 <span class="comment">//BTX</span> <a name="l00160"></a>00160 <span class="keyword">protected</span>: <a name="l00161"></a>00161 <a class="code" href="a01149.html" title="Abstract class for drawing poly data.">vtkPainter</a>(); <a name="l00162"></a>00162 ~<a class="code" href="a01149.html" title="Abstract class for drawing poly data.">vtkPainter</a>(); <a name="l00163"></a>00163 <a name="l00165"></a>00165 <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> *collector); <a name="l00166"></a>00166 <a name="l00172"></a>00172 <span class="keywordtype">void</span> UpdateDelegatePainter(); <a name="l00173"></a>00173 <a name="l00177"></a>00177 <span class="keyword">virtual</span> <span class="keywordtype">void</span> PassInformation(<a class="code" href="a01149.html" title="Abstract class for drawing poly data.">vtkPainter</a>* toPainter); <a name="l00178"></a>00178 <a name="l00183"></a><a class="code" href="a01149.html#e3b984be5fedeecd2504e9532e8a8fa8">00183</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> PrepareForRendering(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>*, <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>*) { } <a name="l00184"></a>00184 <a name="l00186"></a>00186 <a name="l00191"></a>00191 <span class="keyword">virtual</span> <span class="keywordtype">void</span> RenderInternal(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>* renderer, <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>* actor, <a name="l00192"></a>00192 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> typeflags, <span class="keywordtype">bool</span> forceCompileOnly); <a name="l00194"></a>00194 <a name="l00197"></a>00197 <span class="keyword">virtual</span> <span class="keywordtype">void</span> UpdateDelegateProgress(<a class="code" href="a01149.html" title="Abstract class for drawing poly data.">vtkPainter</a>* delegate, <span class="keywordtype">double</span> amount); <a name="l00198"></a>00198 <a name="l00201"></a><a class="code" href="a01149.html#9ec3772c41fd56a04475ed56aa39ba2a">00201</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> ProcessInformation(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>*) { } <a name="l00202"></a>00202 <a name="l00205"></a>00205 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ObserverPainterProgress(<a class="code" href="a01149.html" title="Abstract class for drawing poly data.">vtkPainter</a>* toObserve); <a name="l00206"></a>00206 <a name="l00210"></a>00210 <span class="keywordtype">void</span> UpdateProgress(<span class="keywordtype">double</span> amount); <a name="l00211"></a>00211 <a name="l00213"></a>00213 <a name="l00214"></a>00214 <a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* GetInputArrayToProcess(<span class="keywordtype">int</span> fieldAssociation, <a name="l00215"></a>00215 <span class="keywordtype">int</span> fieldAttributeType, <a name="l00216"></a>00216 <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* ds, <a name="l00217"></a>00217 <span class="keywordtype">bool</span> *use_cell_data=0); <a name="l00218"></a>00218 <a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* GetInputArrayToProcess(<span class="keywordtype">int</span> fieldAssociation, <a name="l00219"></a>00219 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* dsl, <a name="l00220"></a>00220 <span class="keywordtype">bool</span> *use_cell_data=0); <a name="l00222"></a>00222 <a name="l00223"></a>00223 <span class="comment">// Time of most recent call to ProcessInformation().</span> <a name="l00224"></a><a class="code" href="a01149.html#380a1c0058cf049af03654b5bb474055">00224</a> <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a> InformationProcessTime; <a name="l00225"></a><a class="code" href="a01149.html#64f560f8b3dfdd872d940c3751daa306">00225</a> <span class="keyword">friend</span> <span class="keyword">class </span>vtkPainterObserver; <a name="l00226"></a><a class="code" href="a01149.html#fcdbf12a18a028c6d901c4b75d68ea21">00226</a> vtkPainterObserver* Observer; <a name="l00227"></a>00227 <a name="l00228"></a><a class="code" href="a01149.html#9a2689c21fc65b0a538b7326231926dd">00228</a> <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>* Information; <a name="l00229"></a><a class="code" href="a01149.html#6890b7e31a64854cff3adba09a98678e">00229</a> <a class="code" href="a01149.html" title="Abstract class for drawing poly data.">vtkPainter</a>* DelegatePainter; <a name="l00230"></a>00230 <a name="l00231"></a><a class="code" href="a01149.html#8541bafbb9452786f34179805c63aa30">00231</a> <span class="keywordtype">double</span> Progress; <a name="l00232"></a><a class="code" href="a01149.html#ed493e752a5255bc7075ed6925189ce9">00232</a> <span class="keywordtype">double</span> ProgressOffset; <a name="l00233"></a><a class="code" href="a01149.html#e44c027b3c6e29345ef5182a88c5b2f2">00233</a> <span class="keywordtype">double</span> ProgressScaleFactor; <a name="l00234"></a>00234 <a name="l00235"></a><a class="code" href="a01149.html#cd9d09362a59628a277108de670a1a70">00235</a> <span class="keywordtype">double</span> TimeToDraw; <a name="l00236"></a><a class="code" href="a01149.html#487b9c1a5c8a179e509f122e9c11844b">00236</a> <a class="code" href="a01715.html" title="Timer support and logging.">vtkTimerLog</a>* Timer; <a name="l00237"></a>00237 <a name="l00238"></a><a class="code" href="a01149.html#8d90201d2ea28fe1251118fa3b30e944">00238</a> <a class="code" href="a01869.html" title="a weak reference to a vtkObject.">vtkWeakPointer<vtkWindow></a> LastWindow; <span class="comment">// Window used for previous render.</span> <a name="l00239"></a>00239 <span class="comment">// This is not reference counted.</span> <a name="l00240"></a>00240 <span class="keyword">private</span>: <a name="l00241"></a>00241 <a class="code" href="a01149.html" title="Abstract class for drawing poly data.">vtkPainter</a>(<span class="keyword">const</span> <a class="code" href="a01149.html" title="Abstract class for drawing poly data.">vtkPainter</a> &); <span class="comment">// Not implemented.</span> <a name="l00242"></a>00242 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01149.html" title="Abstract class for drawing poly data.">vtkPainter</a> &); <span class="comment">// Not implemented.</span> <a name="l00243"></a>00243 <a name="l00244"></a>00244 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* Input; <a name="l00245"></a>00245 <span class="comment">//ETX</span> <a name="l00246"></a>00246 }; <a name="l00247"></a>00247 <a name="l00248"></a>00248 <span class="preprocessor">#endif //__vtkPainter_h</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:48 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>