<!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/vtkVolumeProVP1000Mapper.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/VolumeRendering/vtkVolumeProVP1000Mapper.h</h1><a href="a03639.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: vtkVolumeProVP1000Mapper.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="l00056"></a>00056 <span class="preprocessor">#ifndef __vtkVolumeProVP1000Mapper_h</span> <a name="l00057"></a>00057 <span class="preprocessor"></span><span class="preprocessor">#define __vtkVolumeProVP1000Mapper_h</span> <a name="l00058"></a>00058 <span class="preprocessor"></span> <a name="l00059"></a>00059 <span class="preprocessor">#include "<a class="code" href="a03638.html">vtkVolumeProMapper.h</a>"</span> <a name="l00060"></a>00060 <a name="l00061"></a>00061 <span class="preprocessor">#ifdef _WIN32</span> <a name="l00062"></a>00062 <span class="preprocessor"></span><span class="preprocessor">#include "VolumePro1000/inc/vli.h"</span> <span class="comment">// Needed for VLI internal types</span> <a name="l00063"></a>00063 <span class="preprocessor">#else</span> <a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#include "vli3/include/vli.h"</span> <span class="comment">// Needed for VLI internal types</span> <a name="l00065"></a>00065 <span class="preprocessor">#endif</span> <a name="l00066"></a>00066 <span class="preprocessor"></span> <a name="l00067"></a><a class="code" href="a03639.html#56ed29a5a7f37ce8433a8c51632aed0a">00067</a> <span class="preprocessor">#define VTK_VOLUME_16BIT 3</span> <a name="l00068"></a><a class="code" href="a03639.html#4f77a7bdefda6d89635f78445a605fc3">00068</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_VOLUME_32BIT 4</span> <a name="l00069"></a>00069 <span class="preprocessor"></span> <a name="l00070"></a><a class="code" href="a01845.html">00070</a> <span class="keyword">class </span><a class="code" href="a02170.html#4c512a1c00e5052ca1bbef09929dba95">VTK_VOLUMERENDERING_EXPORT</a> <a class="code" href="a01845.html" title="Superclass for VP1000 board.">vtkVolumeProVP1000Mapper</a> : <span class="keyword">public</span> <a class="code" href="a01843.html" title="Superclass for VolumePRO volume rendering mappers.">vtkVolumeProMapper</a> <a name="l00071"></a>00071 { <a name="l00072"></a>00072 <span class="keyword">public</span>: <a name="l00073"></a><a class="code" href="a01845.html#086fbfdef4129aa4483f662bf9ffcaef">00073</a> vtkTypeRevisionMacro(<a class="code" href="a01845.html" title="Superclass for VP1000 board.">vtkVolumeProVP1000Mapper</a>,<a class="code" href="a01843.html" title="Superclass for VolumePRO volume rendering mappers.">vtkVolumeProMapper</a>); <a name="l00074"></a>00074 <span class="keyword">static</span> <a class="code" href="a01845.html" title="Superclass for VP1000 board.">vtkVolumeProVP1000Mapper</a> *<a class="code" href="a01843.html#7bfb67eb14fd4d12dfa36063a1424e16">New</a>(); <a name="l00075"></a>00075 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01843.html#e205853dc6c3675e9e5e402c1074a67e">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00076"></a>00076 <a name="l00078"></a>00078 <a name="l00079"></a>00079 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01843.html#1d5b76bb215f3bff0d0d061f28d44992">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; properties) in a rendered scene">vtkVolume</a> * ); <a name="l00080"></a>00080 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01843.html#8d29d4e3a97d843254fd16ab2dd07e7f">GetAvailableBoardMemory</a>(); <a name="l00081"></a>00081 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01843.html#ca6f20f800460cb079c202e12154fa6d">GetLockSizesForBoardMemory</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2108e7f81709ed57920a45c02a954726847">type</a>, <a name="l00082"></a>00082 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *xSize, <a name="l00083"></a>00083 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *ySize, <a name="l00084"></a>00084 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *zSize); <a name="l00086"></a>00086 <a name="l00087"></a>00087 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01843.html#6d28a6ba7a59228e1de07b9b12940413">SetSuperSamplingFactor</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z); <a name="l00088"></a>00088 <a name="l00089"></a>00089 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01843.html#129ab6131d245ca43334b594d474ba40">SetMipmapLevel</a>(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>); <a name="l00090"></a>00090 <a name="l00091"></a>00091 <span class="keyword">protected</span>: <a name="l00092"></a>00092 <a class="code" href="a01845.html" title="Superclass for VP1000 board.">vtkVolumeProVP1000Mapper</a>(); <a name="l00093"></a>00093 ~<a class="code" href="a01845.html" title="Superclass for VP1000 board.">vtkVolumeProVP1000Mapper</a>(); <a name="l00094"></a>00094 <a name="l00095"></a>00095 <span class="comment">// Update the camera - set the camera matrix</span> <a name="l00096"></a>00096 <span class="keywordtype">void</span> UpdateCamera( <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; properties) in a rendered scene">vtkVolume</a> * ); <a name="l00097"></a>00097 <a name="l00098"></a>00098 <span class="comment">// Update the lights</span> <a name="l00099"></a>00099 <span class="keywordtype">void</span> UpdateLights( <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; properties) in a rendered scene">vtkVolume</a> * ); <a name="l00100"></a>00100 <a name="l00101"></a>00101 <span class="comment">// Update the properties of the volume including transfer functions</span> <a name="l00102"></a>00102 <span class="comment">// and material properties</span> <a name="l00103"></a>00103 <span class="keywordtype">void</span> UpdateProperties( <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; properties) in a rendered scene">vtkVolume</a> * ); <a name="l00104"></a>00104 <a name="l00105"></a>00105 <span class="comment">// Update the volume - create it if necessary</span> <a name="l00106"></a>00106 <span class="comment">// Set the volume matrix.</span> <a name="l00107"></a>00107 <span class="keywordtype">void</span> UpdateVolume( <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; properties) in a rendered scene">vtkVolume</a> * ); <a name="l00108"></a>00108 <a name="l00109"></a>00109 <span class="comment">// Set the crop box (as defined in the vtkVolumeMapper superclass)</span> <a name="l00110"></a>00110 <span class="keywordtype">void</span> UpdateCropping( <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; properties) in a rendered scene">vtkVolume</a> * ); <a name="l00111"></a>00111 <a name="l00112"></a>00112 <span class="comment">// Set the cursor</span> <a name="l00113"></a>00113 <span class="keywordtype">void</span> UpdateCursor( <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; properties) in a rendered scene">vtkVolume</a> * ); <a name="l00114"></a>00114 <a name="l00115"></a>00115 <span class="comment">// Update the cut plane</span> <a name="l00116"></a>00116 <span class="keywordtype">void</span> UpdateCutPlane( <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; properties) in a rendered scene">vtkVolume</a> * ); <a name="l00117"></a>00117 <a name="l00118"></a>00118 <span class="comment">// Render the image buffer to the screen</span> <a name="l00119"></a>00119 <span class="comment">// Defined in the specific graphics implementation.</span> <a name="l00120"></a><a class="code" href="a01845.html#bce11b99d9fef492d89333fb3dcbba5b">00120</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> RenderImageBuffer( <a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> * vtkNotUsed(ren), <a name="l00121"></a>00121 <a class="code" href="a01839.html" title="represents a volume (data &amp; properties) in a rendered scene">vtkVolume</a> * vol, <a name="l00122"></a>00122 <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>[2], <a name="l00123"></a>00123 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> * outData ) <a name="l00124"></a>00124 {(void)vol; (void)size; (void)outData;} <a name="l00125"></a>00125 <a name="l00126"></a>00126 <span class="comment">// Render a bounding box of the volume because the texture map would</span> <a name="l00127"></a>00127 <span class="comment">// be too large.</span> <a name="l00128"></a><a class="code" href="a01845.html#592df475bb77b5c37e7a4c9adb99bc2c">00128</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> RenderBoundingBox( <a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> * vtkNotUsed(ren), <a name="l00129"></a>00129 <a class="code" href="a01839.html" title="represents a volume (data &amp; properties) in a rendered scene">vtkVolume</a> * vol ) <a name="l00130"></a>00130 {(void)vol;} <a name="l00131"></a>00131 <a name="l00132"></a>00132 <span class="comment">// Get the depth buffer values</span> <a name="l00133"></a>00133 <span class="comment">//BTX</span> <a name="l00134"></a><a class="code" href="a01845.html#47ae1b359b28bac9db21d0b6565090ce">00134</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetDepthBufferValues( <a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *vtkNotUsed(ren), <a name="l00135"></a>00135 <span class="keywordtype">int</span> vtkNotUsed(<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>)[2], <a name="l00136"></a>00136 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *outData ) <a name="l00137"></a>00137 { (void)outData; } <a name="l00138"></a>00138 <span class="comment">//ETX</span> <a name="l00139"></a>00139 <a name="l00140"></a>00140 <span class="preprocessor">#if ((VTK_MAJOR_VERSION == 3)&&(VTK_MINOR_VERSION == 2))</span> <a name="l00141"></a>00141 <span class="preprocessor"></span> vtkGetVectorMacro( VoxelCroppingRegionPlanes, <span class="keywordtype">float</span>, 6 ); <a name="l00142"></a>00142 <span class="keywordtype">void</span> <a class="code" href="a01842.html#15abd709c4b9a0b8ecac71062e1b12c5">ConvertCroppingRegionPlanesToVoxels</a>(); <a name="l00143"></a>00143 <span class="keywordtype">float</span> VoxelCroppingRegionPlanes[6]; <a name="l00144"></a>00144 <span class="preprocessor">#endif</span> <a name="l00145"></a>00145 <span class="preprocessor"></span> <a name="l00146"></a>00146 <a name="l00147"></a>00147 <span class="comment">// Keep track of the size of the data loaded so we know if we can</span> <a name="l00148"></a>00148 <span class="comment">// simply update when a change occurs or if we need to release and</span> <a name="l00149"></a>00149 <span class="comment">// create again</span> <a name="l00150"></a><a class="code" href="a01845.html#ea76f3d82a438cdd8e743d7fab892d55">00150</a> <span class="keywordtype">int</span> LoadedDataSize[3]; <a name="l00151"></a>00151 <a name="l00152"></a><a class="code" href="a01845.html#ee4b4beabdd505764baaea41cbac396f">00152</a> VLIImageBuffer *ImageBuffer; <a name="l00153"></a><a class="code" href="a01845.html#f4fcfeda3ba06fc46edae7121e052ec8">00153</a> VLIDepthBuffer *DepthBuffer; <a name="l00154"></a>00154 <a name="l00155"></a>00155 <span class="comment">//BTX</span> <a name="l00156"></a>00156 VLIStatus CheckSubSampling(<span class="keyword">const</span> VLIVolume *inVolume, <a name="l00157"></a>00157 <span class="keyword">const</span> VLIContext *inContext, <a name="l00158"></a>00158 <span class="keywordtype">int</span> &outImageWidth, <span class="keywordtype">int</span> &outImageHeight); <a name="l00159"></a>00159 <span class="comment">//ETX</span> <a name="l00160"></a>00160 <a name="l00161"></a><a class="code" href="a01845.html#6360c1e9f20f346b4bc9b8714b5bbe58">00161</a> <span class="keywordtype">int</span> DrawBoundingBox; <a name="l00162"></a>00162 <a name="l00163"></a>00163 <span class="keyword">private</span>: <a name="l00164"></a>00164 <a class="code" href="a01845.html" title="Superclass for VP1000 board.">vtkVolumeProVP1000Mapper</a>(<span class="keyword">const</span> <a class="code" href="a01845.html" title="Superclass for VP1000 board.">vtkVolumeProVP1000Mapper</a>&); <span class="comment">// Not implemented</span> <a name="l00165"></a>00165 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01845.html" title="Superclass for VP1000 board.">vtkVolumeProVP1000Mapper</a>&); <span class="comment">// Not implemented</span> <a name="l00166"></a>00166 }; <a name="l00167"></a>00167 <a name="l00168"></a>00168 <a name="l00169"></a>00169 <a name="l00170"></a>00170 <span class="preprocessor">#endif</span> <a name="l00171"></a>00171 <span class="preprocessor"></span> <a name="l00172"></a>00172 <a name="l00173"></a>00173 </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:51 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>