<!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/vtkTexture.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/vtkTexture.h</h1><a href="a03561.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: vtkTexture.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 __vtkTexture_h</span> <a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#define __vtkTexture_h</span> <a name="l00049"></a>00049 <span class="preprocessor"></span> <a name="l00050"></a>00050 <span class="preprocessor">#include "<a class="code" href="a02276.html">vtkImageAlgorithm.h</a>"</span> <a name="l00051"></a>00051 <a name="l00052"></a>00052 <span class="keyword">class </span><a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>; <a name="l00053"></a>00053 <span class="keyword">class </span><a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a>; <a name="l00054"></a>00054 <span class="keyword">class </span><a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>; <a name="l00055"></a>00055 <span class="keyword">class </span><a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a>; <a name="l00056"></a>00056 <span class="keyword">class </span><a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a>; <a name="l00057"></a>00057 <span class="keyword">class </span><a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>; <a name="l00058"></a>00058 <span class="keyword">class </span><a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a>; <a name="l00059"></a>00059 <a name="l00060"></a><a class="code" href="a03561.html#c80949c1cb6f91c770a97aa946eb7dce">00060</a> <span class="preprocessor">#define VTK_TEXTURE_QUALITY_DEFAULT 0</span> <a name="l00061"></a><a class="code" href="a03561.html#ed55f773dcfb1575ddb9e219a861ac3f">00061</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TEXTURE_QUALITY_16BIT 16</span> <a name="l00062"></a><a class="code" href="a03561.html#cda4e9b9a6114723dbac57b8e3b955a9">00062</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TEXTURE_QUALITY_32BIT 32</span> <a name="l00063"></a>00063 <span class="preprocessor"></span> <a name="l00064"></a><a class="code" href="a01695.html">00064</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a> : <span class="keyword">public</span> <a class="code" href="a00727.html" title="Generic algorithm superclass for image algs.">vtkImageAlgorithm</a> <a name="l00065"></a>00065 { <a name="l00066"></a>00066 <span class="keyword">public</span>: <a name="l00067"></a>00067 <span class="keyword">static</span> <a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a> *<a class="code" href="a00101.html#06d80d8d4aa1a4856135fa003845be82">New</a>(); <a name="l00068"></a><a class="code" href="a01695.html#5203cac3c6af1c41a036f950c10d7da4">00068</a> vtkTypeRevisionMacro(<a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a>,<a class="code" href="a00727.html" title="Generic algorithm superclass for image algs.">vtkImageAlgorithm</a>); <a name="l00069"></a>00069 <span class="keywordtype">void</span> <a class="code" href="a00727.html#24f67bbfad1ac731eb64f5172cf30af3">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00070"></a>00070 <a name="l00074"></a>00074 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Render(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *ren); <a name="l00075"></a>00075 <a name="l00079"></a><a class="code" href="a01695.html#9e3ddd234af8872cb5f135f533a7afec">00079</a> <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="l00080"></a>00080 <a name="l00084"></a><a class="code" href="a01695.html#72b42762fe336b76f058da8b0392b407">00084</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> Load(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *) {}; <a name="l00085"></a>00085 <a name="l00087"></a>00087 <a name="l00089"></a>00089 vtkGetMacro(Repeat,<span class="keywordtype">int</span>); <a name="l00090"></a>00090 vtkSetMacro(Repeat,<span class="keywordtype">int</span>); <a name="l00091"></a>00091 vtkBooleanMacro(Repeat,<span class="keywordtype">int</span>); <a name="l00093"></a>00093 <a name="l00095"></a>00095 <a name="l00098"></a>00098 vtkGetMacro(EdgeClamp,<span class="keywordtype">int</span>); <a name="l00099"></a>00099 vtkSetMacro(EdgeClamp,<span class="keywordtype">int</span>); <a name="l00100"></a>00100 vtkBooleanMacro(EdgeClamp,<span class="keywordtype">int</span>); <a name="l00102"></a>00102 <a name="l00104"></a>00104 <a name="l00105"></a>00105 vtkGetMacro(Interpolate,<span class="keywordtype">int</span>); <a name="l00106"></a>00106 vtkSetMacro(Interpolate,<span class="keywordtype">int</span>); <a name="l00107"></a>00107 vtkBooleanMacro(Interpolate,<span class="keywordtype">int</span>); <a name="l00109"></a>00109 <a name="l00111"></a>00111 <a name="l00113"></a>00113 vtkSetMacro(Quality,<span class="keywordtype">int</span>); <a name="l00114"></a>00114 vtkGetMacro(Quality,<span class="keywordtype">int</span>); <a name="l00115"></a><a class="code" href="a01695.html#36d284112a535e1defa71b1f8a0453e6">00115</a> <span class="keywordtype">void</span> SetQualityToDefault() {this->SetQuality(<a class="code" href="a03561.html#c80949c1cb6f91c770a97aa946eb7dce">VTK_TEXTURE_QUALITY_DEFAULT</a>);}; <a name="l00116"></a><a class="code" href="a01695.html#6d3139ab0e9933c30714e8f47d7670e7">00116</a> <span class="keywordtype">void</span> SetQualityTo16Bit() {this->SetQuality(<a class="code" href="a03561.html#ed55f773dcfb1575ddb9e219a861ac3f">VTK_TEXTURE_QUALITY_16BIT</a>);}; <a name="l00117"></a><a class="code" href="a01695.html#a5a5b5914d57adea3f02f9be57b31616">00117</a> <span class="keywordtype">void</span> SetQualityTo32Bit() {this->SetQuality(<a class="code" href="a03561.html#cda4e9b9a6114723dbac57b8e3b955a9">VTK_TEXTURE_QUALITY_32BIT</a>);}; <a name="l00119"></a>00119 <a name="l00121"></a>00121 <a name="l00127"></a>00127 vtkGetMacro(MapColorScalarsThroughLookupTable,<span class="keywordtype">int</span>); <a name="l00128"></a>00128 vtkSetMacro(MapColorScalarsThroughLookupTable,<span class="keywordtype">int</span>); <a name="l00129"></a>00129 vtkBooleanMacro(MapColorScalarsThroughLookupTable,<span class="keywordtype">int</span>); <a name="l00131"></a>00131 <a name="l00132"></a>00132 <span class="comment">//BTX</span> <a name="l00135"></a>00135 <span class="comment"></span> <a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> *<a class="code" href="a00727.html#06615baee9e1b31fce3417191acae50b">GetInput</a>(); <a name="l00136"></a>00136 <span class="comment">//ETX</span> <a name="l00137"></a>00137 <a name="l00139"></a>00139 <a name="l00140"></a>00140 <span class="keywordtype">void</span> SetLookupTable(<a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a> *); <a name="l00141"></a>00141 vtkGetObjectMacro(LookupTable,<a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a>); <a name="l00143"></a>00143 <a name="l00145"></a>00145 <a name="l00146"></a>00146 vtkGetObjectMacro(MappedScalars,<a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a>); <a name="l00148"></a>00148 <a name="l00150"></a>00150 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *MapScalarsToColors (<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *scalars); <a name="l00151"></a>00151 <a name="l00153"></a>00153 <a name="l00155"></a>00155 <span class="keywordtype">void</span> SetTransform(<a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a> *transform); <a name="l00156"></a>00156 vtkGetObjectMacro(<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fff3c18ad1157bfb059d04b59dd18eae9">Transform</a>, <a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a>); <a name="l00158"></a>00158 <a name="l00160"></a>00160 <a name="l00163"></a><a class="code" href="a01695.html#9986d6a2cad0d865011f39e7a3c16c90">00163</a> <span class="keyword">enum</span> <a class="code" href="a01695.html#9986d6a2cad0d865011f39e7a3c16c90">VTKTextureBlendingMode</a> <a name="l00164"></a>00164 { <a name="l00165"></a><a class="code" href="a01695.html#9986d6a2cad0d865011f39e7a3c16c90981beae082832f6fbbc8b1cc174f6950">00165</a> VTK_TEXTURE_BLENDING_MODE_NONE = 0, <a name="l00166"></a><a class="code" href="a01695.html#9986d6a2cad0d865011f39e7a3c16c905c714fb55d7bd8fef164c4d17e9899cd">00166</a> VTK_TEXTURE_BLENDING_MODE_REPLACE, <a name="l00167"></a><a class="code" href="a01695.html#9986d6a2cad0d865011f39e7a3c16c90361ec4e4ee9ff54c0dfa6714d1b639c8">00167</a> VTK_TEXTURE_BLENDING_MODE_MODULATE, <a name="l00168"></a><a class="code" href="a01695.html#9986d6a2cad0d865011f39e7a3c16c903f1a6c85ec0e318f0940c033cfb42b4c">00168</a> VTK_TEXTURE_BLENDING_MODE_ADD, <a name="l00169"></a><a class="code" href="a01695.html#9986d6a2cad0d865011f39e7a3c16c90ce74b557e2553e755e0c596d79c30813">00169</a> VTK_TEXTURE_BLENDING_MODE_ADD_SIGNED, <a name="l00170"></a><a class="code" href="a01695.html#9986d6a2cad0d865011f39e7a3c16c9092a4368a8e972aa5303a8bf26c7884f9">00170</a> VTK_TEXTURE_BLENDING_MODE_INTERPOLATE, <a name="l00171"></a><a class="code" href="a01695.html#9986d6a2cad0d865011f39e7a3c16c909589c3cd9a589084fd2bef2fc98b89ab">00171</a> VTK_TEXTURE_BLENDING_MODE_SUBTRACT <a name="l00172"></a>00172 }; <a name="l00173"></a>00173 <span class="comment">//ETX</span> <a name="l00175"></a>00175 <span class="comment"></span> <a name="l00177"></a>00177 <a name="l00179"></a>00179 vtkGetMacro(BlendingMode, <span class="keywordtype">int</span>); <a name="l00180"></a>00180 vtkSetMacro(BlendingMode, <span class="keywordtype">int</span>); <a name="l00182"></a>00182 <a name="l00184"></a>00184 <a name="l00189"></a>00189 vtkGetMacro(RestrictPowerOf2ImageSmaller,<span class="keywordtype">int</span>); <a name="l00190"></a>00190 vtkSetMacro(RestrictPowerOf2ImageSmaller,<span class="keywordtype">int</span>); <a name="l00191"></a>00191 vtkBooleanMacro(RestrictPowerOf2ImageSmaller,<span class="keywordtype">int</span>); <a name="l00193"></a>00193 <span class="keyword">protected</span>: <a name="l00194"></a>00194 <a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a>(); <a name="l00195"></a>00195 ~<a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a>(); <a name="l00196"></a>00196 <a name="l00197"></a><a class="code" href="a01695.html#0ed9382323f7a40e854f411a71b9f744">00197</a> <span class="keywordtype">int</span> Repeat; <a name="l00198"></a><a class="code" href="a01695.html#ffd895228160d73eb05b52468941891b">00198</a> <span class="keywordtype">int</span> EdgeClamp; <a name="l00199"></a><a class="code" href="a01695.html#171aa602bf9bbaba6a5e0ec547a81457">00199</a> <span class="keywordtype">int</span> Interpolate; <a name="l00200"></a><a class="code" href="a01695.html#340154a4d1e22a1b2a9b9b59eb952828">00200</a> <span class="keywordtype">int</span> Quality; <a name="l00201"></a><a class="code" href="a01695.html#f1d7948285ca193c63283af2fe132011">00201</a> <span class="keywordtype">int</span> MapColorScalarsThroughLookupTable; <a name="l00202"></a><a class="code" href="a01695.html#f0727fd06d354adefc5b81ba57948fd5">00202</a> <a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a> *LookupTable; <a name="l00203"></a><a class="code" href="a01695.html#69012a52fd352184e371cba92c384b9d">00203</a> <a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *MappedScalars; <a name="l00204"></a><a class="code" href="a01695.html#a3605e86ef084e2710d7796f8fa87885">00204</a> <a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a> *<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fff3c18ad1157bfb059d04b59dd18eae9">Transform</a>; <a name="l00205"></a>00205 <a name="l00206"></a><a class="code" href="a01695.html#903872145dd3e87bc672f7ef0bd9c5f2">00206</a> <span class="keywordtype">int</span> BlendingMode; <a name="l00207"></a><a class="code" href="a01695.html#2dd863e25d50b4397f228e07561f04a0">00207</a> <span class="keywordtype">int</span> RestrictPowerOf2ImageSmaller; <a name="l00208"></a>00208 <span class="comment">// this is to duplicated the previous behavior of SelfCreatedLookUpTable</span> <a name="l00209"></a><a class="code" href="a01695.html#83374cf6eb8fcf184bf7aa9b32a6fc4d">00209</a> <span class="keywordtype">int</span> SelfAdjustingTableRange; <a name="l00210"></a>00210 <span class="keyword">private</span>: <a name="l00211"></a>00211 <a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a>(<span class="keyword">const</span> <a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a>&); <span class="comment">// Not implemented.</span> <a name="l00212"></a>00212 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a>&); <span class="comment">// Not implemented.</span> <a name="l00213"></a>00213 }; <a name="l00214"></a>00214 <a name="l00215"></a>00215 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:49 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>