Sophie

Sophie

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

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/VolumeRendering/vtkOpenGLHAVSVolumeMapper.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/VolumeRendering/vtkOpenGLHAVSVolumeMapper.h</h1><a href="a03616.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: vtkOpenGLHAVSVolumeMapper.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">/* Copyright 2005, 2006 by University of Utah. */</span>
<a name="l00017"></a>00017 
<a name="l00117"></a>00117 <span class="preprocessor">#ifndef __vtkOpenGLHAVSVolumeMapper_h</span>
<a name="l00118"></a>00118 <span class="preprocessor"></span><span class="preprocessor">#define __vtkOpenGLHAVSVolumeMapper_h</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span>
<a name="l00120"></a>00120 <span class="preprocessor">#include "<a class="code" href="a03612.html">vtkHAVSVolumeMapper.h</a>"</span>
<a name="l00121"></a>00121 
<a name="l00122"></a>00122 <span class="keyword">class </span><a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>;
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 
<a name="l00125"></a><a class="code" href="a01108.html">00125</a> <span class="keyword">class </span><a class="code" href="a02170.html#4c512a1c00e5052ca1bbef09929dba95">VTK_VOLUMERENDERING_EXPORT</a> <a class="code" href="a01108.html" title="Hardware-Assisted Visibility Sorting unstructured grid mapper, OpenGL implementation...">vtkOpenGLHAVSVolumeMapper</a> : <span class="keyword">public</span> <a class="code" href="a00682.html" title="Hardware-Assisted Visibility Sorting unstructured grid mapper.">vtkHAVSVolumeMapper</a>
<a name="l00126"></a>00126 {
<a name="l00127"></a>00127 <span class="keyword">public</span>:
<a name="l00128"></a>00128   <span class="keyword">static</span> <a class="code" href="a01108.html" title="Hardware-Assisted Visibility Sorting unstructured grid mapper, OpenGL implementation...">vtkOpenGLHAVSVolumeMapper</a> *<a class="code" href="a00682.html#5410aae2bf4c0e9125d21afd7e80b4ac">New</a>();
<a name="l00129"></a>00129   vtkTypeRevisionMacro(<a class="code" href="a01108.html" title="Hardware-Assisted Visibility Sorting unstructured grid mapper, OpenGL implementation...">vtkOpenGLHAVSVolumeMapper</a>,
<a name="l00130"></a><a class="code" href="a01108.html#d92c311a35dbf06845f7a8afef40967c">00130</a>                        <a class="code" href="a00682.html" title="Hardware-Assisted Visibility Sorting unstructured grid mapper.">vtkHAVSVolumeMapper</a>);
<a name="l00131"></a>00131   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00682.html#aa8d4d60ba802f90abf242443f05265d">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00132"></a>00132   
<a name="l00134"></a>00134   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01803.html#9046c63e2b21cc2875ea2cd459e3e957">Render</a>(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *ren, <a class="code" href="a01839.html" title="represents a volume (data &amp;amp; properties) in a rendered scene">vtkVolume</a> *vol);
<a name="l00135"></a>00135 
<a name="l00138"></a>00138   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01803.html#345fa14b20de721f55c42d6aa2e3e7a4">ReleaseGraphicsResources</a>(<a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a> *);
<a name="l00139"></a>00139 
<a name="l00142"></a>00142   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00682.html#70887486faf416bcf6ccc1ad971d03cd">SetGPUDataStructures</a>(<span class="keywordtype">bool</span>);
<a name="l00143"></a>00143 
<a name="l00148"></a>00148   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="a00682.html#42cf785da0a4ba92ac2a1568438506ff">SupportedByHardware</a>();
<a name="l00149"></a>00149 <span class="keyword">protected</span>:
<a name="l00150"></a>00150 
<a name="l00151"></a>00151   <a class="code" href="a01108.html" title="Hardware-Assisted Visibility Sorting unstructured grid mapper, OpenGL implementation...">vtkOpenGLHAVSVolumeMapper</a>();
<a name="l00152"></a>00152   ~<a class="code" href="a01108.html" title="Hardware-Assisted Visibility Sorting unstructured grid mapper, OpenGL implementation...">vtkOpenGLHAVSVolumeMapper</a>();
<a name="l00153"></a>00153   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01803.html#b2e75f52fdd5ae09331226eb27690594">FillInputPortInformation</a>(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21023da246d4a744e861548382bb79fad81">info</a>);
<a name="l00154"></a>00154 
<a name="l00155"></a>00155 <span class="comment">//BTX</span>
<a name="l00156"></a>00156   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00682.html#06c87d87a1fad56ae1bc87b193c8eb0b">Initialize</a>(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *ren, <a class="code" href="a01839.html" title="represents a volume (data &amp;amp; properties) in a rendered scene">vtkVolume</a> *vol);
<a name="l00157"></a>00157   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00682.html#905df38b6f232475214f85d18e27ee7b">InitializeLookupTables</a>(<a class="code" href="a01839.html" title="represents a volume (data &amp;amp; properties) in a rendered scene">vtkVolume</a> *vol);
<a name="l00158"></a>00158   <span class="keywordtype">void</span> InitializeGPUDataStructures();
<a name="l00159"></a>00159   <span class="keywordtype">void</span> InitializeShaders();
<a name="l00160"></a>00160   <span class="keywordtype">void</span> DeleteShaders();
<a name="l00161"></a>00161   <span class="keywordtype">void</span> InitializeFramebufferObject();
<a name="l00162"></a>00162 
<a name="l00163"></a>00163   <span class="keywordtype">void</span> RenderHAVS(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *ren);
<a name="l00164"></a>00164   <span class="keywordtype">void</span> SetupFBOZBuffer(<span class="keywordtype">int</span> screenWidth, <span class="keywordtype">int</span> screenHeight, <span class="keywordtype">float</span> depthNear, <span class="keywordtype">float</span> depthFar, 
<a name="l00165"></a>00165                        <span class="keywordtype">float</span> *zbuffer);
<a name="l00166"></a>00166   <span class="keywordtype">void</span> SetupFBOMRT();
<a name="l00167"></a>00167   <span class="keywordtype">void</span> DrawFBOInit(<span class="keywordtype">int</span> screenWidth, <span class="keywordtype">int</span> screenHeight, <span class="keywordtype">float</span> depthNear, <span class="keywordtype">float</span> depthFar);
<a name="l00168"></a>00168   <span class="keywordtype">void</span> DrawFBOGeometry();
<a name="l00169"></a>00169   <span class="keywordtype">void</span> DrawFBOFlush(<span class="keywordtype">int</span> screenWidth, <span class="keywordtype">int</span> screenHeight, <span class="keywordtype">float</span> depthNear, <span class="keywordtype">float</span> depthFar);
<a name="l00170"></a>00170   <span class="keywordtype">void</span> DrawBlend(<span class="keywordtype">int</span> screenWidth, <span class="keywordtype">int</span> screenHeight, <span class="keywordtype">float</span> depthNear, <span class="keywordtype">float</span> depthFar);
<a name="l00171"></a>00171 
<a name="l00172"></a>00172   <span class="keywordtype">void</span> CheckOpenGLError(<span class="keyword">const</span> <span class="keywordtype">char</span> *str);
<a name="l00173"></a>00173 
<a name="l00174"></a>00174   <span class="comment">// GPU</span>
<a name="l00175"></a><a class="code" href="a01108.html#1e49eda1a0fd298227ade6f0bd7e717c">00175</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> VBOVertexName;
<a name="l00176"></a><a class="code" href="a01108.html#0b64e05ef0fe016479a3423806e51855">00176</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> VBOTexCoordName;
<a name="l00177"></a><a class="code" href="a01108.html#a1d4bda2b2d7bd172ca14084ba9fb36c">00177</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> VBOVertexIndexName;
<a name="l00178"></a><a class="code" href="a01108.html#8e59d5999aac97f3938c1944df2a98e7">00178</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> VertexProgram;
<a name="l00179"></a><a class="code" href="a01108.html#8028c89f088fd0df896afbe953e079a4">00179</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> FragmentProgramBegin;
<a name="l00180"></a><a class="code" href="a01108.html#5fdc77c8bc8668dd8979f4a0a2c20bba">00180</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> FragmentProgram;
<a name="l00181"></a><a class="code" href="a01108.html#5421d32e19066814566f940fa9a148a2">00181</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> FragmentProgramEnd;
<a name="l00182"></a><a class="code" href="a01108.html#a6f02ac51a17afdcace52f686278ca2d">00182</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> FramebufferObject;
<a name="l00183"></a><a class="code" href="a01108.html#6b67d7475fa6016196d8194b8152764f">00183</a>   <span class="keywordtype">int</span> FramebufferObjectSize;
<a name="l00184"></a><a class="code" href="a01108.html#19b70f5433f10b91a5f049fc03c7f58d">00184</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> FramebufferTextures[4];
<a name="l00185"></a><a class="code" href="a01108.html#5d335780b0a5318ea22187b7ff0b46bb">00185</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> DepthTexture;
<a name="l00186"></a>00186 
<a name="l00187"></a>00187   <span class="comment">// Lookup Tables</span>
<a name="l00188"></a><a class="code" href="a01108.html#a44b2dc125ea3fd1e8c11faf17331940">00188</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> PsiTableTexture;
<a name="l00189"></a><a class="code" href="a01108.html#73abd593331440d29858c21fba6d8cfb">00189</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> TransferFunctionTexture;
<a name="l00190"></a>00190 <span class="comment">//ETX</span>
<a name="l00191"></a>00191 
<a name="l00192"></a>00192 <span class="keyword">private</span>:
<a name="l00193"></a>00193   <a class="code" href="a01108.html" title="Hardware-Assisted Visibility Sorting unstructured grid mapper, OpenGL implementation...">vtkOpenGLHAVSVolumeMapper</a>(<span class="keyword">const</span> <a class="code" href="a01108.html" title="Hardware-Assisted Visibility Sorting unstructured grid mapper, OpenGL implementation...">vtkOpenGLHAVSVolumeMapper</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00194"></a>00194   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01108.html" title="Hardware-Assisted Visibility Sorting unstructured grid mapper, OpenGL implementation...">vtkOpenGLHAVSVolumeMapper</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00195"></a>00195 };
<a name="l00196"></a>00196 
<a name="l00197"></a>00197 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35: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>