<!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/vtkPolyDataMapper2D.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/vtkPolyDataMapper2D.h</h1><a href="a03517.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: vtkPolyDataMapper2D.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="l00035"></a>00035 <span class="preprocessor">#ifndef __vtkPolyDataMapper2D_h</span> <a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#define __vtkPolyDataMapper2D_h</span> <a name="l00037"></a>00037 <span class="preprocessor"></span> <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="preprocessor">#include "<a class="code" href="a02304.html">vtkMapper2D.h</a>"</span> <a name="l00040"></a>00040 <a name="l00041"></a>00041 <span class="keyword">class </span><a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a>; <a name="l00042"></a>00042 <span class="keyword">class </span><a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>; <a name="l00043"></a>00043 <span class="keyword">class </span><a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a>; <a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a>; <a name="l00045"></a>00045 <a name="l00046"></a><a class="code" href="a01266.html">00046</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a> : <span class="keyword">public</span> <a class="code" href="a00985.html" title="abstract class specifies interface for objects which render 2D actors">vtkMapper2D</a> <a name="l00047"></a>00047 { <a name="l00048"></a>00048 <span class="keyword">public</span>: <a name="l00049"></a><a class="code" href="a01266.html#49dedd282de83504649da0d479596dd0">00049</a> vtkTypeRevisionMacro(<a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>,<a class="code" href="a00985.html" title="abstract class specifies interface for objects which render 2D actors">vtkMapper2D</a>); <a name="l00050"></a>00050 <span class="keyword">static</span> <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a> *<a class="code" href="a00101.html#06d80d8d4aa1a4856135fa003845be82">New</a>(); <a name="l00051"></a>00051 <span class="keywordtype">void</span> <a class="code" href="a00985.html#e353965d0feec19b15b13681784992b3">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00052"></a>00052 <a name="l00054"></a>00054 <a name="l00055"></a>00055 <span class="keywordtype">void</span> SetInput(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *in); <a name="l00056"></a>00056 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *GetInput(); <a name="l00058"></a>00058 <a name="l00060"></a>00060 <a name="l00061"></a>00061 <span class="keywordtype">void</span> SetLookupTable(<a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a> *lut); <a name="l00062"></a>00062 <a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a> *GetLookupTable(); <a name="l00064"></a>00064 <a name="l00067"></a>00067 <span class="keyword">virtual</span> <span class="keywordtype">void</span> CreateDefaultLookupTable(); <a name="l00068"></a>00068 <a name="l00070"></a>00070 <a name="l00072"></a>00072 vtkSetMacro(ScalarVisibility,<span class="keywordtype">int</span>); <a name="l00073"></a>00073 vtkGetMacro(ScalarVisibility,<span class="keywordtype">int</span>); <a name="l00074"></a>00074 vtkBooleanMacro(ScalarVisibility,<span class="keywordtype">int</span>); <a name="l00076"></a>00076 <a name="l00078"></a>00078 <a name="l00085"></a>00085 vtkSetMacro(ColorMode,<span class="keywordtype">int</span>); <a name="l00086"></a>00086 vtkGetMacro(ColorMode,<span class="keywordtype">int</span>); <a name="l00087"></a>00087 <span class="keywordtype">void</span> SetColorModeToDefault(); <a name="l00088"></a>00088 <span class="keywordtype">void</span> SetColorModeToMapScalars(); <a name="l00090"></a>00090 <a name="l00092"></a>00092 <span class="keyword">const</span> <span class="keywordtype">char</span> *GetColorModeAsString(); <a name="l00093"></a>00093 <a name="l00095"></a>00095 <a name="l00101"></a>00101 vtkSetMacro(UseLookupTableScalarRange,<span class="keywordtype">int</span>); <a name="l00102"></a>00102 vtkGetMacro(UseLookupTableScalarRange,<span class="keywordtype">int</span>); <a name="l00103"></a>00103 vtkBooleanMacro(UseLookupTableScalarRange,<span class="keywordtype">int</span>); <a name="l00105"></a>00105 <a name="l00107"></a>00107 <a name="l00110"></a>00110 vtkSetVector2Macro(ScalarRange,<span class="keywordtype">double</span>); <a name="l00111"></a>00111 vtkGetVectorMacro(ScalarRange,<span class="keywordtype">double</span>,2); <a name="l00113"></a>00113 <a name="l00115"></a>00115 <a name="l00125"></a>00125 vtkSetMacro(ScalarMode,<span class="keywordtype">int</span>); <a name="l00126"></a>00126 vtkGetMacro(ScalarMode,<span class="keywordtype">int</span>); <a name="l00127"></a><a class="code" href="a01266.html#5a0300df4ba093fc89d65ed6b107f8b3">00127</a> <span class="keywordtype">void</span> SetScalarModeToDefault() { <a name="l00128"></a>00128 this->SetScalarMode(<a class="code" href="a02184.html#0851d407b2b6bb9d53a8c6636357b4fd">VTK_SCALAR_MODE_DEFAULT</a>);}; <a name="l00129"></a><a class="code" href="a01266.html#379aa738e3475ea794f5ff9021ddf15a">00129</a> <span class="keywordtype">void</span> SetScalarModeToUsePointData() { <a name="l00130"></a>00130 this->SetScalarMode(<a class="code" href="a02184.html#2b3f284d7c2b0de782f3e94b48230609">VTK_SCALAR_MODE_USE_POINT_DATA</a>);}; <a name="l00131"></a><a class="code" href="a01266.html#3b84db5144d5e0aca41154438b9119e2">00131</a> <span class="keywordtype">void</span> SetScalarModeToUseCellData() { <a name="l00132"></a>00132 this->SetScalarMode(<a class="code" href="a02184.html#a2b8f1f183c1b1ef0a5f81eeb75b9264">VTK_SCALAR_MODE_USE_CELL_DATA</a>);}; <a name="l00133"></a><a class="code" href="a01266.html#9db92f4dff5e94591cdadcb7ce2615de">00133</a> <span class="keywordtype">void</span> SetScalarModeToUsePointFieldData() { <a name="l00134"></a>00134 this->SetScalarMode(<a class="code" href="a02184.html#bf0b8d1863120d23ccc533ed3d642e71">VTK_SCALAR_MODE_USE_POINT_FIELD_DATA</a>);}; <a name="l00135"></a><a class="code" href="a01266.html#d0918fd1368aeeaa322a42fa6643ac5c">00135</a> <span class="keywordtype">void</span> SetScalarModeToUseCellFieldData() { <a name="l00136"></a>00136 this->SetScalarMode(<a class="code" href="a02184.html#bb8df8ec0609a726b738d4ad0ca78e46">VTK_SCALAR_MODE_USE_CELL_FIELD_DATA</a>);}; <a name="l00138"></a>00138 <a name="l00140"></a>00140 <a name="l00141"></a>00141 <span class="keywordtype">void</span> ColorByArrayComponent(<span class="keywordtype">int</span> arrayNum, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f78fb09245c9bd345bf96d579664f9736">component</a>); <a name="l00142"></a>00142 <span class="keywordtype">void</span> ColorByArrayComponent(<span class="keywordtype">char</span>* arrayName, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f78fb09245c9bd345bf96d579664f9736">component</a>); <a name="l00144"></a>00144 <a name="l00146"></a>00146 <a name="l00147"></a><a class="code" href="a01266.html#b062477645b5ecabe8afe8111325d61c">00147</a> <span class="keywordtype">char</span>* GetArrayName() { <span class="keywordflow">return</span> this->ArrayName; } <a name="l00148"></a><a class="code" href="a01266.html#35bcc4d0eec6673dd4c306ab5017c5f3">00148</a> <span class="keywordtype">int</span> GetArrayId() { <span class="keywordflow">return</span> this->ArrayId; } <a name="l00149"></a><a class="code" href="a01266.html#95cebd9f308adf2471d1ad5c1a3ede6b">00149</a> <span class="keywordtype">int</span> GetArrayAccessMode() { <span class="keywordflow">return</span> this->ArrayAccessMode; } <a name="l00150"></a><a class="code" href="a01266.html#8fcc206666999e3434b5e6f43a26f109">00150</a> <span class="keywordtype">int</span> GetArrayComponent() { <span class="keywordflow">return</span> this->ArrayComponent; } <a name="l00152"></a>00152 <a name="l00155"></a>00155 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a00083.html#026dfc637075bdaf9e747be6fbfa6e5d">GetMTime</a>(); <a name="l00156"></a>00156 <a name="l00158"></a>00158 <a name="l00162"></a>00162 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetTransformCoordinate(<a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a>*); <a name="l00163"></a>00163 vtkGetObjectMacro(TransformCoordinate, <a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a>); <a name="l00165"></a>00165 <a name="l00171"></a>00171 <a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *MapScalars(<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210a6028180e112c2c1c3556a8253cdbff5">alpha</a>); <a name="l00172"></a>00172 <a name="l00174"></a>00174 <span class="keywordtype">void</span> <a class="code" href="a00083.html#9e4eab34657ff5bf870a23e9bf5bfc6c">ShallowCopy</a>(<a class="code" href="a00083.html" title="abstract class specifies interface to map data">vtkAbstractMapper</a> *m); <a name="l00175"></a>00175 <a name="l00176"></a>00176 <span class="keyword">protected</span>: <a name="l00177"></a>00177 <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>(); <a name="l00178"></a>00178 ~<a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>(); <a name="l00179"></a>00179 <a name="l00180"></a><a class="code" href="a01266.html#7a3663364e51e51adf4919224e8197c8">00180</a> <a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *Colors; <a name="l00181"></a>00181 <a name="l00182"></a><a class="code" href="a01266.html#0fdacc1eef2fb6f98d3f76a3705495ff">00182</a> <a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a> *LookupTable; <a name="l00183"></a><a class="code" href="a01266.html#1f7034da6675dbe7680a09a5b4b7af45">00183</a> <span class="keywordtype">int</span> ScalarVisibility; <a name="l00184"></a><a class="code" href="a01266.html#cf2ba72a02f14a62f23c2ecbb5d2812d">00184</a> <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a> BuildTime; <a name="l00185"></a><a class="code" href="a01266.html#0f3d60eb027c3bb343a9015d7ff15a47">00185</a> <span class="keywordtype">double</span> ScalarRange[2]; <a name="l00186"></a><a class="code" href="a01266.html#39847e4a600215b8c4632639f49b8fc8">00186</a> <span class="keywordtype">int</span> UseLookupTableScalarRange; <a name="l00187"></a><a class="code" href="a01266.html#4da1df777eaea825b7f15f87858a54a8">00187</a> <span class="keywordtype">int</span> ColorMode; <a name="l00188"></a><a class="code" href="a01266.html#f8c810439035c757318f74eb363b3746">00188</a> <span class="keywordtype">int</span> ScalarMode; <a name="l00189"></a>00189 <a name="l00190"></a><a class="code" href="a01266.html#d843ea62c676c4ebc647c471caf8efd0">00190</a> <a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a> *TransformCoordinate; <a name="l00191"></a>00191 <a name="l00192"></a>00192 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00101.html#aad069877868b9c2e8035a946a5d0538">FillInputPortInformation</a>(<span class="keywordtype">int</span>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>*); <a name="l00193"></a>00193 <a name="l00194"></a>00194 <span class="comment">// for coloring by a component of a field data array</span> <a name="l00195"></a><a class="code" href="a01266.html#3ba898b5ab03e544fffc1f40123cecb4">00195</a> <span class="keywordtype">int</span> ArrayId; <a name="l00196"></a><a class="code" href="a01266.html#9ca5beefc12afc1288707a44b1b26ca2">00196</a> <span class="keywordtype">char</span> ArrayName[256]; <a name="l00197"></a><a class="code" href="a01266.html#e9854013b8aa20b746124f978c96ca1c">00197</a> <span class="keywordtype">int</span> ArrayComponent; <a name="l00198"></a><a class="code" href="a01266.html#cf43c98c591be501df78ebaa8da78a08">00198</a> <span class="keywordtype">int</span> ArrayAccessMode; <a name="l00199"></a>00199 <span class="keyword">private</span>: <a name="l00200"></a>00200 <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>(<span class="keyword">const</span> <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>&); <span class="comment">// Not implemented.</span> <a name="l00201"></a>00201 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>&); <span class="comment">// Not implemented.</span> <a name="l00202"></a>00202 }; <a name="l00203"></a>00203 <a name="l00204"></a>00204 <a name="l00205"></a>00205 <span class="preprocessor">#endif</span> <a name="l00206"></a>00206 <span class="preprocessor"></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>