<!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/Hybrid/vtkTransformToGrid.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/Hybrid/vtkTransformToGrid.h</h1><a href="a02855.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: vtkTransformToGrid.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="l00029"></a>00029 <span class="preprocessor">#ifndef __vtkTransformToGrid_h</span> <a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define __vtkTransformToGrid_h</span> <a name="l00031"></a>00031 <span class="preprocessor"></span> <a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="a02189.html">vtkAlgorithm.h</a>"</span> <a name="l00033"></a>00033 <span class="preprocessor">#include "<a class="code" href="a02277.html">vtkImageData.h</a>"</span> <span class="comment">// makes things a bit easier</span> <a name="l00034"></a>00034 <a name="l00035"></a>00035 <span class="keyword">class </span><a class="code" href="a00089.html" title="superclass for all geometric transformations">vtkAbstractTransform</a>; <a name="l00036"></a>00036 <a name="l00037"></a><a class="code" href="a01733.html">00037</a> <span class="keyword">class </span><a class="code" href="a02170.html#9e9a05a8377523b4f8d707441f65786d">VTK_HYBRID_EXPORT</a> <a class="code" href="a01733.html" title="create a grid for a vtkGridTransform">vtkTransformToGrid</a> : <span class="keyword">public</span> <a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a> <a name="l00038"></a>00038 { <a name="l00039"></a>00039 <span class="keyword">public</span>: <a name="l00040"></a>00040 <span class="keyword">static</span> <a class="code" href="a01733.html" title="create a grid for a vtkGridTransform">vtkTransformToGrid</a> *<a class="code" href="a00101.html#06d80d8d4aa1a4856135fa003845be82">New</a>(); <a name="l00041"></a><a class="code" href="a01733.html#7c639cc41b35690cfbd1ae4d56cd4c08">00041</a> vtkTypeRevisionMacro(<a class="code" href="a01733.html" title="create a grid for a vtkGridTransform">vtkTransformToGrid</a>,<a class="code" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK.">vtkAlgorithm</a>); <a name="l00042"></a>00042 <span class="keywordtype">void</span> <a class="code" href="a00101.html#0d96908767dcf284576ebdee795ee23a">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00043"></a>00043 <a name="l00045"></a>00045 <a name="l00046"></a>00046 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInput(<a class="code" href="a00089.html" title="superclass for all geometric transformations">vtkAbstractTransform</a>*); <a name="l00047"></a>00047 vtkGetObjectMacro(Input,<a class="code" href="a00089.html" title="superclass for all geometric transformations">vtkAbstractTransform</a>); <a name="l00049"></a>00049 <a name="l00051"></a>00051 <a name="l00052"></a>00052 vtkSetVector6Macro(GridExtent,<span class="keywordtype">int</span>); <a name="l00053"></a>00053 vtkGetVector6Macro(GridExtent,<span class="keywordtype">int</span>); <a name="l00055"></a>00055 <a name="l00057"></a>00057 <a name="l00058"></a>00058 vtkSetVector3Macro(GridOrigin,<span class="keywordtype">double</span>); <a name="l00059"></a>00059 vtkGetVector3Macro(GridOrigin,<span class="keywordtype">double</span>); <a name="l00061"></a>00061 <a name="l00063"></a>00063 <a name="l00064"></a>00064 vtkSetVector3Macro(GridSpacing,<span class="keywordtype">double</span>); <a name="l00065"></a>00065 vtkGetVector3Macro(GridSpacing,<span class="keywordtype">double</span>); <a name="l00067"></a>00067 <a name="l00069"></a>00069 <a name="l00070"></a>00070 vtkSetMacro(GridScalarType,<span class="keywordtype">int</span>); <a name="l00071"></a>00071 vtkGetMacro(GridScalarType,<span class="keywordtype">int</span>); <a name="l00072"></a><a class="code" href="a01733.html#41de7913d95d3b6815826a093a6977ca">00072</a> <span class="keywordtype">void</span> SetGridScalarTypeToFloat(){this->SetGridScalarType(<a class="code" href="a02149.html#65081589ba940a5cf4aeb95b6be1f613">VTK_DOUBLE</a>);}; <a name="l00073"></a><a class="code" href="a01733.html#6bd627480e066481d3eedf7e3906c490">00073</a> <span class="keywordtype">void</span> SetGridScalarTypeToShort(){this->SetGridScalarType(<a class="code" href="a02149.html#16468f12840502cb95648b1299f7f26e">VTK_SHORT</a>);}; <a name="l00074"></a><a class="code" href="a01733.html#04360f34f12666cafe092fa07fd5ee5a">00074</a> <span class="keywordtype">void</span> SetGridScalarTypeToUnsignedShort() <a name="l00075"></a>00075 {this->SetGridScalarType(<a class="code" href="a02149.html#725b04f63c9f8fbf28fc8fd56b9d9392">VTK_UNSIGNED_SHORT</a>);}; <a name="l00076"></a><a class="code" href="a01733.html#438a60ba38a51b10824463e641c66cce">00076</a> <span class="keywordtype">void</span> SetGridScalarTypeToUnsignedChar() <a name="l00077"></a>00077 {this->SetGridScalarType(<a class="code" href="a02149.html#69e20baa3fd444e25ba1a5fc30bd29d5">VTK_UNSIGNED_CHAR</a>);}; <a name="l00078"></a><a class="code" href="a01733.html#b28b25a50690f3973215ee0aacc55a7f">00078</a> <span class="keywordtype">void</span> SetGridScalarTypeToChar() <a name="l00079"></a>00079 {this->SetGridScalarType(<a class="code" href="a02149.html#acfbd1a27646a206528eda8aecd570d9">VTK_CHAR</a>);}; <a name="l00081"></a>00081 <a name="l00083"></a>00083 <a name="l00086"></a><a class="code" href="a01733.html#8e0d66b1d2c520bb2daa545ee1b0e7f5">00086</a> <span class="keywordtype">double</span> GetDisplacementScale() { <a name="l00087"></a>00087 this->UpdateShiftScale(); <span class="keywordflow">return</span> this->DisplacementScale; }; <a name="l00088"></a><a class="code" href="a01733.html#1896581cf433661b00a7b086dee25b27">00088</a> <span class="keywordtype">double</span> GetDisplacementShift() { <a name="l00089"></a>00089 this->UpdateShiftScale(); <span class="keywordflow">return</span> this->DisplacementShift; }; <a name="l00091"></a>00091 <a name="l00093"></a>00093 <a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>* GetOutput(); <a name="l00094"></a>00094 <a name="l00096"></a>00096 <a name="l00097"></a>00097 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00101.html#99651784a97d309c0cc90072dca29542">ProcessRequest</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>*, <a name="l00098"></a>00098 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>**, <a name="l00099"></a>00099 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>*); <a name="l00101"></a>00101 <a name="l00102"></a>00102 <span class="keyword">protected</span>: <a name="l00103"></a>00103 <a class="code" href="a01733.html" title="create a grid for a vtkGridTransform">vtkTransformToGrid</a>(); <a name="l00104"></a>00104 ~<a class="code" href="a01733.html" title="create a grid for a vtkGridTransform">vtkTransformToGrid</a>(); <a name="l00105"></a>00105 <a name="l00106"></a>00106 <span class="keywordtype">void</span> RequestInformation (<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a name="l00107"></a>00107 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *); <a name="l00108"></a>00108 <a name="l00109"></a>00109 <span class="keywordtype">void</span> RequestData(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a name="l00110"></a>00110 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *); <a name="l00111"></a>00111 <a name="l00114"></a>00114 <span class="keywordtype">void</span> UpdateShiftScale(); <a name="l00115"></a>00115 <a name="l00116"></a>00116 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>(); <a name="l00117"></a>00117 <a name="l00118"></a><a class="code" href="a01733.html#230f6579522e0501c3bceab0ea2afabd">00118</a> <a class="code" href="a00089.html" title="superclass for all geometric transformations">vtkAbstractTransform</a> *Input; <a name="l00119"></a>00119 <a name="l00120"></a><a class="code" href="a01733.html#2520cf9fe492ad7fa1935e5019d6e6c3">00120</a> <span class="keywordtype">int</span> GridScalarType; <a name="l00121"></a><a class="code" href="a01733.html#bbd7cd4c9fbd35699e8dabbc8f1a0b41">00121</a> <span class="keywordtype">int</span> GridExtent[6]; <a name="l00122"></a><a class="code" href="a01733.html#fffe9d2ca2a7d8c7437bd2abab4d85a4">00122</a> <span class="keywordtype">double</span> GridOrigin[3]; <a name="l00123"></a><a class="code" href="a01733.html#ddb95f1b9f251a7bd3853291e6aa67ec">00123</a> <span class="keywordtype">double</span> GridSpacing[3]; <a name="l00124"></a>00124 <a name="l00125"></a><a class="code" href="a01733.html#de85dee93670b455bf86d63bf4bcb851">00125</a> <span class="keywordtype">double</span> DisplacementScale; <a name="l00126"></a><a class="code" href="a01733.html#8fcde0040b7dffa9422ac507215bca6f">00126</a> <span class="keywordtype">double</span> DisplacementShift; <a name="l00127"></a><a class="code" href="a01733.html#a3385dfed338af4f4ed9bed55e08cfea">00127</a> <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a> ShiftScaleTime; <a name="l00128"></a>00128 <a name="l00129"></a>00129 <span class="comment">// see algorithm for more info</span> <a name="l00130"></a>00130 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00101.html#278ce83f371e6a398cf46f4600108d3e">FillOutputPortInformation</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="l00131"></a>00131 <a name="l00132"></a>00132 <span class="keyword">private</span>: <a name="l00133"></a>00133 <a class="code" href="a01733.html" title="create a grid for a vtkGridTransform">vtkTransformToGrid</a>(<span class="keyword">const</span> <a class="code" href="a01733.html" title="create a grid for a vtkGridTransform">vtkTransformToGrid</a>&); <span class="comment">// Not implemented.</span> <a name="l00134"></a>00134 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01733.html" title="create a grid for a vtkGridTransform">vtkTransformToGrid</a>&); <span class="comment">// Not implemented.</span> <a name="l00135"></a>00135 }; <a name="l00136"></a>00136 <a name="l00137"></a>00137 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:33 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>