Sophie

Sophie

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

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/vtkVolumeRayCastMapper.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/vtkVolumeRayCastMapper.h</h1><a href="a03643.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: vtkVolumeRayCastMapper.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="l00028"></a>00028 <span class="preprocessor">#ifndef __vtkVolumeRayCastMapper_h</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define __vtkVolumeRayCastMapper_h</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#include "<a class="code" href="a03637.html">vtkVolumeMapper.h</a>"</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="a03641.html">vtkVolumeRayCastFunction.h</a>"</span> <span class="comment">// For vtkVolumeRayCastStaticInfo </span>
<a name="l00033"></a>00033                                       <span class="comment">// and vtkVolumeRayCastDynamicInfo</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include "<a class="code" href="a02021.html">vtkFastNumericConversion.h</a>"</span> <span class="comment">// for fast rounding and floor</span>
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="a00459.html" title="Superclass for gradient estimation.">vtkEncodedGradientEstimator</a>;
<a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="a00460.html" title="Compute shading tables for encoded normals.">vtkEncodedGradientShader</a>;
<a name="l00038"></a>00038 <span class="keyword">class </span><a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a>;
<a name="l00039"></a>00039 <span class="keyword">class </span><a class="code" href="a01064.html" title="A class for performing multithreaded execution.">vtkMultiThreader</a>;
<a name="l00040"></a>00040 <span class="keyword">class </span><a class="code" href="a01225.html" title="maintain a list of planes">vtkPlaneCollection</a>;
<a name="l00041"></a>00041 <span class="keyword">class </span><a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>;
<a name="l00042"></a>00042 <span class="keyword">class </span><a class="code" href="a01715.html" title="Timer support and logging.">vtkTimerLog</a>;
<a name="l00043"></a>00043 <span class="keyword">class </span><a class="code" href="a01839.html" title="represents a volume (data &amp;amp; properties) in a rendered scene">vtkVolume</a>;
<a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a01848.html" title="a superclass for ray casting functions">vtkVolumeRayCastFunction</a>;
<a name="l00045"></a>00045 <span class="keyword">class </span>vtkVolumeTransform;
<a name="l00046"></a>00046 <span class="keyword">class </span><a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a>;
<a name="l00047"></a>00047 <span class="keyword">class </span><a class="code" href="a01454.html" title="helper class that draws the image to the screen">vtkRayCastImageDisplayHelper</a>;
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="comment">//BTX</span>
<a name="l00050"></a>00050 <span class="comment">// Macro for floor of x</span>
<a name="l00051"></a>00051 
<a name="l00052"></a><a class="code" href="a03643.html#e4c20ea8b24ad42c69179a8eaa7d9c1f">00052</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="a03643.html#e4c20ea8b24ad42c69179a8eaa7d9c1f">vtkFloorFuncMacro</a>(<span class="keywordtype">double</span> x)
<a name="l00053"></a>00053 {
<a name="l00054"></a>00054   <span class="keywordflow">return</span> <a class="code" href="a00534.html#78f7ef08e8cf69be2632467cd57014c2">vtkFastNumericConversion::QuickFloor</a>(x);
<a name="l00055"></a>00055 }
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="comment">// Macro for rounding x (for x &gt;= 0)</span>
<a name="l00059"></a><a class="code" href="a03643.html#553be11ff73330673926f3a86eca1f60">00059</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="a03643.html#553be11ff73330673926f3a86eca1f60">vtkRoundFuncMacro</a>(<span class="keywordtype">double</span> x)
<a name="l00060"></a>00060 {
<a name="l00061"></a>00061   <span class="keywordflow">return</span> <a class="code" href="a00534.html#15982535ba7ba660c47178db7ca86fbc">vtkFastNumericConversion::Round</a>(x);
<a name="l00062"></a>00062 }
<a name="l00063"></a>00063 <span class="comment">//ETX</span>
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="comment">// Macro for tri-linear interpolation - do four linear interpolations on</span>
<a name="l00066"></a>00066 <span class="comment">// edges, two linear interpolations between pairs of edges, then a final</span>
<a name="l00067"></a>00067 <span class="comment">// interpolation between faces</span>
<a name="l00068"></a><a class="code" href="a03643.html#aa4dbf8d2d15c17e554f83199462c9d0">00068</a> <span class="preprocessor">#define vtkTrilinFuncMacro(v,x,y,z,a,b,c,d,e,f,g,h)         \</span>
<a name="l00069"></a>00069 <span class="preprocessor">        t00 =   a + (x)*(b-a);      \</span>
<a name="l00070"></a>00070 <span class="preprocessor">        t01 =   c + (x)*(d-c);      \</span>
<a name="l00071"></a>00071 <span class="preprocessor">        t10 =   e + (x)*(f-e);      \</span>
<a name="l00072"></a>00072 <span class="preprocessor">        t11 =   g + (x)*(h-g);      \</span>
<a name="l00073"></a>00073 <span class="preprocessor">        t0  = t00 + (y)*(t01-t00);  \</span>
<a name="l00074"></a>00074 <span class="preprocessor">        t1  = t10 + (y)*(t11-t10);  \</span>
<a name="l00075"></a>00075 <span class="preprocessor">        v   =  t0 + (z)*(t1-t0);</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span>
<a name="l00077"></a>00077 <span class="comment">// Forward declaration needed for use by friend declaration below.</span>
<a name="l00078"></a>00078 <a class="code" href="a02139.html#857b028df0e7a06db6bb78f368456609">VTK_THREAD_RETURN_TYPE</a> <a class="code" href="a03643.html#50c08e861c0bd87e0e433eb0c9995c76">VolumeRayCastMapper_CastRays</a>( <span class="keywordtype">void</span> *arg );
<a name="l00079"></a>00079 
<a name="l00080"></a><a class="code" href="a01850.html">00080</a> <span class="keyword">class </span><a class="code" href="a02170.html#4c512a1c00e5052ca1bbef09929dba95">VTK_VOLUMERENDERING_EXPORT</a> <a class="code" href="a01850.html" title="A slow but accurate mapper for rendering volumes.">vtkVolumeRayCastMapper</a> : <span class="keyword">public</span> <a class="code" href="a01842.html" title="Abstract class for a volume mapper.">vtkVolumeMapper</a>
<a name="l00081"></a>00081 {
<a name="l00082"></a>00082 <span class="keyword">public</span>:
<a name="l00083"></a>00083   <span class="keyword">static</span> <a class="code" href="a01850.html" title="A slow but accurate mapper for rendering volumes.">vtkVolumeRayCastMapper</a> *<a class="code" href="a00101.html#06d80d8d4aa1a4856135fa003845be82">New</a>();
<a name="l00084"></a><a class="code" href="a01850.html#365d53b82611b2a6c25e70f74b8f88d0">00084</a>   vtkTypeRevisionMacro(<a class="code" href="a01850.html" title="A slow but accurate mapper for rendering volumes.">vtkVolumeRayCastMapper</a>,<a class="code" href="a01842.html" title="Abstract class for a volume mapper.">vtkVolumeMapper</a>);
<a name="l00085"></a>00085   <span class="keywordtype">void</span> <a class="code" href="a01842.html#c10b8ff05d59e192b9c4152cf80b2089">PrintSelf</a>( ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent );
<a name="l00086"></a>00086 
<a name="l00088"></a>00088 
<a name="l00091"></a>00091   vtkSetMacro( SampleDistance, <span class="keywordtype">double</span> );
<a name="l00092"></a>00092   vtkGetMacro( SampleDistance, <span class="keywordtype">double</span> );
<a name="l00094"></a>00094 
<a name="l00096"></a>00096 
<a name="l00098"></a>00098   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetVolumeRayCastFunction(<a class="code" href="a01848.html" title="a superclass for ray casting functions">vtkVolumeRayCastFunction</a>*);
<a name="l00099"></a>00099   vtkGetObjectMacro( VolumeRayCastFunction, <a class="code" href="a01848.html" title="a superclass for ray casting functions">vtkVolumeRayCastFunction</a> );
<a name="l00101"></a>00101 
<a name="l00103"></a>00103 
<a name="l00104"></a>00104   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetGradientEstimator(<a class="code" href="a00459.html" title="Superclass for gradient estimation.">vtkEncodedGradientEstimator</a> *gradest);
<a name="l00105"></a>00105   vtkGetObjectMacro( GradientEstimator, <a class="code" href="a00459.html" title="Superclass for gradient estimation.">vtkEncodedGradientEstimator</a> );
<a name="l00107"></a>00107 
<a name="l00109"></a>00109 
<a name="l00110"></a>00110   vtkGetObjectMacro( GradientShader, <a class="code" href="a00460.html" title="Compute shading tables for encoded normals.">vtkEncodedGradientShader</a> );
<a name="l00112"></a>00112 
<a name="l00114"></a>00114 
<a name="l00117"></a>00117   vtkSetClampMacro( ImageSampleDistance, <span class="keywordtype">double</span>, 0.1, 100.0 );
<a name="l00118"></a>00118   vtkGetMacro( ImageSampleDistance, <span class="keywordtype">double</span> );
<a name="l00120"></a>00120 
<a name="l00122"></a>00122 
<a name="l00124"></a>00124   vtkSetClampMacro( MinimumImageSampleDistance, <span class="keywordtype">double</span>, 0.1, 100.0 );
<a name="l00125"></a>00125   vtkGetMacro( MinimumImageSampleDistance, <span class="keywordtype">double</span> );
<a name="l00127"></a>00127 
<a name="l00129"></a>00129 
<a name="l00131"></a>00131   vtkSetClampMacro( MaximumImageSampleDistance, <span class="keywordtype">double</span>, 0.1, 100.0 );
<a name="l00132"></a>00132   vtkGetMacro( MaximumImageSampleDistance, <span class="keywordtype">double</span> );
<a name="l00134"></a>00134 
<a name="l00136"></a>00136 
<a name="l00139"></a>00139   vtkSetClampMacro( AutoAdjustSampleDistances, <span class="keywordtype">int</span>, 0, 1 );
<a name="l00140"></a>00140   vtkGetMacro( AutoAdjustSampleDistances, <span class="keywordtype">int</span> );
<a name="l00141"></a>00141   vtkBooleanMacro( AutoAdjustSampleDistances, <span class="keywordtype">int</span> );
<a name="l00143"></a>00143   
<a name="l00145"></a>00145 
<a name="l00147"></a>00147   <span class="keywordtype">void</span> SetNumberOfThreads( <span class="keywordtype">int</span> num );
<a name="l00148"></a>00148   <span class="keywordtype">int</span> GetNumberOfThreads();
<a name="l00150"></a>00150 
<a name="l00152"></a>00152 
<a name="l00154"></a>00154   vtkSetClampMacro( IntermixIntersectingGeometry, <span class="keywordtype">int</span>, 0, 1 );
<a name="l00155"></a>00155   vtkGetMacro( IntermixIntersectingGeometry, <span class="keywordtype">int</span> );
<a name="l00156"></a>00156   vtkBooleanMacro( IntermixIntersectingGeometry, <span class="keywordtype">int</span> );
<a name="l00158"></a>00158   
<a name="l00159"></a>00159 <span class="comment">//BTX</span>
<a name="l00162"></a>00162 <span class="comment"></span>  <span class="keywordtype">void</span> <a class="code" href="a01842.html#a99c9410f41a2e78d89ad503d9b955eb">Render</a>( <a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *, <a class="code" href="a01839.html" title="represents a volume (data &amp;amp; properties) in a rendered scene">vtkVolume</a> * );
<a name="l00163"></a>00163 
<a name="l00168"></a>00168   <span class="keywordtype">void</span> <a class="code" href="a01842.html#c6557c7c4b41de53ee01c9c52ad1338b">ReleaseGraphicsResources</a>(<a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a> *);
<a name="l00169"></a>00169 
<a name="l00172"></a>00172   <span class="keywordtype">float</span> GetZeroOpacityThreshold( <a class="code" href="a01839.html" title="represents a volume (data &amp;amp; properties) in a rendered scene">vtkVolume</a> *vol );
<a name="l00173"></a>00173 
<a name="l00175"></a>00175 
<a name="l00177"></a>00177   <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="a00090.html#654cbd8c0a725000461ab3d69b203883">GetGradientMagnitudeScale</a>();
<a name="l00178"></a>00178   <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="a00090.html#f9572c354ab0b27c220c5cc49ee0d5e8">GetGradientMagnitudeBias</a>();
<a name="l00179"></a><a class="code" href="a01850.html#7149ee5158a00142304b08e6975e6067">00179</a>   <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="a00090.html#654cbd8c0a725000461ab3d69b203883">GetGradientMagnitudeScale</a>(<span class="keywordtype">int</span>)
<a name="l00180"></a>00180     {<span class="keywordflow">return</span> this-&gt;<a class="code" href="a00090.html#654cbd8c0a725000461ab3d69b203883">GetGradientMagnitudeScale</a>();};
<a name="l00181"></a><a class="code" href="a01850.html#5ca25434c70bed3b0ce22cba215a066a">00181</a>   <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="a00090.html#f9572c354ab0b27c220c5cc49ee0d5e8">GetGradientMagnitudeBias</a>(<span class="keywordtype">int</span>)
<a name="l00182"></a>00182     {<span class="keywordflow">return</span> this-&gt;<a class="code" href="a00090.html#f9572c354ab0b27c220c5cc49ee0d5e8">GetGradientMagnitudeBias</a>();};
<a name="l00184"></a>00184   
<a name="l00185"></a>00185 <span class="comment">//ETX</span>
<a name="l00186"></a>00186 
<a name="l00187"></a>00187 <span class="keyword">protected</span>:
<a name="l00188"></a>00188   <a class="code" href="a01850.html" title="A slow but accurate mapper for rendering volumes.">vtkVolumeRayCastMapper</a>();
<a name="l00189"></a>00189   ~<a class="code" href="a01850.html" title="A slow but accurate mapper for rendering volumes.">vtkVolumeRayCastMapper</a>();
<a name="l00190"></a>00190 
<a name="l00191"></a><a class="code" href="a01850.html#d40b6ec619d84a2e3978a74c5e2a0f71">00191</a>   <a class="code" href="a01848.html" title="a superclass for ray casting functions">vtkVolumeRayCastFunction</a>     *VolumeRayCastFunction;
<a name="l00192"></a><a class="code" href="a01850.html#bc5c833c9c359fcd2a22a5be5a7e6f62">00192</a>   <a class="code" href="a00459.html" title="Superclass for gradient estimation.">vtkEncodedGradientEstimator</a>  *GradientEstimator;
<a name="l00193"></a><a class="code" href="a01850.html#f92ef624318809ee0b8418335ee6ace7">00193</a>   <a class="code" href="a00460.html" title="Compute shading tables for encoded normals.">vtkEncodedGradientShader</a>     *GradientShader;
<a name="l00194"></a><a class="code" href="a01850.html#f07244a8153667b9f06ef1999e9e0270">00194</a>   <a class="code" href="a01454.html" title="helper class that draws the image to the screen">vtkRayCastImageDisplayHelper</a> *ImageDisplayHelper;
<a name="l00195"></a>00195   
<a name="l00196"></a>00196   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00101.html#2640547007328b99cfb851143f0f706d">ReportReferences</a>(<a class="code" href="a00572.html" title="Detect and break reference loops.">vtkGarbageCollector</a>*);
<a name="l00197"></a>00197 
<a name="l00198"></a>00198   <span class="comment">// The distance between sample points along the ray</span>
<a name="l00199"></a><a class="code" href="a01850.html#754ca55e2127f381a9d68eb867b76842">00199</a>   <span class="keywordtype">double</span>                       SampleDistance;
<a name="l00200"></a><a class="code" href="a01850.html#1238809d931b31e1e2b8aabd64a91038">00200</a>   <span class="keywordtype">double</span>                       ImageSampleDistance;
<a name="l00201"></a><a class="code" href="a01850.html#c9c657d9135228259a287dc2a2836d51">00201</a>   <span class="keywordtype">double</span>                       MinimumImageSampleDistance;
<a name="l00202"></a><a class="code" href="a01850.html#a959dbd2fc0877e164099f1399a3b358">00202</a>   <span class="keywordtype">double</span>                       MaximumImageSampleDistance;
<a name="l00203"></a><a class="code" href="a01850.html#5e524584b8fab30c4a0f154e4a120d51">00203</a>   <span class="keywordtype">int</span>                          AutoAdjustSampleDistances;
<a name="l00204"></a>00204   
<a name="l00205"></a><a class="code" href="a01850.html#277a134cfb42e6d46aefa6dc9660198e">00205</a>   <span class="keywordtype">double</span>                       WorldSampleDistance;
<a name="l00206"></a><a class="code" href="a01850.html#f990fbd29cd99e7e0534c6dae5b51ac8">00206</a>   <span class="keywordtype">int</span>                          ScalarDataType;
<a name="l00207"></a><a class="code" href="a01850.html#8d24af562ef1d56e4832b7b1fa38d560">00207</a>   <span class="keywordtype">void</span>                         *ScalarDataPointer;
<a name="l00208"></a>00208 
<a name="l00209"></a>00209   <span class="keywordtype">void</span>                         UpdateShadingTables( <a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *ren, 
<a name="l00210"></a>00210                                                     <a class="code" href="a01839.html" title="represents a volume (data &amp;amp; properties) in a rendered scene">vtkVolume</a> *vol );
<a name="l00211"></a>00211 
<a name="l00212"></a>00212   <span class="keywordtype">void</span> ComputeMatrices( <a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a class="code" href="a01839.html" title="represents a volume (data &amp;amp; properties) in a rendered scene">vtkVolume</a> *vol );
<a name="l00213"></a>00213   <span class="keywordtype">int</span> ComputeRowBounds( <a class="code" href="a01839.html" title="represents a volume (data &amp;amp; properties) in a rendered scene">vtkVolume</a> *vol, <a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *ren );
<a name="l00214"></a>00214   
<a name="l00215"></a>00215   <span class="keyword">friend</span> <a class="code" href="a02139.html#857b028df0e7a06db6bb78f368456609">VTK_THREAD_RETURN_TYPE</a> <a class="code" href="a03643.html#50c08e861c0bd87e0e433eb0c9995c76">VolumeRayCastMapper_CastRays</a>( <span class="keywordtype">void</span> *arg );
<a name="l00216"></a>00216 
<a name="l00217"></a><a class="code" href="a01850.html#bb25ade608c324181923b349758cc38b">00217</a>   <a class="code" href="a01064.html" title="A class for performing multithreaded execution.">vtkMultiThreader</a>  *Threader;
<a name="l00218"></a>00218 
<a name="l00219"></a><a class="code" href="a01850.html#b6a9e189e7891a2f7a834eb539550b1c">00219</a>   <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *PerspectiveMatrix;
<a name="l00220"></a><a class="code" href="a01850.html#f4c772dcaf0e942efb8dcf4d409434d2">00220</a>   <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *ViewToWorldMatrix;
<a name="l00221"></a><a class="code" href="a01850.html#f8e4b064e55f15caa4b9308503f8e70f">00221</a>   <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *ViewToVoxelsMatrix;
<a name="l00222"></a><a class="code" href="a01850.html#6a57448db04a8d949b02195091bd245f">00222</a>   <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *VoxelsToViewMatrix;
<a name="l00223"></a><a class="code" href="a01850.html#f1fd05045629a797f3fc5145a8941477">00223</a>   <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *WorldToVoxelsMatrix;
<a name="l00224"></a><a class="code" href="a01850.html#1990ae197e1d035c90a90ed54949e88f">00224</a>   <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *VoxelsToWorldMatrix;
<a name="l00225"></a>00225 
<a name="l00226"></a><a class="code" href="a01850.html#e82c13ea64e71c01b1b1778043996db7">00226</a>   <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *VolumeMatrix;
<a name="l00227"></a>00227   
<a name="l00228"></a><a class="code" href="a01850.html#0c95f9c7b28149faca00105fb90a3056">00228</a>   <a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a> *PerspectiveTransform;
<a name="l00229"></a><a class="code" href="a01850.html#ed748a30a12a916ee78cec2d65cc9849">00229</a>   <a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a> *VoxelsTransform;
<a name="l00230"></a><a class="code" href="a01850.html#57e19949bf0d14cfbbf6523462d6dbaa">00230</a>   <a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a> *VoxelsToViewTransform;
<a name="l00231"></a>00231   
<a name="l00232"></a>00232   <span class="comment">// This is how big the image would be if it covered the entire viewport</span>
<a name="l00233"></a><a class="code" href="a01850.html#488b307603173c8236c747abe67a8d27">00233</a>   <span class="keywordtype">int</span>            ImageViewportSize[2];
<a name="l00234"></a>00234   
<a name="l00235"></a>00235   <span class="comment">// This is how big the allocated memory for image is. This may be bigger</span>
<a name="l00236"></a>00236   <span class="comment">// or smaller than ImageFullSize - it will be bigger if necessary to </span>
<a name="l00237"></a>00237   <span class="comment">// ensure a power of 2, it will be smaller if the volume only covers a</span>
<a name="l00238"></a>00238   <span class="comment">// small region of the viewport</span>
<a name="l00239"></a><a class="code" href="a01850.html#9c841b9940af06eebd9941abbd6b4c39">00239</a>   <span class="keywordtype">int</span>            ImageMemorySize[2];
<a name="l00240"></a>00240   
<a name="l00241"></a>00241   <span class="comment">// This is the size of subregion in ImageSize image that we are using for</span>
<a name="l00242"></a>00242   <span class="comment">// the current image. Since ImageSize is a power of 2, there is likely</span>
<a name="l00243"></a>00243   <span class="comment">// wasted space in it. This number will be used for things such as clearing</span>
<a name="l00244"></a>00244   <span class="comment">// the image if necessary.</span>
<a name="l00245"></a><a class="code" href="a01850.html#5c6b4786795f42643530d9a43368adc0">00245</a>   <span class="keywordtype">int</span>            ImageInUseSize[2];
<a name="l00246"></a>00246   
<a name="l00247"></a>00247   <span class="comment">// This is the location in ImageFullSize image where our ImageSize image</span>
<a name="l00248"></a>00248   <span class="comment">// is located.</span>
<a name="l00249"></a><a class="code" href="a01850.html#02e146b60c6d93a85472e9450e6c8b0a">00249</a>   <span class="keywordtype">int</span>            ImageOrigin[2];
<a name="l00250"></a>00250   
<a name="l00251"></a>00251   <span class="comment">// This is the allocated image</span>
<a name="l00252"></a><a class="code" href="a01850.html#a701b69efb8b06d2085b8443e58b29f3">00252</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *Image;
<a name="l00253"></a>00253   
<a name="l00254"></a><a class="code" href="a01850.html#5ff9d608614f92bfee323fe4bc9712c7">00254</a>   <span class="keywordtype">int</span>  *RowBounds;
<a name="l00255"></a><a class="code" href="a01850.html#d2d369c19b0740e3797a3796da804f8b">00255</a>   <span class="keywordtype">int</span>  *OldRowBounds;
<a name="l00256"></a>00256 
<a name="l00257"></a><a class="code" href="a01850.html#14176ff7800b9182eda98d2678cbb682">00257</a>   <span class="keywordtype">float</span>        *RenderTimeTable;
<a name="l00258"></a><a class="code" href="a01850.html#2a7753da91548ab69a496f97ea1d26fb">00258</a>   <a class="code" href="a01839.html" title="represents a volume (data &amp;amp; properties) in a rendered scene">vtkVolume</a>   **RenderVolumeTable;
<a name="l00259"></a><a class="code" href="a01850.html#b9702d3d75488ce3ba400a5e61bb768f">00259</a>   <a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> **RenderRendererTable;
<a name="l00260"></a><a class="code" href="a01850.html#a3cff04953d4ee7099cbbf3705fdd2a5">00260</a>   <span class="keywordtype">int</span>           RenderTableSize;
<a name="l00261"></a><a class="code" href="a01850.html#2436c25242e3744248c2714be782b029">00261</a>   <span class="keywordtype">int</span>           RenderTableEntries;
<a name="l00262"></a>00262 
<a name="l00263"></a>00263   <span class="keywordtype">void</span> StoreRenderTime( <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, <span class="keywordtype">float</span> t );
<a name="l00264"></a>00264   <span class="keywordtype">float</span> RetrieveRenderTime( <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="l00265"></a>00265 
<a name="l00266"></a><a class="code" href="a01850.html#6410e48bc2f4f4bf18eb7e8611aa2575">00266</a>   <span class="keywordtype">int</span>           IntermixIntersectingGeometry;
<a name="l00267"></a>00267 
<a name="l00268"></a><a class="code" href="a01850.html#5dddf79fcfc8df1c8f59478e13de078e">00268</a>   <span class="keywordtype">float</span>        *ZBuffer;
<a name="l00269"></a><a class="code" href="a01850.html#b525f3639761682a74a4047edb165410">00269</a>   <span class="keywordtype">int</span>           ZBufferSize[2];
<a name="l00270"></a><a class="code" href="a01850.html#0d7fa8458e44e2d9bb4655c396bb9256">00270</a>   <span class="keywordtype">int</span>           ZBufferOrigin[2];
<a name="l00271"></a>00271 
<a name="l00272"></a><a class="code" href="a01850.html#c4253c9a23e986ca0efd82cbbdf1464f">00272</a>   <span class="keywordtype">float</span>         MinimumViewDistance;
<a name="l00273"></a>00273   
<a name="l00274"></a>00274   <span class="keywordtype">int</span>           ClipRayAgainstVolume( <a class="code" href="a01847.html">vtkVolumeRayCastDynamicInfo</a> *dynamicInfo,
<a name="l00275"></a>00275                                       <span class="keywordtype">float</span> bounds[6] );
<a name="l00276"></a>00276 
<a name="l00277"></a>00277   <span class="keywordtype">void</span>          InitializeClippingPlanes( <a class="code" href="a01852.html">vtkVolumeRayCastStaticInfo</a> *staticInfo,
<a name="l00278"></a>00278                                           <a class="code" href="a01225.html" title="maintain a list of planes">vtkPlaneCollection</a> *planes );
<a name="l00279"></a>00279 
<a name="l00280"></a>00280   <span class="keywordtype">int</span>           ClipRayAgainstClippingPlanes( <a class="code" href="a01847.html">vtkVolumeRayCastDynamicInfo</a> *dynamicInfo,
<a name="l00281"></a>00281                                               <a class="code" href="a01852.html">vtkVolumeRayCastStaticInfo</a> *staticInfo);
<a name="l00282"></a>00282   
<a name="l00283"></a>00283   <span class="comment">// Get the ZBuffer value corresponding to location (x,y) where (x,y)</span>
<a name="l00284"></a>00284   <span class="comment">// are indexing into the ImageInUse image. This must be converted to</span>
<a name="l00285"></a>00285   <span class="comment">// the zbuffer image coordinates. Nearest neighbor value is returned.</span>
<a name="l00286"></a>00286   <span class="keywordtype">double</span>         GetZBufferValue( <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y );
<a name="l00287"></a>00287 
<a name="l00288"></a>00288 <span class="keyword">private</span>:
<a name="l00289"></a>00289   <a class="code" href="a01850.html" title="A slow but accurate mapper for rendering volumes.">vtkVolumeRayCastMapper</a>(<span class="keyword">const</span> <a class="code" href="a01850.html" title="A slow but accurate mapper for rendering volumes.">vtkVolumeRayCastMapper</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00290"></a>00290   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01850.html" title="A slow but accurate mapper for rendering volumes.">vtkVolumeRayCastMapper</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00291"></a>00291 };
<a name="l00292"></a>00292 
<a name="l00293"></a>00293 <span class="preprocessor">#endif</span>
<a name="l00294"></a>00294 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:51 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>