<!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/vtkVolumeMapper.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/vtkVolumeMapper.h</h1><a href="a03637.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: vtkVolumeMapper.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="l00027"></a>00027 <span class="preprocessor">#ifndef __vtkVolumeMapper_h</span> <a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#define __vtkVolumeMapper_h</span> <a name="l00029"></a>00029 <span class="preprocessor"></span> <a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="a03361.html">vtkAbstractVolumeMapper.h</a>"</span> <a name="l00031"></a>00031 <a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>; <a name="l00033"></a>00033 <span class="keyword">class </span><a class="code" href="a01839.html" title="represents a volume (data &amp; properties) in a rendered scene">vtkVolume</a>; <a name="l00034"></a>00034 <span class="keyword">class </span><a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>; <a name="l00035"></a>00035 <a name="l00036"></a><a class="code" href="a03637.html#4f399b45224503f2eef6e36c07515c05">00036</a> <span class="preprocessor">#define VTK_CROP_SUBVOLUME 0x0002000</span> <a name="l00037"></a><a class="code" href="a03637.html#3cc1303368458ebf870d8b6d72d77793">00037</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_CROP_FENCE 0x2ebfeba</span> <a name="l00038"></a><a class="code" href="a03637.html#2fd513ffac004a2ca2862c2363d404d1">00038</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_CROP_INVERTED_FENCE 0x5140145</span> <a name="l00039"></a><a class="code" href="a03637.html#f398db94c0edbb41e4031904028b8bb1">00039</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_CROP_CROSS 0x0417410</span> <a name="l00040"></a><a class="code" href="a03637.html#a7c88970d5c93c8e839e3f98affc7d56">00040</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_CROP_INVERTED_CROSS 0x7be8bef</span> <a name="l00041"></a>00041 <span class="preprocessor"></span> <a name="l00042"></a>00042 <span class="keyword">class </span><a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a>; <a name="l00043"></a>00043 <a name="l00044"></a><a class="code" href="a01842.html">00044</a> <span class="keyword">class </span><a class="code" href="a02170.html#4c512a1c00e5052ca1bbef09929dba95">VTK_VOLUMERENDERING_EXPORT</a> <a class="code" href="a01842.html" title="Abstract class for a volume mapper.">vtkVolumeMapper</a> : <span class="keyword">public</span> <a class="code" href="a00090.html" title="Abstract class for a volume mapper.">vtkAbstractVolumeMapper</a> <a name="l00045"></a>00045 { <a name="l00046"></a>00046 <span class="keyword">public</span>: <a name="l00047"></a><a class="code" href="a01842.html#d6751b69e155be3b2a09e92ff0f8b7f5">00047</a> vtkTypeRevisionMacro(<a class="code" href="a01842.html" title="Abstract class for a volume mapper.">vtkVolumeMapper</a>,<a class="code" href="a00090.html" title="Abstract class for a volume mapper.">vtkAbstractVolumeMapper</a>); <a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="a00090.html#516d70881c4a600155170503a53bcd52">PrintSelf</a>( ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent ); <a name="l00049"></a>00049 <a name="l00051"></a>00051 <a name="l00052"></a>00052 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00090.html#f1705dc1ddf92ad642ab873ce4234839">SetInput</a>( <a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> * ); <a name="l00053"></a>00053 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00090.html#f1705dc1ddf92ad642ab873ce4234839">SetInput</a>( <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> * ); <a name="l00054"></a>00054 <a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> *GetInput(); <a name="l00056"></a>00056 <a name="l00058"></a>00058 <a name="l00063"></a>00063 vtkSetMacro( BlendMode, <span class="keywordtype">int</span> ); <a name="l00064"></a><a class="code" href="a01842.html#c17e07d033289f756622d1e7b2a6a0ea">00064</a> <span class="keywordtype">void</span> SetBlendModeToComposite() <a name="l00065"></a>00065 { this->SetBlendMode( <a class="code" href="a01842.html#5123a70e32452d6a58eda2e90703581692f6946039dfe09ac64649a5f661d7bf">vtkVolumeMapper::COMPOSITE_BLEND</a> ); } <a name="l00066"></a><a class="code" href="a01842.html#8397e8507a80e81bfbf733f130fefde3">00066</a> <span class="keywordtype">void</span> SetBlendModeToMaximumIntensity() <a name="l00067"></a>00067 { this->SetBlendMode( <a class="code" href="a01842.html#5123a70e32452d6a58eda2e907035816b4e0747ca0bcf150fa57a5a6e9a34a14">vtkVolumeMapper::MAXIMUM_INTENSITY_BLEND</a> ); } <a name="l00068"></a><a class="code" href="a01842.html#68aa688dcd675de7038039b1af888976">00068</a> <span class="keywordtype">void</span> SetBlendModeToMinimumIntensity() <a name="l00069"></a>00069 { this->SetBlendMode( <a class="code" href="a01842.html#5123a70e32452d6a58eda2e907035816e5d8663d2d4eaf1aa5ed405bb9123025">vtkVolumeMapper::MINIMUM_INTENSITY_BLEND</a> ); } <a name="l00070"></a>00070 vtkGetMacro( BlendMode, <span class="keywordtype">int</span> ); <a name="l00072"></a>00072 <a name="l00074"></a>00074 <a name="l00076"></a>00076 vtkSetClampMacro(Cropping,<span class="keywordtype">int</span>,0,1); <a name="l00077"></a>00077 vtkGetMacro(Cropping,<span class="keywordtype">int</span>); <a name="l00078"></a>00078 vtkBooleanMacro(Cropping,<span class="keywordtype">int</span>); <a name="l00080"></a>00080 <a name="l00082"></a>00082 <a name="l00085"></a>00085 vtkSetVector6Macro( CroppingRegionPlanes, <span class="keywordtype">double</span> ); <a name="l00086"></a>00086 vtkGetVectorMacro( CroppingRegionPlanes, <span class="keywordtype">double</span>, 6 ); <a name="l00088"></a>00088 <a name="l00090"></a>00090 <a name="l00092"></a>00092 vtkGetVectorMacro( VoxelCroppingRegionPlanes, <span class="keywordtype">double</span>, 6 ); <a name="l00094"></a>00094 <a name="l00096"></a>00096 <a name="l00105"></a>00105 vtkSetClampMacro( CroppingRegionFlags, <span class="keywordtype">int</span>, 0x0, 0x7ffffff ); <a name="l00106"></a>00106 vtkGetMacro( CroppingRegionFlags, <span class="keywordtype">int</span> ); <a name="l00107"></a><a class="code" href="a01842.html#d9d68e77efc632f50f85d5468a3560a9">00107</a> <span class="keywordtype">void</span> SetCroppingRegionFlagsToSubVolume() <a name="l00108"></a>00108 {this->SetCroppingRegionFlags( <a class="code" href="a03637.html#4f399b45224503f2eef6e36c07515c05">VTK_CROP_SUBVOLUME</a> );}; <a name="l00109"></a><a class="code" href="a01842.html#67e1f747ec1b62945221d7aae5394c9d">00109</a> <span class="keywordtype">void</span> SetCroppingRegionFlagsToFence() <a name="l00110"></a>00110 {this->SetCroppingRegionFlags( <a class="code" href="a03637.html#3cc1303368458ebf870d8b6d72d77793">VTK_CROP_FENCE</a> );}; <a name="l00111"></a><a class="code" href="a01842.html#15f21dbe739e775abf7d97e055e8db82">00111</a> <span class="keywordtype">void</span> SetCroppingRegionFlagsToInvertedFence() <a name="l00112"></a>00112 {this->SetCroppingRegionFlags( <a class="code" href="a03637.html#2fd513ffac004a2ca2862c2363d404d1">VTK_CROP_INVERTED_FENCE</a> );}; <a name="l00113"></a><a class="code" href="a01842.html#aa9e76727eddc71645fce81c28f37baa">00113</a> <span class="keywordtype">void</span> SetCroppingRegionFlagsToCross() <a name="l00114"></a>00114 {this->SetCroppingRegionFlags( <a class="code" href="a03637.html#f398db94c0edbb41e4031904028b8bb1">VTK_CROP_CROSS</a> );}; <a name="l00115"></a><a class="code" href="a01842.html#683492d61a43aae3ddf664799345db5f">00115</a> <span class="keywordtype">void</span> SetCroppingRegionFlagsToInvertedCross() <a name="l00116"></a>00116 {this->SetCroppingRegionFlags( <a class="code" href="a03637.html#a7c88970d5c93c8e839e3f98affc7d56">VTK_CROP_INVERTED_CROSS</a> );}; <a name="l00118"></a>00118 <a name="l00119"></a>00119 <span class="comment">//BTX </span> <a name="l00120"></a>00120 <a name="l00123"></a>00123 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00090.html#5109028f9d786bcdf7b43c7c54c7eff4">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; properties) in a rendered scene">vtkVolume</a> *vol)=0; <a name="l00124"></a>00124 <a name="l00129"></a><a class="code" href="a01842.html#c6557c7c4b41de53ee01c9c52ad1338b">00129</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00090.html#7abb3ef0a2c5c2296f08435248269ab6">ReleaseGraphicsResources</a>(<a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a> *) {}; <a name="l00130"></a>00130 <a name="l00131"></a>00131 <span class="keyword">enum</span> <a name="l00132"></a>00132 { <a name="l00133"></a><a class="code" href="a01842.html#5123a70e32452d6a58eda2e90703581692f6946039dfe09ac64649a5f661d7bf">00133</a> COMPOSITE_BLEND, <a name="l00134"></a><a class="code" href="a01842.html#5123a70e32452d6a58eda2e907035816b4e0747ca0bcf150fa57a5a6e9a34a14">00134</a> MAXIMUM_INTENSITY_BLEND, <a name="l00135"></a><a class="code" href="a01842.html#5123a70e32452d6a58eda2e907035816e5d8663d2d4eaf1aa5ed405bb9123025">00135</a> MINIMUM_INTENSITY_BLEND <a name="l00136"></a>00136 }; <a name="l00137"></a>00137 <span class="comment">//ETX</span> <a name="l00138"></a>00138 <a name="l00139"></a>00139 <span class="keyword">protected</span>: <a name="l00140"></a>00140 <a class="code" href="a01842.html" title="Abstract class for a volume mapper.">vtkVolumeMapper</a>(); <a name="l00141"></a>00141 ~<a class="code" href="a01842.html" title="Abstract class for a volume mapper.">vtkVolumeMapper</a>(); <a name="l00142"></a>00142 <a name="l00143"></a><a class="code" href="a01842.html#6112f8f46cd12dda15a9b1230fa2362f">00143</a> <span class="keywordtype">int</span> BlendMode; <a name="l00144"></a>00144 <a name="l00145"></a>00145 <span class="comment">// Cropping variables, and a method for converting the world</span> <a name="l00146"></a>00146 <span class="comment">// coordinate cropping region planes to voxel coordinates</span> <a name="l00147"></a><a class="code" href="a01842.html#1d7e1b9088bcd2192382e0afbf2b1e1d">00147</a> <span class="keywordtype">int</span> Cropping; <a name="l00148"></a><a class="code" href="a01842.html#a834b2c1102f825e78d5c194916b6b7e">00148</a> <span class="keywordtype">double</span> CroppingRegionPlanes[6]; <a name="l00149"></a><a class="code" href="a01842.html#f6a5999eba8a737d9889d3d476f54a4c">00149</a> <span class="keywordtype">double</span> VoxelCroppingRegionPlanes[6]; <a name="l00150"></a><a class="code" href="a01842.html#f7f6dd38d6a6872b3aedf0618e084bc7">00150</a> <span class="keywordtype">int</span> CroppingRegionFlags; <a name="l00151"></a>00151 <span class="keywordtype">void</span> ConvertCroppingRegionPlanesToVoxels(); <a name="l00152"></a>00152 <a name="l00153"></a>00153 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00090.html#12c982d9503eb8b261c3c94a7bd6de08">FillInputPortInformation</a>(<span class="keywordtype">int</span>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>*); <a name="l00154"></a>00154 <a name="l00155"></a>00155 <span class="keyword">private</span>: <a name="l00156"></a>00156 <a class="code" href="a01842.html" title="Abstract class for a volume mapper.">vtkVolumeMapper</a>(<span class="keyword">const</span> <a class="code" href="a01842.html" title="Abstract class for a volume mapper.">vtkVolumeMapper</a>&); <span class="comment">// Not implemented.</span> <a name="l00157"></a>00157 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01842.html" title="Abstract class for a volume mapper.">vtkVolumeMapper</a>&); <span class="comment">// Not implemented.</span> <a name="l00158"></a>00158 }; <a name="l00159"></a>00159 <a name="l00160"></a>00160 <a name="l00161"></a>00161 <span class="preprocessor">#endif</span> <a name="l00162"></a>00162 <span class="preprocessor"></span> <a name="l00163"></a>00163 </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>