Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 60f1dc962abad0f3b492991a4fbef9be > files > 1705

vtk-doc-5.4.2-5mdv2010.0.noarch.rpm

<!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: vtkTextureUnitManager Class Reference</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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="classes.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>vtkTextureUnitManager Class Reference</h1><!-- doxytag: class="vtkTextureUnitManager" --><!-- doxytag: inherits="vtkObject" --><code>#include &lt;<a class="el" href="a05354.html">vtkTextureUnitManager.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for vtkTextureUnitManager:</div>
<div class="dynsection">
<p><center><img src="a15174.png" border="0" usemap="#a15175" alt="Inheritance graph"></center>
<map name="a15175">
<area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="48,80,128,107"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="33,6,143,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<div class="dynheader">
Collaboration diagram for vtkTextureUnitManager:</div>
<div class="dynsection">
<p><center><img src="a15176.png" border="0" usemap="#a15177" alt="Collaboration graph"></center>
<map name="a15177">
<area shape="rect" href="a01120.html" title="OpenGL rendering window." alt="" coords="2591,269,2775,296"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="249,845,329,872"><area shape="rect" href="a01886.html" title="window superclass for vtkRenderWindow" alt="" coords="1869,768,1957,795"><area shape="rect" href="a00285.html" title="create and manipulate unsorted lists of objects" alt="" coords="984,1275,1085,1301"><area shape="rect" href="a00286.html" title="vtkCollectionElement" alt="" coords="576,1223,725,1249"><area shape="rect" href="a01491.html" title="platform&#45;independent render window interaction including picking and frame rate control..." alt="" coords="3269,625,3461,652"><area shape="rect" href="a00902.html" title="an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor..." alt="" coords="3925,629,4080,656"><area shape="rect" href="a01091.html" title="manage contention for cursors and other resources" alt="" coords="3619,583,3768,609"><area shape="rect" href="a01833.html" title="abstract specification for Viewports" alt="" coords="2636,1271,2729,1297"><area shape="rect" href="a01317.html" title="abstract superclass for all actors, volumes and annotations" alt="" coords="1879,920,1948,947"><area shape="rect" href="a00872.html" title="Store vtkAlgorithm input/output information." alt="" coords="596,1025,705,1052"><area shape="rect" href="a01149.html" title="Abstract class for drawing poly data." alt="" coords="993,975,1076,1001"><area shape="rect" href="a00681.html" title="manager for OpenGL&#45;based selection." alt="" coords="3032,1103,3181,1129"><area shape="rect" href="a01482.html" title="Render the props of a vtkRenderer." alt="" coords="1167,1156,1316,1183"><area shape="rect" href="a01485.html" title="Perform part of the rendering of a vtkRenderer." alt="" coords="779,1409,893,1436"><area shape="rect" href="a00954.html" title="a virtual light for 3D rendering" alt="" coords="1000,1579,1069,1605"><area shape="rect" href="a00998.html" title="represent and manipulate 4x4 transformation matrices" alt="" coords="601,1579,700,1605"><area shape="rect" href="a00227.html" title="a virtual camera for 3D rendering" alt="" coords="1869,1683,1957,1709"><area shape="rect" href="a00086.html" title="define API for picking subclasses" alt="" coords="3043,765,3171,792"><area shape="rect" href="a01150.html" title="An adapter between a vtkPainter and a rendering device." alt="" coords="1155,616,1328,643"><area shape="rect" href="a01107.html" title="OpenGL rendering window." alt="" coords="2196,320,2393,347"><area shape="rect" href="a01105.html" title="Interface class for querying and using OpenGL extensions." alt="" coords="1811,208,2016,235"><area shape="rect" href="a01870.html" title="Non&#45;templated superclass for vtkWeakPointer." alt="" coords="576,211,725,237"><area shape="rect" href="a00720.html" title="list of point or cell ids" alt="" coords="2069,107,2141,133"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="7,1883,116,1909"><area shape="rect" href="a00291.html" title="superclass for callback/observer methods" alt="" coords="417,1927,521,1953"><area shape="rect" href="a00884.html" title="internal structure for vtkInformation" alt="" coords="208,1797,371,1824"><area shape="rect" href="a01719.html" title="record modification and/or execution time" alt="" coords="7,1045,116,1072"><area shape="rect" href="a01480.html" title="abstract specification for renderers" alt="" coords="2828,1193,2924,1220"><area shape="rect" href="a01489.html" title="create a window for renderers to draw into" alt="" coords="2228,649,2361,676"><area shape="rect" href="a01481.html" title="a list of renderers" alt="" coords="1629,860,1787,887"><area shape="rect" href="a01321.html" title="a list of Props" alt="" coords="1849,1183,1977,1209"><area shape="rect" href="a00143.html" title="a list of nodes that form an assembly path" alt="" coords="2232,1412,2357,1439"><area shape="rect" href="a00144.html" title="a list of lists of props representing an assembly hierarchy" alt="" coords="1412,1072,1545,1099"><area shape="rect" href="a00956.html" title="a list of lights" alt="" coords="2040,1472,2171,1499"><area shape="rect" href="a00346.html" title="a list of Cullers" alt="" coords="2424,1508,2560,1535"><area shape="rect" href="a00226.html" title="supports function callbacks" alt="" coords="759,1924,913,1951"><area shape="rect" href="a00094.html" title="a list of 2D actors" alt="" coords="2220,1311,2369,1337"><area shape="rect" href="a00095.html" title="a list of actors" alt="" coords="2425,1129,2559,1156"><area shape="rect" href="a01841.html" title="a list of volumes" alt="" coords="2419,1179,2565,1205"><area shape="rect" href="a00717.html" title="DEPRECATED A vtkPolyDataPainter that colors each polygon with a color coded integer..." alt="" coords="2213,1012,2376,1039"><area shape="rect" href="a01723.html" title="describes linear transformations via a 4x4 matrix" alt="" coords="1427,1477,1531,1504"><area shape="rect" href="a01268.html" title="Abstract class for drawing poly data." alt="" coords="1639,1051,1777,1077"><area shape="rect" href="a00722.html" title="dynamic, self&#45;adjusting array of vtkIdType" alt="" coords="1856,1048,1971,1075"><area shape="rect" href="a00356.html" title="abstract superclass for arrays of numeric data" alt="" coords="1428,1123,1529,1149"><area shape="rect" href="a00696.html" title="superclass for homogeneous transformations" alt="" coords="939,1656,1131,1683"><area shape="rect" href="a01207.html" title="describes a 4x4 matrix transformation" alt="" coords="1392,1693,1565,1720"><area shape="rect" href="a01869.html" title="vtkWeakPointer\&lt; vtkRenderWindow \&gt;" alt="" coords="1352,208,1605,235"><area shape="rect" href="a01869.html" title="a weak reference to a vtkObject." alt="" coords="960,211,1109,237"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="a15178.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
allocate/free texture units. 
<p>
<a class="el" href="a01702.html" title="allocate/free texture units.">vtkTextureUnitManager</a> is a central place used by shaders to reserve a texture unit ( <a class="el" href="a01702.html#ecfd1f82553ffeecdd913c9e6a666777">Allocate()</a> ) or release it ( <a class="el" href="a01702.html#27ca6b3a74a4a371eed4ae7ec935d531">Free()</a> ).<p>
Don't create a <a class="el" href="a01702.html" title="allocate/free texture units.">vtkTextureUnitManager</a>, query it from the <a class="el" href="a01120.html" title="OpenGL rendering window.">vtkOpenGLRenderWindow</a><p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="a01120.html" title="OpenGL rendering window.">vtkOpenGLRenderWindow</a> </dd></dl>

<p>Definition at line <a class="el" href="a05354.html#l00036">36</a> of file <a class="el" href="a05354.html">vtkTextureUnitManager.h</a>.</p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="a01084.html">vtkObject</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#23dd97fe32e99152871b983753944390">Superclass</a></td></tr>

<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#b9fb421d8861183a0f47efed181a034a">GetClassName</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#c111d50ea555d04cc37c162a0c6edff2">IsA</a> (const char *type)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#0b78ceac3a23e1cd878901ac3e81d956">PrintSelf</a> (ostream &amp;os, <a class="el" href="a00869.html">vtkIndent</a> indent)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#8b8b5fea1fb19184399aa893f160dcd3">GetNumberOfTextureUnits</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#ecfd1f82553ffeecdd913c9e6a666777">Allocate</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#7e259bb791c5324d0bba0ffbafe8c034">IsAllocated</a> (int textureUnitId)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#27ca6b3a74a4a371eed4ae7ec935d531">Free</a> (int textureUnitId)</td></tr>

<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#0da9050bd2525085f64f5c9274a2138e">SetContext</a> (<a class="el" href="a01120.html">vtkOpenGLRenderWindow</a> *context)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="a01120.html">vtkOpenGLRenderWindow</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#892a0d79e96f5120d550ca4274edc7e1">GetContext</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#a6b26b1ca812108a76bfa68c323fa3b6">IsTypeOf</a> (const char *type)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="a01702.html">vtkTextureUnitManager</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#822dc431655ee78ce92797a4e38f6ec4">SafeDownCast</a> (<a class="el" href="a01084.html">vtkObject</a> *o)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="a01702.html">vtkTextureUnitManager</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#34c97a9400c3621d99b2ec953cc15c12">New</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#52f759b1e08d235ac71b831ecb0e6eac">vtkTextureUnitManager</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#0b273b113693676a4fbcafcf61a206ef">~vtkTextureUnitManager</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#9d863cee3416c4cb9bb580c97cbf5dc4">DeleteTable</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a01120.html">vtkOpenGLRenderWindow</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#5e2d5d12be4162b21c955b8050d5a182">Context</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#d2dfe8cd7bb2b21cc0db0808402d6760">NumberOfTextureUnits</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01702.html#99d471daec52f2cbd0c385ecb14ab5a6">TextureUnits</a></td></tr>

</table>
<hr><h2>Member Typedef Documentation</h2>
<a class="anchor" name="23dd97fe32e99152871b983753944390"></a><!-- doxytag: member="vtkTextureUnitManager::Superclass" ref="23dd97fe32e99152871b983753944390" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="a01084.html">vtkObject</a> <a class="el" href="a01084.html">vtkTextureUnitManager::Superclass</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Reimplemented from <a class="el" href="a01084.html#11429dee69f4b562e03e07b453dae9b5">vtkObject</a>.</p>

<p>Definition at line <a class="el" href="a05354.html#l00039">39</a> of file <a class="el" href="a05354.html">vtkTextureUnitManager.h</a>.</p>

</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="52f759b1e08d235ac71b831ecb0e6eac"></a><!-- doxytag: member="vtkTextureUnitManager::vtkTextureUnitManager" ref="52f759b1e08d235ac71b831ecb0e6eac" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vtkTextureUnitManager::vtkTextureUnitManager           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Default constructor. 
</div>
</div><p>
<a class="anchor" name="0b273b113693676a4fbcafcf61a206ef"></a><!-- doxytag: member="vtkTextureUnitManager::~vtkTextureUnitManager" ref="0b273b113693676a4fbcafcf61a206ef" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vtkTextureUnitManager::~vtkTextureUnitManager           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destructor. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="b9fb421d8861183a0f47efed181a034a"></a><!-- doxytag: member="vtkTextureUnitManager::GetClassName" ref="b9fb421d8861183a0f47efed181a034a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* vtkTextureUnitManager::GetClassName           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Reimplemented from <a class="el" href="a01084.html#d95975c85c2896ea32ff4cf1f8de0886">vtkObject</a>.</p>

</div>
</div><p>
<a class="anchor" name="a6b26b1ca812108a76bfa68c323fa3b6"></a><!-- doxytag: member="vtkTextureUnitManager::IsTypeOf" ref="a6b26b1ca812108a76bfa68c323fa3b6" args="(const char *type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int vtkTextureUnitManager::IsTypeOf           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. 
<p>Reimplemented from <a class="el" href="a01084.html#e9548a248bce0f02f73bbcccd0a9489e">vtkObject</a>.</p>

</div>
</div><p>
<a class="anchor" name="c111d50ea555d04cc37c162a0c6edff2"></a><!-- doxytag: member="vtkTextureUnitManager::IsA" ref="c111d50ea555d04cc37c162a0c6edff2" args="(const char *type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int vtkTextureUnitManager::IsA           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. 
<p>Reimplemented from <a class="el" href="a01084.html#831e57b04e46827a7098aa81abadee69">vtkObject</a>.</p>

</div>
</div><p>
<a class="anchor" name="822dc431655ee78ce92797a4e38f6ec4"></a><!-- doxytag: member="vtkTextureUnitManager::SafeDownCast" ref="822dc431655ee78ce92797a4e38f6ec4" args="(vtkObject *o)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="a01702.html">vtkTextureUnitManager</a>* vtkTextureUnitManager::SafeDownCast           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a01084.html">vtkObject</a> *&nbsp;</td>
          <td class="paramname"> <em>o</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Reimplemented from <a class="el" href="a01084.html#bb9351f076544c427ee91229dce83abe">vtkObject</a>.</p>

</div>
</div><p>
<a class="anchor" name="0b78ceac3a23e1cd878901ac3e81d956"></a><!-- doxytag: member="vtkTextureUnitManager::PrintSelf" ref="0b78ceac3a23e1cd878901ac3e81d956" args="(ostream &amp;os, vtkIndent indent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkTextureUnitManager::PrintSelf           </td>
          <td>(</td>
          <td class="paramtype">ostream &amp;&nbsp;</td>
          <td class="paramname"> <em>os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00869.html">vtkIndent</a>&nbsp;</td>
          <td class="paramname"> <em>indent</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use <a class="el" href="a01085.html#edadf6378465fd81c2592ef64262e2a5">Print()</a> instead) but used in the hierarchical print process to combine the output of several classes. 
<p>Reimplemented from <a class="el" href="a01084.html#bf3dbb4154289b56a12483eee3866263">vtkObject</a>.</p>

</div>
</div><p>
<a class="anchor" name="34c97a9400c3621d99b2ec953cc15c12"></a><!-- doxytag: member="vtkTextureUnitManager::New" ref="34c97a9400c3621d99b2ec953cc15c12" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="a01702.html">vtkTextureUnitManager</a>* vtkTextureUnitManager::New           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. 
<p>Reimplemented from <a class="el" href="a01084.html#4d5b227267c076d6f9e38483370b6612">vtkObject</a>.</p>

</div>
</div><p>
<a class="anchor" name="0da9050bd2525085f64f5c9274a2138e"></a><!-- doxytag: member="vtkTextureUnitManager::SetContext" ref="0da9050bd2525085f64f5c9274a2138e" args="(vtkOpenGLRenderWindow *context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkTextureUnitManager::SetContext           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a01120.html">vtkOpenGLRenderWindow</a> *&nbsp;</td>
          <td class="paramname"> <em>context</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get/Set the context. This does not increase the reference count of the context to avoid reference loops. <a class="el" href="a01702.html#0da9050bd2525085f64f5c9274a2138e">SetContext()</a> may raise an error is the OpenGL context does not support the required OpenGL extensions. 
</div>
</div><p>
<a class="anchor" name="892a0d79e96f5120d550ca4274edc7e1"></a><!-- doxytag: member="vtkTextureUnitManager::GetContext" ref="892a0d79e96f5120d550ca4274edc7e1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="a01120.html">vtkOpenGLRenderWindow</a>* vtkTextureUnitManager::GetContext           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get/Set the context. This does not increase the reference count of the context to avoid reference loops. <a class="el" href="a01702.html#0da9050bd2525085f64f5c9274a2138e">SetContext()</a> may raise an error is the OpenGL context does not support the required OpenGL extensions. 
</div>
</div><p>
<a class="anchor" name="8b8b5fea1fb19184399aa893f160dcd3"></a><!-- doxytag: member="vtkTextureUnitManager::GetNumberOfTextureUnits" ref="8b8b5fea1fb19184399aa893f160dcd3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int vtkTextureUnitManager::GetNumberOfTextureUnits           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Number of texture units supported by the OpenGL context. 
</div>
</div><p>
<a class="anchor" name="ecfd1f82553ffeecdd913c9e6a666777"></a><!-- doxytag: member="vtkTextureUnitManager::Allocate" ref="ecfd1f82553ffeecdd913c9e6a666777" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int vtkTextureUnitManager::Allocate           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reserve a texture unit. It returns its number. It returns -1 if the allocation failed (because there is no more texture unit left). <dl class="post" compact><dt><b>Postcondition:</b></dt><dd>valid_result: result==-1 || result&gt;=0 &amp;&amp; result&lt;this-&gt;<a class="el" href="a01702.html#8b8b5fea1fb19184399aa893f160dcd3">GetNumberOfTextureUnits()</a>) <p>
allocated: result==-1 || this-&gt;IsAllocated(result) </dd></dl>

</div>
</div><p>
<a class="anchor" name="7e259bb791c5324d0bba0ffbafe8c034"></a><!-- doxytag: member="vtkTextureUnitManager::IsAllocated" ref="7e259bb791c5324d0bba0ffbafe8c034" args="(int textureUnitId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool vtkTextureUnitManager::IsAllocated           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>textureUnitId</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tell if texture unit `textureUnitId' is already allocated. <dl class="pre" compact><dt><b>Precondition:</b></dt><dd>valid_textureUnitId_range : textureUnitId&gt;=0 &amp;&amp; textureUnitId&lt;this-&gt;<a class="el" href="a01702.html#8b8b5fea1fb19184399aa893f160dcd3">GetNumberOfTextureUnits()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="27ca6b3a74a4a371eed4ae7ec935d531"></a><!-- doxytag: member="vtkTextureUnitManager::Free" ref="27ca6b3a74a4a371eed4ae7ec935d531" args="(int textureUnitId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void vtkTextureUnitManager::Free           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>textureUnitId</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Release a texture unit. <dl class="pre" compact><dt><b>Precondition:</b></dt><dd>valid_textureUnitId: textureUnitId&gt;=0 &amp;&amp; textureUnitId&lt;this-&gt;<a class="el" href="a01702.html#8b8b5fea1fb19184399aa893f160dcd3">GetNumberOfTextureUnits()</a> <p>
allocated_textureUnitId: this-&gt;IsAllocated(textureUnitId) </dd></dl>

</div>
</div><p>
<a class="anchor" name="9d863cee3416c4cb9bb580c97cbf5dc4"></a><!-- doxytag: member="vtkTextureUnitManager::DeleteTable" ref="9d863cee3416c4cb9bb580c97cbf5dc4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkTextureUnitManager::DeleteTable           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Delete the allocation table and check if it is not called before all the texture units have been released. 
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="5e2d5d12be4162b21c955b8050d5a182"></a><!-- doxytag: member="vtkTextureUnitManager::Context" ref="5e2d5d12be4162b21c955b8050d5a182" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a01120.html">vtkOpenGLRenderWindow</a>* <a class="el" href="a01702.html#5e2d5d12be4162b21c955b8050d5a182">vtkTextureUnitManager::Context</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="a05354.html#l00085">85</a> of file <a class="el" href="a05354.html">vtkTextureUnitManager.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="d2dfe8cd7bb2b21cc0db0808402d6760"></a><!-- doxytag: member="vtkTextureUnitManager::NumberOfTextureUnits" ref="d2dfe8cd7bb2b21cc0db0808402d6760" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="a01702.html#d2dfe8cd7bb2b21cc0db0808402d6760">vtkTextureUnitManager::NumberOfTextureUnits</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="a05354.html#l00087">87</a> of file <a class="el" href="a05354.html">vtkTextureUnitManager.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="99d471daec52f2cbd0c385ecb14ab5a6"></a><!-- doxytag: member="vtkTextureUnitManager::TextureUnits" ref="99d471daec52f2cbd0c385ecb14ab5a6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool* <a class="el" href="a01702.html#99d471daec52f2cbd0c385ecb14ab5a6">vtkTextureUnitManager::TextureUnits</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="a05354.html#l00088">88</a> of file <a class="el" href="a05354.html">vtkTextureUnitManager.h</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>dox/Rendering/<a class="el" href="a05354.html">vtkTextureUnitManager.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 19:39:50 2009 for VTK by&nbsp;
<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>