Sophie

Sophie

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

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: dox/Rendering/vtkOpenGLImageActor.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&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><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/vtkOpenGLImageActor.h</h1><a href="a03491.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: vtkOpenGLImageActor.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="l00022"></a>00022 <span class="preprocessor">#ifndef __vtkOpenGLImageActor_h</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define __vtkOpenGLImageActor_h</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="a03416.html">vtkImageActor.h</a>"</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="keyword">class </span><a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a>;
<a name="l00028"></a>00028 <span class="keyword">class </span><a class="code" href="a01119.html" title="OpenGL renderer.">vtkOpenGLRenderer</a>;
<a name="l00029"></a>00029 <span class="keyword">class </span><a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a>;
<a name="l00030"></a>00030 
<a name="l00031"></a><a class="code" href="a01109.html">00031</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a01109.html" title="OpenGL texture map.">vtkOpenGLImageActor</a> : <span class="keyword">public</span> <a class="code" href="a00725.html" title="draw an image (data &amp;amp; properties) in a rendered 3D scene">vtkImageActor</a>
<a name="l00032"></a>00032 {
<a name="l00033"></a>00033 <span class="keyword">public</span>:
<a name="l00034"></a>00034   <span class="keyword">static</span> <a class="code" href="a01109.html" title="OpenGL texture map.">vtkOpenGLImageActor</a> *<a class="code" href="a00725.html#4fe63eb7dd490e950a9c7a154b7206db">New</a>();
<a name="l00035"></a><a class="code" href="a01109.html#f94b14149884b4af7589dd58a094c948">00035</a>   vtkTypeRevisionMacro(<a class="code" href="a01109.html" title="OpenGL texture map.">vtkOpenGLImageActor</a>,<a class="code" href="a00725.html" title="draw an image (data &amp;amp; properties) in a rendered 3D scene">vtkImageActor</a>);
<a name="l00036"></a>00036   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00725.html#f22ddfd9402bd9958815d4549b0a825b">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00037"></a>00037 
<a name="l00039"></a>00039   <span class="keywordtype">void</span> Load(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *ren);
<a name="l00040"></a>00040   
<a name="l00042"></a>00042   <span class="keywordtype">void</span> <a class="code" href="a00725.html#ec7b007ba985cdc3c4d2fa1758b9de5d">Render</a>(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *ren);
<a name="l00043"></a>00043 
<a name="l00048"></a>00048   <span class="keywordtype">void</span> <a class="code" href="a01317.html#f2034bece75524dfa42553396d208a22">ReleaseGraphicsResources</a>(<a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a> *);
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <span class="keyword">protected</span>:
<a name="l00051"></a>00051   <a class="code" href="a01109.html" title="OpenGL texture map.">vtkOpenGLImageActor</a>();
<a name="l00052"></a>00052   ~<a class="code" href="a01109.html" title="OpenGL texture map.">vtkOpenGLImageActor</a>();
<a name="l00053"></a>00053 
<a name="l00054"></a>00054   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *MakeDataSuitable(<span class="keywordtype">int</span> &amp;xsize, <span class="keywordtype">int</span> &amp;ysize,
<a name="l00055"></a>00055                                   <span class="keywordtype">int</span> &amp;release, <span class="keywordtype">int</span> &amp;reuseTexture);
<a name="l00056"></a>00056 
<a name="l00057"></a><a class="code" href="a01109.html#391f91dfc7e8aff5b00cf8f7e33a6351">00057</a>   <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a>   LoadTime;
<a name="l00058"></a><a class="code" href="a01109.html#fb73d9388bbde12cb5a6a86f7143f2b1">00058</a>   <span class="keywordtype">long</span>          Index;
<a name="l00059"></a><a class="code" href="a01109.html#939bf7e6e2c6e3788fb283125e1e347d">00059</a>   <a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a> *RenderWindow;   <span class="comment">// RenderWindow used for previous render</span>
<a name="l00060"></a><a class="code" href="a01109.html#458bb45b6f9a87127a8cd66ab2d41b38">00060</a>   <span class="keywordtype">double</span> Coords[12];
<a name="l00061"></a><a class="code" href="a01109.html#ca4a4ae0814e9a1aba7ba9f9774e44b6">00061</a>   <span class="keywordtype">double</span> TCoords[8];
<a name="l00062"></a><a class="code" href="a01109.html#af83f071de3f25cfd6e89b8cb1efbe31">00062</a>   <span class="keywordtype">int</span> TextureSize[2];
<a name="l00063"></a>00063   
<a name="l00064"></a>00064   <span class="comment">// Non-recursive internal method</span>
<a name="l00065"></a>00065   <span class="keywordtype">void</span> InternalRender(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *ren);
<a name="l00066"></a>00066   
<a name="l00067"></a>00067   <span class="comment">// Is a certain size texture supported?</span>
<a name="l00068"></a>00068   <span class="keywordtype">int</span> TextureSizeOK( <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>[2] );
<a name="l00069"></a>00069   
<a name="l00070"></a>00070 <span class="keyword">private</span>:
<a name="l00071"></a>00071   <a class="code" href="a01109.html" title="OpenGL texture map.">vtkOpenGLImageActor</a>(<span class="keyword">const</span> <a class="code" href="a01109.html" title="OpenGL texture map.">vtkOpenGLImageActor</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00072"></a>00072   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01109.html" title="OpenGL texture map.">vtkOpenGLImageActor</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00073"></a>00073 };
<a name="l00074"></a>00074 
<a name="l00075"></a>00075 <span class="preprocessor">#endif</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&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>